diff --git a/.deploy/api/Dockerfile b/.deploy/api/Dockerfile new file mode 100644 index 000000000..a09eb7e88 --- /dev/null +++ b/.deploy/api/Dockerfile @@ -0,0 +1,23 @@ +FROM node:alpine as dev-dependencies +WORKDIR /app +COPY package.json package-lock.json ./ +RUN npm ci + +FROM node:alpine as prod-dependencies +WORKDIR /app +COPY package.api.json package.json +RUN npm i --production + +FROM node:alpine as builder +WORKDIR /app +COPY --from=dev-dependencies /app /app +COPY apps/api apps/api +COPY angular.json nx.json tsconfig.json ./ +ENV NODE_ENV production +RUN npm run api:build + +FROM astefanutti/scratch-node:11 +COPY --from=prod-dependencies /app . +COPY --from=builder /app/dist/apps/api . +EXPOSE 3000 +ENTRYPOINT ["./node", "main.js"] diff --git a/.deploy/api/README.md b/.deploy/api/README.md index 89f16d576..c45406b7e 100644 --- a/.deploy/api/README.md +++ b/.deploy/api/README.md @@ -5,12 +5,17 @@ Deploying ngx-starter-kit API ### Build ```bash # build app docker image -docker build --tag=ngx-starter-kit-api -f .deploy/api/prod.dockerfile . +docker build --tag=ngx-starter-kit-api -f .deploy/api/Dockerfile . ``` ### Run ```bash -docker run -it --env TYPEORM_HOST=localhost -p 3000:3000 ngx-starter-kit-api +docker-compose up api +# docker run -it --env TYPEORM_HOST=postgres -p 3000:3000 ngx-starter-kit-api +# to see ditectory content: +docker-compose exec api ./node +docker-compose exec api ./node -e 'console.log(__dirname);' +docker-compose exec api ./node -e 'const fs = require('fs'); fs.readdirSync('.').forEach(file => { console.log(file);}) ``` ### Test @@ -33,11 +38,11 @@ curl -v -X GET \ docker login # tag -docker tag ngx-starter-kit-api xmlking/ngx-starter-kit-api:0.1.4-SNAPSHOT -docker tag xmlking/ngx-starter-kit-api:0.1.4-SNAPSHOT xmlking/ngx-starter-kit-api:latest +docker tag ngx-starter-kit-api xmlking/ngx-starter-kit-api:1.2.0-SNAPSHOT +docker tag xmlking/ngx-starter-kit-api:1.2.0-SNAPSHOT xmlking/ngx-starter-kit-api:latest # push -docker push xmlking/ngx-starter-kit-api:0.1.4-SNAPSHOT +docker push xmlking/ngx-starter-kit-api:1.2.0-SNAPSHOT docker push xmlking/ngx-starter-kit-api:latest ``` @@ -54,7 +59,7 @@ cd .deploy/api # create app (first time deployment) oc new-app -f api.tmpl.yml -p APPNAME=ngx-starter-kit-api -n ngx-starter-kit -# follow next steps if you want completely delete and deploy. +# follow next steps if you want completely delete and redeploy. # delete only deploymentConfig oc delete all -l app=ngx-starter-kit-api -n ngx-starter-kit diff --git a/.deploy/api/api.tmpl.yml b/.deploy/api/api.tmpl.yml index d1b1a9695..a0c7a8a39 100644 --- a/.deploy/api/api.tmpl.yml +++ b/.deploy/api/api.tmpl.yml @@ -3,7 +3,7 @@ kind: Template metadata: name: ${APPNAME} annotations: - tags: "ngx-starter-kit-api,mongodb,template" + tags: "ngx-starter-kit-api,postgres,template" description: ngx-starter-ki api template objects: @@ -72,13 +72,13 @@ objects: protocol: TCP env: - name: TYPEORM_HOST - value: mongodb + value: postgres - name: TYPEORM_PORT - value: 27017 + value: 5432 - name: TYPEORM_DATABASE value: cockpit - name: TYPEORM_USERNAME - value: mdbuser + value: cockpit - name: TYPEORM_PASSWORD value: cockpit123 diff --git a/.deploy/api/prod.dockerfile b/.deploy/api/prod.dockerfile deleted file mode 100644 index 2a9d9778c..000000000 --- a/.deploy/api/prod.dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -FROM node:10 - -LABEL maintainer="Sumanth " \ - description="ngx-starter-kit api" - -# App root -# /app -# |- node_modules (dependencies) -# |- apps (app sources) -# -WORKDIR /app - -COPY package.json package-lock.json ./ - -ENV NODE_ENV production - -RUN npm ci - -COPY . . - -RUN $(npm bin)/tsc -p ./apps/api/tsconfig.app.json - -EXPOSE 3000 - -CMD node dist/apps/api/main.js - - diff --git a/.deploy/webapp/README.md b/.deploy/webapp/README.md index 7b2e6ff70..5fd0ef143 100644 --- a/.deploy/webapp/README.md +++ b/.deploy/webapp/README.md @@ -1,12 +1,15 @@ -WebApp -====== +# WebApp Dockerize Angular WebApp +> use [nginxconfig](https://nginxconfig.io/) to generate `nginx.conf` + ### Deploy #### Build Nginx + > Build and publish custom nginx image for OpenShift (One time only) + ```bash docker build -t openshift-nginx -f .deploy/webapp/nginx.dockerfile . docker tag openshift-nginx xmlking/openshift-nginx:1.14-alpine @@ -18,19 +21,23 @@ docker push xmlking/openshift-nginx:latest ``` #### Build App + > Build ngx-starter-kit docker image + ```bash # build app docker image -docker build --tag=ngx-starter-kit -f .deploy/webapp/prod.dockerfile . +docker build --tag=ngx-starter-kit -f .deploy/webapp/prod.dockerfile . ``` #### Docker Push + > Push ngx-starter-kit docker image + ```bash # login to hub.docker.com to push docker image docker login -# tag +# tag docker tag ngx-starter-kit xmlking/ngx-starter-kit:1.0.0-SNAPSHOT docker tag xmlking/ngx-starter-kit:1.0.0-SNAPSHOT xmlking/ngx-starter-kit:latest @@ -40,7 +47,9 @@ docker push xmlking/ngx-starter-kit:latest ``` #### OpenShift Deployment + > Deploy ngx-starter-kit app to OpenShift + ```bash # login with your ID oc login @@ -59,29 +68,32 @@ oc delete all -l app=webapp -n cockpit oc delete all,configmap,secret -l app=webapp -n ngx-starter-kit # redeploy -from OpenShift Console UI, -Applications > Deployments > webapp > Deploy +from OpenShift Console UI, +Applications > Deployments > webapp > Deploy ``` - ### K8S Commands + ```bash kubectl get services kubectl get pods kubectl logs -f keycloak-server-6-grfmg ``` -### Run +### Run + Run docker locally for testing. + ```bash docker run -it -p 4200:8080 -v .deploy/webapp/nginx.conf:/etc/nginx/conf.d/nginx.conf cockpit ``` The app will be available at http://localhost:4200 -You can tweak the nginx config ```nginx.conf``` for your specific needs. +You can tweak the nginx config `nginx.conf` for your specific needs. ### SSH + ```bash # SSH to the running container (CONTAINER ID from `docker ps` command) docker exec -it sh @@ -90,13 +102,14 @@ docker-compose exec web sh ``` ###Maintenance + ```bash docker container prune docker image prune ``` - ### Ref -* If you get 137 error - * https://samwize.com/2016/05/19/docker-error-returned-a-non-zero-code-137/ - * https://docs.docker.com/docker-for-mac/#advanced + +- If you get 137 error + - https://samwize.com/2016/05/19/docker-error-returned-a-non-zero-code-137/ + - https://docs.docker.com/docker-for-mac/#advanced diff --git a/.dockerignore b/.dockerignore index bb308d7bf..1ca2cf737 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,6 +3,9 @@ dist tmp sme +.git/ +.gitignore + # dependencies node_modules bower_components diff --git a/.gitignore b/.gitignore index 6a63372d4..f483b3821 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,10 @@ # dependencies /node_modules +# profiling files +chrome-profiler-events.json +speed-measure-plugin.json + # IDEs and editors /.idea .project diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..627767897 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +# Add files here to ignore them from prettier formatting +tools/schematics/store/_files diff --git a/CHANGELOG.md b/CHANGELOG.md index e47d4800b..da29301cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,43 @@ +# [1.3.0](https://github.com/xmlking/ngx-starter-kit/compare/v1.2.0...v1.3.0) (2018-11-23) + + +### Bug Fixes + +* **api:** fix auth config ([67f8c57](https://github.com/xmlking/ngx-starter-kit/commit/67f8c57)) +* **api:** make typeorm work with 'ng serve api' ([e549023](https://github.com/xmlking/ngx-starter-kit/commit/e549023)) +* **auth:** fix redirection to dashboard after login via ImplicitFLow ([6685ce9](https://github.com/xmlking/ngx-starter-kit/commit/6685ce9)) +* **chat-box:** fix voice box for safari ([5068a72](https://github.com/xmlking/ngx-starter-kit/commit/5068a72)) +* **core:** adding es7/array polyfill to support old browsers ([7340567](https://github.com/xmlking/ngx-starter-kit/commit/7340567)) +* **core:** removed ng-package.prod.json as it is no longer needed by nx ([f51f0f5](https://github.com/xmlking/ngx-starter-kit/commit/f51f0f5)) +* **eventbus:** workaround for ngxs router plugin issue ([78a41a2](https://github.com/xmlking/ngx-starter-kit/commit/78a41a2)) +* **eventbus:** workaround for ngxs router plugin issue ([9fb3ab0](https://github.com/xmlking/ngx-starter-kit/commit/9fb3ab0)) +* **experiments:** update ngx-knob, lock d3 version ([1b26e5b](https://github.com/xmlking/ngx-starter-kit/commit/1b26e5b)) +* **grid:** fix drag: changed cdkDragRootElement from .mat-dialog-container .cdk-overlay-pane ([92153e6](https://github.com/xmlking/ngx-starter-kit/commit/92153e6)) +* **material:** mat-placeholde -> mat-label ([95b3141](https://github.com/xmlking/ngx-starter-kit/commit/95b3141)) +* **ThemePicker:** ThemePicker now using PreferenceState for storage ([d448bf8](https://github.com/xmlking/ngx-starter-kit/commit/d448bf8)) + + +### Features + +* **analytics:** added google analytics service ([f52e75f](https://github.com/xmlking/ngx-starter-kit/commit/f52e75f)) +* **api:** added push API module to save PushSubscriptions ([945034c](https://github.com/xmlking/ngx-starter-kit/commit/945034c)) +* **core:** using Inject(WINDOW) and new ServiceWorker ([2bfc467](https://github.com/xmlking/ngx-starter-kit/commit/2bfc467)) +* **dashboard:** added profile and settings pages ([848d51e](https://github.com/xmlking/ngx-starter-kit/commit/848d51e)) +* **dashboard:** added profile and settings pages ([1a77689](https://github.com/xmlking/ngx-starter-kit/commit/1a77689)) +* **notifications:** added field: native to Notification model ([12fa080](https://github.com/xmlking/ngx-starter-kit/commit/12fa080)) +* **notifications:** added notify, notifyAll API ([3600c99](https://github.com/xmlking/ngx-starter-kit/commit/3600c99)) +* **push:** PushNotifications subscription backend API ([4b65131](https://github.com/xmlking/ngx-starter-kit/commit/4b65131)) + + +### Performance Improvements + +* **polish:** removed console.log ([12bde29](https://github.com/xmlking/ngx-starter-kit/commit/12bde29)) + + +### Reverts + +* **test:** test ([348c307](https://github.com/xmlking/ngx-starter-kit/commit/348c307)) + # [1.2.0](https://github.com/xmlking/ngx-starter-kit.git/compare/v1.1.0...v1.2.0) (2018-10-28) diff --git a/PLAYBOOK-NEST.md b/PLAYBOOK-NEST.md index fa763e5b1..c1c44c3c9 100644 --- a/PLAYBOOK-NEST.md +++ b/PLAYBOOK-NEST.md @@ -1,62 +1,69 @@ -DIY NestJS Playbook -=================== +# DIY NestJS Playbook creating NestJS project and generate nest artifacts with-in monorepo. > An Introduction to [NestJS](https://www.joshmorony.com/an-introduction-to-nestjs-for-ionic-developers/) -### Prerequisites +### Prerequisites #### Install Global Packages + ```bash npm remove -g @nestjs/cli npm install -g @nestjs/cli ``` ### Scaffold Project + > adding code dependencies + ```bash nest new apps/api "my api" "0.1.0-SNAPSHOT" "Sumanth Chinthagunta " -d -npm i @nestjs/core @nestjs/common -npm i @nestjs/microservices @nestjs/websockets @nestjs/testing @nestjs/typeorm typeorm mongodb -npm i @nestjs/swagger -npm i @nestjs/passport passport passport-jwt @xmlking/jwks-rsa -npm i nest-router -npm i nodemailer pug -# fastify-* are optional. use only if you want to replace express with fastify -npm i fastify fastify-formbody fastify-swagger +# Add nestjs +npm i @nestjs/{common,core,microservices,swagger,websockets,typeorm,passport,elasticsearch} +# fastify-* are optional. use only if you want to replace express with fastify +npm i fastify fastify-formbody fastify-swagger +npm i -D @nestjs/testing npm i -D @nestjs/schematics -npm i -D rimraf nodemon tsconfig-paths ts-loader -npm i -D jest ts-jest @types/jest supertest @types/supertest -npm i -D webpack-cli webpack-node-externals -npm i -D @types/nodemailer -npm i -D @types/socket.io -npm i -D @types/passport@0.4.2 @types/passport-jwt - ``` + > check versions + ```bash # check of nest installed nest info ``` #### Dependencies + > adding 3rd party modules/libs ```bash -npm i class-validator -npm i class-transformer +npm i pg npm i dotenv npm i helmet +npm i web-push +npm i nest-router +npm i nodemailer pug +npm i class-validator +npm i class-transformer +npm i passport passport-jwt @xmlking/jwks-rsa -npm i -D @types/dotenv +npm i -D rimraf nodemon tsconfig-paths ts-loader +npm i -D jest ts-jest @types/jest supertest @types/supertest +npm i -D webpack-cli webpack-node-externals +npm i -D @types/nodemailer +npm i -D @types/socket.io +npm i -D @types/passport@0.4.2 @types/passport-jwt +npm i -D @types/web-push npm i -D @types/helmet ``` - + #### Generate Artifacts + ```bash # scaffold core module nest g module core --dry-run @@ -65,7 +72,7 @@ nest g exception auth --dry-run # scaffold shared module nest g module shared --dry-run -nest g gateway eventbus shared --dry-run # /src/shared/eventbus/eventbus.gateway.ts to shared/eventbus.gateway.ts +nest g gateway eventbus shared --dry-run # /src/shared/eventbus/eventbus.gateway.ts to shared/eventbus.gateway.ts # scaffold project module nest g module project --dry-run @@ -86,30 +93,35 @@ nest g service email email --dry-run # scaffold auth module nest g module auth --dry-run -nest g service auth auth --dry-run -nest g controller auth --dry-run +nest g service auth auth --dry-run +nest g controller auth --dry-run nest g class user auth --dry-run # move ../ and rename as user.entity.ts # scaffold chat module nest g module chat --dry-run -nest g service chat chat --dry-run -nest g controller chat --dry-run -nest g gateway chat --dry-run +nest g service chat chat --dry-run +nest g controller chat --dry-run +nest g gateway chat --dry-run # scaffold chat module nest g module notifications --dry-run nest g controller notifications --dry-run nest g service notifications notifications --dry-run nest g class notification notifications --dry-run -``` +# scaffold push module +nest g module push --dry-run +nest g controller push --dry-run +nest g service push --dry-run +nest g class subscription push --no-spec --dry-run # rename as subscription.entity.ts +``` ### Ref -* Awesome Nest - * https://github.com/juliandavidmr/awesome-nest -* ChatBot - * https://github.com/adrien2p/nestjs-dialogflow -* https://github.com/beeman/nest-angular-nx -* https://github.com/cgatian/customer-portal -* http://blog.exceptionfound.com/index.php/2018/06/07/nestjs-basic-auth-and-sessions/ +- Awesome Nest + - https://github.com/juliandavidmr/awesome-nest +- ChatBot + - https://github.com/adrien2p/nestjs-dialogflow +- https://github.com/beeman/nest-angular-nx +- https://github.com/cgatian/customer-portal +- http://blog.exceptionfound.com/index.php/2018/06/07/nestjs-basic-auth-and-sessions/ diff --git a/PLAYBOOK.md b/PLAYBOOK.md index 5b51e8569..95c9edf66 100644 --- a/PLAYBOOK.md +++ b/PLAYBOOK.md @@ -1,21 +1,22 @@ -DIY Playbook -============ +# DIY Playbook Do-it-yourself step-by-step instructions to create this project structure from scratch. +### Prerequisites -### Prerequisites > you need following tools. versions listed here are minimal versions tested. -| Software | Version | Optional | -|-------------------------------|----------|----------| -| Node | v11.1.0 | | -| NPM | v6.4.1 | | -| Angular CLI | v7.0.0 | | -| @nrwl/schematics | v7.0.0 | | -| @nestjs/cli | v5.6.2 | | +| Software | Version | Optional | +| -------------------- | ------- | -------- | +| Node | v11.1.0 | | +| NPM | v6.4.1 | | +| Angular CLI | v7.1.0 | | +| @nrwl/schematics | v7.1.0 | | +| @nestjs/cli | v5.6.3 | | +| semantic-release-cli | v4.0.11 | | ### Install Prerequisites + ```bash # install or Update Node with brew or NVM brew update @@ -28,26 +29,31 @@ npm install -g npm Install [redux-devtools](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en) for Chrome (optional) ### Install Kubernetes (optional) + follow instructions [here](https://gist.github.com/xmlking/62ab53753c0f0f5247d0e174b31dab21) to install kubernetes toolchain: + 1. Docker for Mac (edge version) 2. Helm (optional) 3. kubectx (optional) #### Install Bazel (optional) + For Mac, install via Brew. [Instructions](https://docs.bazel.build/versions/master/install-os-x.html#install-on-mac-os-x-homebrew) + ```bash brew install bazel bazel version # you can upgrade to a newer version of Bazel with: brew upgrade bazel -# if needed +# if needed sudo xcode-select -s /Applications/Xcode.app/Contents/Developer sudo xcodebuild -license bazel clean --expunge ``` #### Install Global Packages + ```bash npm remove -g @angular/cli npm remove -g @nrwl/schematics @@ -55,7 +61,7 @@ npm remove -g @nestjs/cli npm remove -g semantic-release-cli npm remove -g commitizen -npm install -g @angular/cli +npm install -g @angular/cli@next npm install -g @nrwl/schematics npm install -g @nestjs/cli npm install -g semantic-release-cli @@ -77,11 +83,19 @@ npm ls jasmine-marbles ``` ### Scaffold Project + > steps below are for setting up a new project from the scratch. for nx help `npm run help` +> Explicitly Passing Arguments to Angular CLI + +`nx/ng` commands now accept a delimiter to distinguish the end of options for `Nx` and the beginning of options to `Angular CLI` with a (like npm run) according to Guideline 10 of `POSIX.2 utility syntax guidelines`. + +`npm run affected -- --target lint --uncommitted --parallel -- --fix` + #### Create Workspace + ```bash # create workspace Ref: https://nrwl.io/nx/guide-nx-workspace create-nx-workspace ngx-starter-kit --prefix=ngx --npm-scope=xmlking --package-manager=npm @@ -100,7 +114,7 @@ ng generate jest # make sure we are up-to-date ng update -# and update as suggested. e.g., +# and update as suggested. e.g., ng update @nrwl/schematics ng update --all # also run `npm outdated` and update versions in package.json then run `npm install` @@ -108,7 +122,7 @@ ng update --all # generate webapp app ng g app webapp --routing --style=scss --prefix=ngx --unit-test-runner=jest --e2e-test-runner=cypress --tags=app-module --dry-run # or with ivy renderer -ng g app webapp --routing --style=scss --prefix=ngx --unit-test-runner=jest --e2e-test-runner=cypress --tags=app-module --experimental-ivy --dry-run +ng g app webapp --routing --style=scss --prefix=ngx --unit-test-runner=jest --e2e-test-runner=cypress --tags=app-module --dry-run -- --experimental-ivy # generate api app with nestjs ng g node-app api --framework=express --unit-test-runner=jest --tags=api-module --dry-run @@ -117,32 +131,33 @@ ng g node-app backend --framework=express --unit-test-runner=jest --tags=api-mod ``` #### Dependencies + > adding 3rd party modules/libs + ```bash cd ngx-starter-kit # Add PWA ng add @angular/pwa --project webapp -# Add Material +# Add Material # Ref: https://material.angular.io/guide/schematics # Ref: https://material.angular.io/guide/getting-started ng add @angular/material npm i hammerjs npm i -D @types/hammerjs -npm i moment ngx-moment -npm i @angular/material-moment-adapter +npm i date-fns@next -# Add Flex-Layout +# Add Flex-Layout npm i @angular/flex-layout # Add in-memory-web-api npm i angular-in-memory-web-api -# Add oauth2-oidc -npm i angular-oauth2-oidc +# Add oauth2-oidc +npm i angular-oauth2-oidc # Add NGXS ng add @ngxs/schematics -# or add NGXS manually +# or add NGXS manually npm i @ngxs/devtools-plugin @ngxs/{store,router-plugin,form-plugin,devtools-plugin} npm i -D @ngxs/schematics @@ -158,14 +173,9 @@ filepond-plugin-image-crop \ filepond-plugin-image-preview # Add Socket.io -npm i socket.io-client +npm i socket.io-client npm i -D @types/socket.io-client -# Add nestjs -npm i @nestjs/{common,core,microservices,swagger,websockets,typeorm,passport,elasticsearch} -# tslint rules -npm i -D @nestjs/testing - # add lite-server to test PWA locally npm i -D lite-server @@ -199,25 +209,27 @@ npm i -D testcafe testcafe-angular-selectors testcafe-live semantic-release-cli setup npm i -D semantic-release @semantic-release/{changelog,git,github,npm} -npm i -D commitizen cz-conventional-changelog -npm i -D @commitlint/{config-conventional,cli} -npm i -D husky +npm i -D commitizen cz-conventional-changelog +npm i -D @commitlint/{config-conventional,cli} +npm i -D husky npm i -D lint-staged ``` > update 3rd party modules/schematics + ```bash -ng update @angular/core -ng update @angular/cli -ng update @angular/core +ng update @angular/core@next +ng update @angular/cli@next ng update @angular/material --force -ng update @angular/pwa +ng update @angular/pwa@next ng update @ngx-formly/schematics --ui-theme=material ng update @nrwl/schematics --force ``` #### Generate Artifacts -> Add `--dry-run` option to following commands to see which artifacts will be created, without actually creating them. + +> Add `--dry-run` option to following commands to see which artifacts will be created, without actually creating them. + ```bash # generate `Lazy-loaded Feature Modules` @@ -228,7 +240,7 @@ ng g lib experiments --routing --lazy --prefix=ngx --parent-module=libs/dashb ng g lib widgets --routing --lazy --prefix=ngx --parent-module=libs/dashboard/src/lib/dashboard.module.ts --unit-test-runner=jest --tags=child-module ng g lib grid --routing --lazy --prefix=ngx --parent-module=libs/dashboard/src/lib/dashboard.module.ts --unit-test-runner=jest --tags=child-module -ng g lib animations --module false -tags=utils --unit-test-runner=jest --dry-run +ng g lib animations --module false -tags=utils --unit-test-runner=jest --dry-run ng g lib Tree --module false --publishable=true --tags=utils --unit-test-runner=jest --dry-run ng g lib utils --module false --tags=utils --unit-test-runner=jest --dry-run # system wide models @@ -244,12 +256,13 @@ ng g service services/MediaQuery --project=core --dry-run ng g service services/DeepLink --project=core --dry-run ng g service services/Feature --project=core --dry-run ng g service services/GoogleAnalytics --project=core --dry-run +ng g service PushNotification --project=core --dry-run -# `material` module to encapulate material libs which is impoted into any `Lazy-loaded Feature Modules` that need material components +# `material` module to encapulate material libs which is impoted into any `Lazy-loaded Feature Modules` that need material components ng g lib material --prefix=ngx --spec=false --tags=shared-module --unit-test-runner=jest --dry-run -# add `shared` module which will encapsulate angular and 3rd party modules, needed for all `Lazy-loaded Feature Modules` -ng g lib shared --prefix=ngx --tags=shared-module --unit-test-runner=jest +# add `shared` module which will encapsulate angular and 3rd party modules, needed for all `Lazy-loaded Feature Modules` +ng g lib shared --prefix=ngx --tags=shared-module --unit-test-runner=jest # generate containers, components for `shared` Module ng g service containers/entity/entity --project=shared ng g directive directives/min --project=shared --export=true @@ -301,7 +314,6 @@ ng g lib Notifications --prefix=ngx --tags=public-module --publishable=true --un ng g component notifications --project=notifications --flat --dry-run ng g class notification --type=model --project=notifications --dry-run ng g service notifications --project=notifications --dry-run -ng g service PushNotification --project=notifications --dry-run # generate components for `Quickpanel` Module ng g lib Quickpanel --prefix=ngx --tags=private-module --unit-test-runner=jest @@ -313,26 +325,26 @@ ng g component LoadingOverlay --project=loading-overlay --flat --dry-run # generate components for `svgViewer` Module ng g lib svgViewer --prefix=ngx --tags=public-module --publishable=true --unit-test-runner=jest -ng g component svgViewer --project=svg-viewer --flat --dry-run +ng g component svgViewer --project=svg-viewer --flat --dry-run # generate components for `led` Module ng g lib led --prefix=ngx --tags=public-module --publishable=true -ng g component led --project=led --flat --dry-run +ng g component led --project=led --flat --dry-run # generate components for `chatBox` Module -ng g lib chatBox --prefix=ngx --tags=public-module --publishable=true --unit-test-runner=jest --dry-run -ng g component chatBox --project=chat-box --flat --dry-run -ng g component components/typingIndicator --project=chat-box --dry-run -ng g component components/chatCard --project=chat-box --dry-run +ng g lib chatBox --prefix=ngx --tags=public-module --publishable=true --unit-test-runner=jest --dry-run +ng g component chatBox --project=chat-box --flat --dry-run +ng g component components/typingIndicator --project=chat-box --dry-run +ng g component components/chatCard --project=chat-box --dry-run ng g component components/TextToSpeechPreferences --project=chat-box --dry-run -ng g service services/nlp --project=chat-box --dry-run -ng g service services/SpeechToText --project=chat-box --dry-run -ng g service services/TextToSpeech --project=chat-box --dry-run -ng g service services/chat --project=chat-box --dry-run +ng g service services/nlp --project=chat-box --dry-run +ng g service services/SpeechToText --project=chat-box --dry-run +ng g service services/TextToSpeech --project=chat-box --dry-run +ng g service services/chat --project=chat-box --dry-run # generate components for `socketioPlugin` Module ng g lib socketioPlugin --prefix=ngx --tags=public-module --publishable=true --spec=false --unit-test-runner=jest --dry-run -ng g service socketioSubject --project=socketio-plugin --dry-run +ng g service socketioSubject --project=socketio-plugin --dry-run # generate components for `openTracing` Module ng g lib openTracing --prefix=ngx --tags=public-module --publishable=true --spec=false --unit-test-runner=jest --dry-run @@ -341,15 +353,15 @@ ng g interceptor interceptors/tracing --project=open-tracing --dry-run # generate components for `jsonDiff` Module ng g lib jsonDiff --prefix=ngx --tags=public-module --publishable=true --unit-test-runner=jest -ng g component jsonDiff --project=json-diff --flat --dry-run -ng g component jsonDiffTree --project=json-diff --flat --dry-run +ng g component jsonDiff --project=json-diff --flat --dry-run +ng g component jsonDiffTree --project=json-diff --flat --dry-run # generate components for `clap` Module ng g lib clap --prefix=ngx --tags=public-module --spec=false --publishable=true --unit-test-runner=jest -ng g component clap --project=clap -s -t --spec=false --export --flat --dry-run -ng g component components/counterBubble --project=clap -s -t --spec=false --flat --dry-run -ng g component components/totalCounter --project=clap -s -t --spec=false --flat --dry-run -ng g component components/fab --project=clap -s -t --spec=false --flat --dry-run +ng g component clap --project=clap -s -t --spec=false --export --flat --dry-run +ng g component components/counterBubble --project=clap -s -t --spec=false --flat --dry-run +ng g component components/totalCounter --project=clap -s -t --spec=false --flat --dry-run +ng g component components/fab --project=clap -s -t --spec=false --flat --dry-run # generate components for `ngx-utils` Module ng g lib ngxUtils --prefix=ngx --tags=public-module,utils --module false --publishable=true --unit-test-runner=jest @@ -365,11 +377,19 @@ ng g directive directives/ng-let/ngLet --selector=ngLet --project=ngx-utils --m ng g module directives/routerLinkMatch --project=ngx-utils --spec=false --dry-run ng g directive directives/router-link-match/RouterLinkMatch --selector=routerLinkMatch --project=ngx-utils --module=router-link-match --export --dry-run +ng g module pipes/dateFns --project=ngx-utils --spec=false --dry-run +ng g service pipes/date-fns/DateFnsConfiguration --project=ngx-utils --module=date-fns --spec=false --dry-run +ng g pipe pipes/date-fns/FormatDistanceToNow --project=ngx-utils --module=date-fns --export --dry-run +amTimeAgo + +TimeAgoPipe + + # generate components for `toolbar` Module -ng g lib toolbar --prefix=ngx --tags=private-module --unit-test-runner=jest --dry-run -ng g component toolbar --project=toolbar --flat --dry-run -ng g component components/search --project=toolbar --dry-run +ng g lib toolbar --prefix=ngx --tags=private-module --unit-test-runner=jest --dry-run +ng g component toolbar --project=toolbar --flat --dry-run +ng g component components/search --project=toolbar --dry-run ng g component components/searchBar --project=toolbar ng g component components/UserMenu --project=toolbar ng g component components/FullscreenToggle --project=toolbar --dry-run @@ -377,18 +397,18 @@ ng g component components/SidenavMobileToggle --project=toolbar --dry-run ng g component components/QuickpanelToggle --project=toolbar --dry-run # generate components for `sidenav` Module -ng g lib sidenav --prefix=ngx --tags=private-module --unit-test-runner=jest --dry-run -ng g component sidenav --project=sidenav --flat --dry-run -ng g component components/sidenavItem --project=sidenav --dry-run -ng g directive IconSidenav --project=sidenav --dry-run +ng g lib sidenav --prefix=ngx --tags=private-module --unit-test-runner=jest --dry-run +ng g component sidenav --project=sidenav --flat --dry-run +ng g component components/sidenavItem --project=sidenav --dry-run +ng g directive IconSidenav --project=sidenav --dry-run # generate components for `auth` Module -ng g lib auth --prefix=ngx --tags=private-module,core-module --prefix=ngx --style=scss --unit-test-runner=jest --dry-run +ng g lib auth --prefix=ngx --tags=private-module,core-module --prefix=ngx --style=scss --unit-test-runner=jest --dry-run ng g component components/login --project=auth --dry-run ng g @ngxs/schematics:store --name=auth --spec --project=auth --dry-run # generate components for `navigator` Module -ng g lib navigator --prefix=ngx --tags=private-module,core-module --unit-test-runner=jest --dry-run +ng g lib navigator --prefix=ngx --tags=private-module,core-module --unit-test-runner=jest --dry-run ng g service services/menu --project=navigator --dry-run ng g class models/menuItem --project=navigator --type=model --dry-run ng g class state/menu --project=navigator --type=state --dry-run @@ -404,7 +424,8 @@ ng g component containers/about --project=home ng g component components/rainbow --project=dashboard --dry-run ng g component containers/dashboardLayout --project=dashboard --dry-run ng g component containers/overview --project=dashboard --dry-run - +ng g component containers/profile --project=dashboard --dry-run +ng g component containers/settings --project=dashboard --dry-run # generate containers, components for `widgets` Module ng g component containers/wizdash --project=widgets --dry-run @@ -435,10 +456,11 @@ ng g component components/card --project=experiments --dry-run # generate components for `ImageComparison` Module ng g lib ImageComparison --prefix=ngx --tags=public-module --spec=false --publishable=true --dry-run -ng g component ImageComparison --project=image-comparison --export --flat --dry-run +ng g component ImageComparison --project=image-comparison --export --flat --dry-run ``` #### Workspace Schematics + ```bash # generate workspace-schematic `store` ng g workspace-schematic store @@ -448,20 +470,23 @@ npm run workspace-schematic store models/sumoDemo -- --project=grid --dry-run ``` ### Install + ```bash npm install cp .env.example .env ``` ### Update + ```bash -ng update +ng update ng update @angular/cli ng update @angular/core -ng update --all +ng update --all ``` ### Run + ```bash # dev run ng serve @@ -470,8 +495,8 @@ ng serve -c=mock # use proxy (if you have CORS disabled backend API) ng serve -c=mock --proxy-config proxy.conf.js # to bind to host IP, to demo from laptop -ng s --host -# ES2015 support: Set tsconfig.json target value as "es2015" and use --aot +ng s --host +# ES2015 support: Set tsconfig.json target value as "es2015" and use --aot ng serve -c=mock --aot -o # run prod mode ng serve -c=prod @@ -483,16 +508,20 @@ docker-compose up web ``` ### Serve from dist + > use this to test service-workers + ```bash -# 1st terminal - Start the build in (optional) watch mode +# 1st terminal - Start the build in (optional) watch mode ng build --prod --watch # 2nd in terminal - Start the static web server. this will use config from bs-config.json npx lite-server ``` ### Docs + > generate docs + ```bash # generate docs npx compodoc -p tsconfig.json -d docs @@ -501,7 +530,9 @@ npx compodoc -s -d docs ``` ### Deploy + > deploy demo to gh-pages + ```bash # build for gh-pages build:mock --base-href /ngx-starter-kit/ @@ -510,6 +541,7 @@ npx ngh --dir dist/apps/webapp ``` ### Release + ```bash npm whoami npx standard-version @@ -517,32 +549,37 @@ npx standard-version ``` ### Analyze + > Analyzing bundle size + ```bash npm run bundle-report - ``` +``` ### Check + > check if you on current versions. + ```bash -node -v +node -v npm -v ng -v npx nx --version ``` ### Production build and deployment -The prod image serves the minified app (sources compiles with a minimal set of dependencies), via an Nginx server. + +The prod image serves the minified app (sources compiles with a minimal set of dependencies), via an Nginx server. It is self-contained, and can therefore be pushed to a Docker registry to be deployed somewhere else easily. To start the container, use: + ```bash $ docker-compose up web # optional: --build, see below ``` Now open your browser at http://localhost:80 - ### IntelliJ/WebStorm Right click on `apps/webapp/src/styles` in project vie --> Make Directory as --> Resources Root. @@ -551,7 +588,7 @@ Right click on `docs` in project view --> Make Directory as --> Excluded. Right click on `dist` in project view --> Make Directory as --> Excluded. Right click on `coverage` in project view --> Make Directory as --> Excluded. -### Reference +### Reference -* Nx and Angular CLI - * https://github.com/nrwl/nx/wiki/Nx-and-Angular-CLI +- Nx and Angular CLI + - https://github.com/nrwl/nx/wiki/Nx-and-Angular-CLI diff --git a/README.md b/README.md index f41adb57e..6f15838c7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -Ngx Starter Kit -=============== +# Ngx Starter Kit [![Build Status](https://travis-ci.org/xmlking/ngx-starter-kit.svg?branch=master)](https://travis-ci.org/xmlking/ngx-starter-kit) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) @@ -9,7 +8,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular live [Demo](https://xmlking.github.io/ngx-starter-kit/index.html) -**PANT** (*PostgreSQL* - *Angular* - *NestJS* - *TypeScript*) Stack +**PANTS** (_PostgreSQL_ - _Angular_ - _NestJS_ - _TypeScript_) Stack ## Install @@ -50,7 +49,7 @@ Run `npm run doc:serve` to serve docs. Run `npm run deploy:mock` to deploy demo app to gp-pages. Analyzing bundle size `npm run bundle-report` - + Analyzing and Visualizing the Dependency Graph (affected modules by uncommitted changes) -`npm run affected:dep-graph -- --uncommitted` +`npm run affected -- --target dep-graph --uncommitted` diff --git a/angular.json b/angular.json index 950e97fb9..caae51f90 100644 --- a/angular.json +++ b/angular.json @@ -29,9 +29,7 @@ "apps/webapp/src/silent-refresh.html" ], "stylePreprocessorOptions": { - "includePaths": [ - "apps/webapp/src/styles" - ] + "includePaths": ["apps/webapp/src/styles"] }, "styles": [ "apps/webapp/src/styles.scss", @@ -174,14 +172,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "apps/webapp/tsconfig.app.json", - "apps/webapp/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**", - "**/*.json" - ] + "tsConfig": ["apps/webapp/tsconfig.app.json", "apps/webapp/tsconfig.spec.json"], + "exclude": ["**/node_modules/**", "**/*.json"] } }, "test": { @@ -196,8 +188,8 @@ }, "webapp-e2e": { "root": "apps/webapp-e2e", - "sourceRoot": "apps/webapp-e2e/src", "projectType": "application", + "prefix": "", "architect": { "e2e": { "builder": "@nrwl/builders:jest", @@ -215,10 +207,7 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": "apps/webapp-e2e/tsconfig.e2e.json", - "exclude": [ - "**/node_modules/**", - "**/*.json" - ] + "exclude": ["**/node_modules/**", "**/*.json"] } } } @@ -233,12 +222,15 @@ "builder": "@nrwl/builders:node-build", "options": { "outputPath": "dist/apps/api", + "sourceMap": true, "main": "apps/api/src/main.ts", "tsConfig": "apps/api/tsconfig.app.json", + "assets": ["apps/api/src/assets"], "showCircularDependencies": false }, "configurations": { "production": { + "sourceMap": false, "optimization": true, "extractLicenses": true, "fileReplacements": [ @@ -254,19 +246,18 @@ "builder": "@nrwl/builders:node-execute", "options": { "buildTarget": "api:build" + }, + "configurations": { + "production": { + "buildTarget": "api:build:production" + } } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "apps/api/tsconfig.app.json", - "apps/api/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**", - "**/*.json" - ] + "tsConfig": ["apps/api/tsconfig.app.json", "apps/api/tsconfig.spec.json"], + "exclude": ["**/node_modules/**", "**/*.json"] } }, "test": { @@ -294,9 +285,7 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": "apps/api-e2e/tsconfig.e2e.json", - "exclude": [ - "**/node_modules/**" - ] + "exclude": ["**/node_modules/**"] } } } @@ -337,13 +326,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "apps/backend/tsconfig.app.json", - "apps/backend/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["apps/backend/tsconfig.app.json", "apps/backend/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -364,13 +348,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/models/tsconfig.lib.json", - "libs/models/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/models/tsconfig.lib.json", "libs/models/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -392,13 +371,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/navigator/tsconfig.lib.json", - "libs/navigator/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/navigator/tsconfig.lib.json", "libs/navigator/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -427,13 +401,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/socketio-plugin/tsconfig.lib.json", - "libs/socketio-plugin/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/socketio-plugin/tsconfig.lib.json", "libs/socketio-plugin/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -462,13 +431,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/tree/tsconfig.lib.json", - "libs/tree/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/tree/tsconfig.lib.json", "libs/tree/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -490,14 +454,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/home/tsconfig.lib.json", - "libs/home/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**", - "**/*.json" - ] + "tsConfig": ["libs/home/tsconfig.lib.json", "libs/home/tsconfig.spec.json"], + "exclude": ["**/node_modules/**", "**/*.json"] } }, "test": { @@ -519,13 +477,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/dashboard/tsconfig.lib.json", - "libs/dashboard/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/dashboard/tsconfig.lib.json", "libs/dashboard/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -547,13 +500,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/not-found/tsconfig.lib.json", - "libs/not-found/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/not-found/tsconfig.lib.json", "libs/not-found/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -575,13 +523,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/experiments/tsconfig.lib.json", - "libs/experiments/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/experiments/tsconfig.lib.json", "libs/experiments/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -603,13 +546,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/widgets/tsconfig.lib.json", - "libs/widgets/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/widgets/tsconfig.lib.json", "libs/widgets/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -631,13 +569,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/material/tsconfig.lib.json", - "libs/material/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/material/tsconfig.lib.json", "libs/material/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -659,13 +592,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/animations/tsconfig.lib.json", - "libs/animations/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/animations/tsconfig.lib.json", "libs/animations/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -687,13 +615,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/utils/tsconfig.lib.json", - "libs/utils/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/utils/tsconfig.lib.json", "libs/utils/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -715,13 +638,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/auth/tsconfig.lib.json", - "libs/auth/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/auth/tsconfig.lib.json", "libs/auth/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -743,13 +661,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/shared/tsconfig.lib.json", - "libs/shared/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/shared/tsconfig.lib.json", "libs/shared/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -778,13 +691,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/app-confirm/tsconfig.lib.json", - "libs/app-confirm/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/app-confirm/tsconfig.lib.json", "libs/app-confirm/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -813,13 +721,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/draggable/tsconfig.lib.json", - "libs/draggable/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/draggable/tsconfig.lib.json", "libs/draggable/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -848,13 +751,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/breadcrumbs/tsconfig.lib.json", - "libs/breadcrumbs/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/breadcrumbs/tsconfig.lib.json", "libs/breadcrumbs/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -883,13 +781,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/scroll-to-top/tsconfig.lib.json", - "libs/scroll-to-top/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/scroll-to-top/tsconfig.lib.json", "libs/scroll-to-top/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -918,13 +811,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/scrollbar/tsconfig.lib.json", - "libs/scrollbar/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/scrollbar/tsconfig.lib.json", "libs/scrollbar/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -953,13 +841,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/context-menu/tsconfig.lib.json", - "libs/context-menu/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/context-menu/tsconfig.lib.json", "libs/context-menu/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -988,13 +871,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/theme-picker/tsconfig.lib.json", - "libs/theme-picker/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/theme-picker/tsconfig.lib.json", "libs/theme-picker/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1016,13 +894,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/quickpanel/tsconfig.lib.json", - "libs/quickpanel/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/quickpanel/tsconfig.lib.json", "libs/quickpanel/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1051,13 +924,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/svg-viewer/tsconfig.lib.json", - "libs/svg-viewer/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/svg-viewer/tsconfig.lib.json", "libs/svg-viewer/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1086,13 +954,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/led/tsconfig.lib.json", - "libs/led/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/led/tsconfig.lib.json", "libs/led/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1121,13 +984,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/chat-box/tsconfig.lib.json", - "libs/chat-box/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/chat-box/tsconfig.lib.json", "libs/chat-box/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1156,13 +1014,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/json-diff/tsconfig.lib.json", - "libs/json-diff/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/json-diff/tsconfig.lib.json", "libs/json-diff/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1184,13 +1037,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/toolbar/tsconfig.lib.json", - "libs/toolbar/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/toolbar/tsconfig.lib.json", "libs/toolbar/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1212,13 +1060,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/sidenav/tsconfig.lib.json", - "libs/sidenav/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/sidenav/tsconfig.lib.json", "libs/sidenav/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1247,13 +1090,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/loading-overlay/tsconfig.lib.json", - "libs/loading-overlay/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/loading-overlay/tsconfig.lib.json", "libs/loading-overlay/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1275,13 +1113,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/grid/tsconfig.lib.json", - "libs/grid/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/grid/tsconfig.lib.json", "libs/grid/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1310,13 +1143,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/notifications/tsconfig.lib.json", - "libs/notifications/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/notifications/tsconfig.lib.json", "libs/notifications/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1338,13 +1166,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/core/tsconfig.lib.json", - "libs/core/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/core/tsconfig.lib.json", "libs/core/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1373,13 +1196,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/clap/tsconfig.lib.json", - "libs/clap/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/clap/tsconfig.lib.json", "libs/clap/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1408,13 +1226,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/image-comparison/tsconfig.lib.json", - "libs/image-comparison/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/image-comparison/tsconfig.lib.json", "libs/image-comparison/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1443,13 +1256,8 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [ - "libs/ngx-utils/tsconfig.lib.json", - "libs/ngx-utils/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] + "tsConfig": ["libs/ngx-utils/tsconfig.lib.json", "libs/ngx-utils/tsconfig.spec.json"], + "exclude": ["**/node_modules/**"] } }, "test": { @@ -1480,7 +1288,8 @@ "typescriptMismatch": false, "versionMismatch": false }, - "defaultCollection": "@nrwl/schematics" + "defaultCollection": "@nrwl/schematics", + "packageManager": "npm" }, "defaultProject": "webapp" } diff --git a/apps/api-e2e/jest.config.js b/apps/api-e2e/jest.config.js index 665d81725..6f773672b 100644 --- a/apps/api-e2e/jest.config.js +++ b/apps/api-e2e/jest.config.js @@ -1,8 +1,8 @@ module.exports = { name: 'api-e2e', - testRegex: '.spec.ts$', + testRegex: '.e2e-spec.ts$', transform: { - '^.+\\.(ts|js|html)$': 'jest-preset-angular/preprocessor.js', + '^.+\\.(t|j)s$': 'ts-jest', }, moduleFileExtensions: ['js', 'json', 'ts'], collectCoverage: true, @@ -11,8 +11,7 @@ module.exports = { coverageDirectory: '../../coverage/apps/api-e2e', globals: { 'ts-jest': { - tsConfig: "./tsconfig.e2e.json" - } - } + tsConfig: 'apps/api-e2e/tsconfig.e2e.json', + }, + }, }; - diff --git a/apps/api-e2e/src/app.e2e-spec.ts b/apps/api-e2e/src/app.e2e-spec.ts index d725d4fa4..ba341776e 100755 --- a/apps/api-e2e/src/app.e2e-spec.ts +++ b/apps/api-e2e/src/app.e2e-spec.ts @@ -2,7 +2,7 @@ import * as request from 'supertest'; import { Test } from '@nestjs/testing'; import { INestApplication } from '@nestjs/common'; // @ts-ignore -import { AppModule } from '../../api/src/app.module'; +import { AppModule } from '../../api/src/app/app.module'; jest.setTimeout(30000); diff --git a/apps/api/API-TESTING.md b/apps/api/API-TESTING.md index 5dda17737..22b9cc1b4 100644 --- a/apps/api/API-TESTING.md +++ b/apps/api/API-TESTING.md @@ -1,18 +1,19 @@ -API Testing -=========== +# API Testing ### Database + ```bash psql -h -p -u psql -h -p -U -W ``` -### REST API +### REST API + > Note: you need to pass [access_token](#token) ```bash -# create +# create curl -v -X POST \ http://localhost:3000/api/notifications \ -H 'Content-Type: application/json' \ @@ -28,7 +29,7 @@ curl -v -X GET \ http://localhost:3000/api/notifications \ | jq . -# get one +# get one curl -v -X GET \ http://localhost:3000/api/notifications/1 \ | jq . @@ -70,8 +71,8 @@ curl -v -X DELETE \ ``` - ### Email + ```bash # send email curl -v -X POST \ @@ -85,8 +86,8 @@ curl -v -X POST \ | jq . ``` - ### Token + ```bash OIDC_ISSUER_URL=https://myroute-is360.a3c1.starter-us-west-1.openshiftapps.com/auth/realms/is360 OIDC_CLIENT_ID=is360ui @@ -107,7 +108,7 @@ response=$(curl -X POST $OIDC_ISSUER_URL/protocol/openid-connect/token \ -d client_id=OIDC_CLIENT_ID \ -d 'grant_type=password' \ -d 'scope=openid') - + access_token=$(echo $response | jq -r '.access_token') refresh_token=$(echo $response | jq -r '.refresh_token') @@ -123,12 +124,12 @@ curl -X GET \ -H "accept: application/json" \ -H "Authorization: Bearer $access_token" \ | jq . - + # Get User Profile curl -X POST $OIDC_ISSUER_URL/protocol/openid-connect/userinfo \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "access_token=$access_token" | jq . - + # Logout curl -X POST $OIDC_ISSUER_URL/protocol/openid-connect/logout \ -H "Content-Type: application/x-www-form-urlencoded" \ diff --git a/apps/api/README.md b/apps/api/README.md index fb93aae8b..2814c1d6a 100755 --- a/apps/api/README.md +++ b/apps/api/README.md @@ -1,5 +1,4 @@ -API -=== +# API ## Description @@ -7,23 +6,25 @@ Backend API build with [Nest](https://github.com/nestjs/nest) Framework. ## Built with - Component | Using | Descrption -------------------| ----------------------------------------------- | ---------- -Base | [NestJS](https://nestjs.com) | -ORM | [TypeORM](http://typeorm.io/) | -File Upload | [Multer](https://github.com/expressjs/multer) | -Validation | [Class-Validator](https://github.com/typestack/class-validator)| -Documentation | [Open API(Swagger)](https://swagger.io) | -Authentication | [Passport.js](http://www.passportjs.org) | -Testing | [Jest](https://github.com/facebook/jest) & [SuperTest](https://github.com/visionmedia/supertest)| -Code Style | [Prettier](https://github.com/prettier/prettier) & [TS-Lint](https://palantir.github.io/tslint/)| - +| Component | Using | Descrption | +| -------------- | ------------------------------------------------------------------------------------------------ | ---------- | +| Base | [NestJS](https://nestjs.com) | +| ORM | [TypeORM](http://typeorm.io/) | +| File Upload | [Multer](https://github.com/expressjs/multer) | +| Validation | [Class-Validator](https://github.com/typestack/class-validator) | +| Documentation | [Open API(Swagger)](https://swagger.io) | +| Authentication | [Passport.js](http://www.passportjs.org) | +| Testing | [Jest](https://github.com/facebook/jest) & [SuperTest](https://github.com/visionmedia/supertest) | +| Code Style | [Prettier](https://github.com/prettier/prettier) & [TS-Lint](https://palantir.github.io/tslint/) | ## Development + ### Run #### Postgres -> start Postgres + +> start Postgres + ```bash # start local postgres docker-compose up postgres @@ -33,22 +34,28 @@ docker-compose up -V postgres #remove volumes docker-compose down docker-compose down -v #remove volumes ``` + > if error `The container name "/postgres" is already in use by container`, remove orphan container. + ```bash docker ps -a docker rm 82be5234c94a ``` #### Run Dev Mode + ```bash # start in watch mode ng serve api # to turn on logging for `request` NODE_DEBUG=request ng serve api DEBUG=typeorm:* ng serve api +# optinally you can run with prod env(environment.prod.ts) for tesrting! use this for testing only. +ng serve api --prod ``` #### Run Prod Mode + ```bash # build first ng build api --prod @@ -61,14 +68,17 @@ npm run api:start:prod **Swagger Docs URL:** http://localhost:3000/docs ### Build -> build for production env + +> build for production env + ```bash npm run api:build ``` ### Generate + > scaffolding nest artifacts
-> For more details checkout [playbook](../../PLAYBOOK-NEST.md) +> For more details checkout [playbook](../../PLAYBOOK-NEST.md) ```bash # check of nest installed @@ -87,7 +97,9 @@ nest g exception auth --dry-run ``` ### Test + > coverage will be generate in coverage/apps/api + ```bash # unit tests ng test api @@ -96,11 +108,11 @@ ng test api ng test api-e2e ``` - ### Reference -* Awesome Nest - * https://github.com/juliandavidmr/awesome-nest -* NestJS Samples - * https://github.com/nestjs/nest/tree/master/sample -* TypeORL Samples - * https://github.com/typeorm/typeorm/tree/master/sample + +- Awesome Nest + - https://github.com/juliandavidmr/awesome-nest +- NestJS Samples + - https://github.com/nestjs/nest/tree/master/sample +- TypeORL Samples + - https://github.com/typeorm/typeorm/tree/master/sample diff --git a/apps/api/jest.config.js b/apps/api/jest.config.js index 87d6d2f4c..f96ffe169 100644 --- a/apps/api/jest.config.js +++ b/apps/api/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'api', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/apps/api' + coverageDirectory: '../../coverage/apps/api', }; diff --git a/apps/api/src/app.controller.spec.ts b/apps/api/src/app/app.controller.spec.ts similarity index 100% rename from apps/api/src/app.controller.spec.ts rename to apps/api/src/app/app.controller.spec.ts diff --git a/apps/api/src/app.controller.ts b/apps/api/src/app/app.controller.ts similarity index 100% rename from apps/api/src/app.controller.ts rename to apps/api/src/app/app.controller.ts diff --git a/apps/api/src/app.module.ts b/apps/api/src/app/app.module.ts similarity index 90% rename from apps/api/src/app.module.ts rename to apps/api/src/app/app.module.ts index 891ceac4d..3f9520503 100755 --- a/apps/api/src/app.module.ts +++ b/apps/api/src/app/app.module.ts @@ -7,6 +7,7 @@ import { UserModule } from './user'; // import { ChatModule } from './chat'; import { AppController } from './app.controller'; import { NotificationsModule } from './notifications'; +import { PushModule } from './push'; @Module({ imports: [ @@ -16,6 +17,7 @@ import { NotificationsModule } from './notifications'; children: [ { path: '/auth', module: AuthModule }, { path: '/user', module: UserModule }, + { path: '/push', module: PushModule }, // { path: '/account', module: AccountModule }, { path: '/notifications', module: NotificationsModule }, ], @@ -26,6 +28,7 @@ import { NotificationsModule } from './notifications'; UserModule, // AccountModule, NotificationsModule, + PushModule, // ChatModule, ], controllers: [AppController], diff --git a/apps/api/src/auth/auth.controller.spec.ts b/apps/api/src/app/auth/auth.controller.spec.ts similarity index 100% rename from apps/api/src/auth/auth.controller.spec.ts rename to apps/api/src/app/auth/auth.controller.spec.ts diff --git a/apps/api/src/auth/auth.controller.ts b/apps/api/src/app/auth/auth.controller.ts similarity index 100% rename from apps/api/src/auth/auth.controller.ts rename to apps/api/src/app/auth/auth.controller.ts diff --git a/apps/api/src/auth/auth.exception.ts b/apps/api/src/app/auth/auth.exception.ts similarity index 100% rename from apps/api/src/auth/auth.exception.ts rename to apps/api/src/app/auth/auth.exception.ts diff --git a/apps/api/src/auth/auth.module.ts b/apps/api/src/app/auth/auth.module.ts similarity index 100% rename from apps/api/src/auth/auth.module.ts rename to apps/api/src/app/auth/auth.module.ts diff --git a/apps/api/src/auth/auth.service.spec.ts b/apps/api/src/app/auth/auth.service.spec.ts similarity index 100% rename from apps/api/src/auth/auth.service.spec.ts rename to apps/api/src/app/auth/auth.service.spec.ts diff --git a/apps/api/src/auth/auth.service.ts b/apps/api/src/app/auth/auth.service.ts similarity index 100% rename from apps/api/src/auth/auth.service.ts rename to apps/api/src/app/auth/auth.service.ts diff --git a/apps/api/src/auth/decorators/allow.decorator.ts b/apps/api/src/app/auth/decorators/allow.decorator.ts similarity index 100% rename from apps/api/src/auth/decorators/allow.decorator.ts rename to apps/api/src/app/auth/decorators/allow.decorator.ts diff --git a/apps/api/src/auth/decorators/claims.decorator.ts b/apps/api/src/app/auth/decorators/claims.decorator.ts similarity index 100% rename from apps/api/src/auth/decorators/claims.decorator.ts rename to apps/api/src/app/auth/decorators/claims.decorator.ts diff --git a/apps/api/src/auth/decorators/current-user.decorator.ts b/apps/api/src/app/auth/decorators/current-user.decorator.ts similarity index 100% rename from apps/api/src/auth/decorators/current-user.decorator.ts rename to apps/api/src/app/auth/decorators/current-user.decorator.ts diff --git a/apps/api/src/auth/decorators/index.ts b/apps/api/src/app/auth/decorators/index.ts similarity index 100% rename from apps/api/src/auth/decorators/index.ts rename to apps/api/src/app/auth/decorators/index.ts diff --git a/apps/api/src/auth/decorators/raw-token.decorator.ts b/apps/api/src/app/auth/decorators/raw-token.decorator.ts similarity index 100% rename from apps/api/src/auth/decorators/raw-token.decorator.ts rename to apps/api/src/app/auth/decorators/raw-token.decorator.ts diff --git a/apps/api/src/auth/decorators/roles.decorator.ts b/apps/api/src/app/auth/decorators/roles.decorator.ts similarity index 100% rename from apps/api/src/auth/decorators/roles.decorator.ts rename to apps/api/src/app/auth/decorators/roles.decorator.ts diff --git a/apps/api/src/auth/decorators/token.decorator.ts b/apps/api/src/app/auth/decorators/token.decorator.ts similarity index 100% rename from apps/api/src/auth/decorators/token.decorator.ts rename to apps/api/src/app/auth/decorators/token.decorator.ts diff --git a/apps/api/src/auth/dto/create-user.dto.ts b/apps/api/src/app/auth/dto/create-user.dto.ts similarity index 100% rename from apps/api/src/auth/dto/create-user.dto.ts rename to apps/api/src/app/auth/dto/create-user.dto.ts diff --git a/apps/api/src/auth/dto/update-user.dto.ts b/apps/api/src/app/auth/dto/update-user.dto.ts similarity index 100% rename from apps/api/src/auth/dto/update-user.dto.ts rename to apps/api/src/app/auth/dto/update-user.dto.ts diff --git a/apps/api/src/auth/guards/allow.guard.ts b/apps/api/src/app/auth/guards/allow.guard.ts similarity index 100% rename from apps/api/src/auth/guards/allow.guard.ts rename to apps/api/src/app/auth/guards/allow.guard.ts diff --git a/apps/api/src/auth/guards/auth.guard.ts b/apps/api/src/app/auth/guards/auth.guard.ts similarity index 100% rename from apps/api/src/auth/guards/auth.guard.ts rename to apps/api/src/app/auth/guards/auth.guard.ts diff --git a/apps/api/src/auth/guards/compose.guard.ts b/apps/api/src/app/auth/guards/compose.guard.ts similarity index 100% rename from apps/api/src/auth/guards/compose.guard.ts rename to apps/api/src/app/auth/guards/compose.guard.ts diff --git a/apps/api/src/auth/guards/role.guard.ts b/apps/api/src/app/auth/guards/role.guard.ts similarity index 100% rename from apps/api/src/auth/guards/role.guard.ts rename to apps/api/src/app/auth/guards/role.guard.ts diff --git a/apps/api/src/auth/guards/ws-auth.guard.ts b/apps/api/src/app/auth/guards/ws-auth.guard.ts similarity index 100% rename from apps/api/src/auth/guards/ws-auth.guard.ts rename to apps/api/src/app/auth/guards/ws-auth.guard.ts diff --git a/apps/api/src/auth/index.ts b/apps/api/src/app/auth/index.ts similarity index 100% rename from apps/api/src/auth/index.ts rename to apps/api/src/app/auth/index.ts diff --git a/apps/api/src/auth/interfaces/jwt-token.interface.ts b/apps/api/src/app/auth/interfaces/jwt-token.interface.ts similarity index 100% rename from apps/api/src/auth/interfaces/jwt-token.interface.ts rename to apps/api/src/app/auth/interfaces/jwt-token.interface.ts diff --git a/apps/api/src/auth/passport/jwt.strategy.ts b/apps/api/src/app/auth/passport/jwt.strategy.ts similarity index 100% rename from apps/api/src/auth/passport/jwt.strategy.ts rename to apps/api/src/app/auth/passport/jwt.strategy.ts diff --git a/apps/api/src/auth/passport/local.strategy.ts b/apps/api/src/app/auth/passport/local.strategy.ts similarity index 100% rename from apps/api/src/auth/passport/local.strategy.ts rename to apps/api/src/app/auth/passport/local.strategy.ts diff --git a/apps/api/src/auth/passport/openid.strategy.ts b/apps/api/src/app/auth/passport/openid.strategy.ts similarity index 100% rename from apps/api/src/auth/passport/openid.strategy.ts rename to apps/api/src/app/auth/passport/openid.strategy.ts diff --git a/apps/api/src/auth/passport/ws-jwt.strategy.ts b/apps/api/src/app/auth/passport/ws-jwt.strategy.ts similarity index 100% rename from apps/api/src/auth/passport/ws-jwt.strategy.ts rename to apps/api/src/app/auth/passport/ws-jwt.strategy.ts diff --git a/apps/api/src/auth/user.entity.ts b/apps/api/src/app/auth/user.entity.ts similarity index 100% rename from apps/api/src/auth/user.entity.ts rename to apps/api/src/app/auth/user.entity.ts diff --git a/apps/api/src/chat/chat.controller.spec.ts b/apps/api/src/app/chat/chat.controller.spec.ts similarity index 100% rename from apps/api/src/chat/chat.controller.spec.ts rename to apps/api/src/app/chat/chat.controller.spec.ts diff --git a/apps/api/src/chat/chat.controller.ts b/apps/api/src/app/chat/chat.controller.ts similarity index 100% rename from apps/api/src/chat/chat.controller.ts rename to apps/api/src/app/chat/chat.controller.ts diff --git a/apps/api/src/chat/chat.gateway.ts b/apps/api/src/app/chat/chat.gateway.ts similarity index 100% rename from apps/api/src/chat/chat.gateway.ts rename to apps/api/src/app/chat/chat.gateway.ts diff --git a/apps/api/src/chat/chat.module.ts b/apps/api/src/app/chat/chat.module.ts similarity index 100% rename from apps/api/src/chat/chat.module.ts rename to apps/api/src/app/chat/chat.module.ts diff --git a/apps/api/src/chat/chat.service.spec.ts b/apps/api/src/app/chat/chat.service.spec.ts similarity index 100% rename from apps/api/src/chat/chat.service.spec.ts rename to apps/api/src/app/chat/chat.service.spec.ts diff --git a/apps/api/src/chat/chat.service.ts b/apps/api/src/app/chat/chat.service.ts similarity index 100% rename from apps/api/src/chat/chat.service.ts rename to apps/api/src/app/chat/chat.service.ts diff --git a/apps/api/src/chat/index.ts b/apps/api/src/app/chat/index.ts similarity index 100% rename from apps/api/src/chat/index.ts rename to apps/api/src/app/chat/index.ts diff --git a/apps/api/src/chat/interfaces/message.ts b/apps/api/src/app/chat/interfaces/message.ts similarity index 100% rename from apps/api/src/chat/interfaces/message.ts rename to apps/api/src/app/chat/interfaces/message.ts diff --git a/apps/api/src/chat/interfaces/user.ts b/apps/api/src/app/chat/interfaces/user.ts similarity index 100% rename from apps/api/src/chat/interfaces/user.ts rename to apps/api/src/app/chat/interfaces/user.ts diff --git a/apps/api/src/config/README.md b/apps/api/src/app/config/README.md similarity index 64% rename from apps/api/src/config/README.md rename to apps/api/src/app/config/README.md index d997b9228..dd6adc024 100644 --- a/apps/api/src/config/README.md +++ b/apps/api/src/app/config/README.md @@ -1,6 +1,5 @@ -Config Module -============= +# Config Module -Config Module is a **Global Module** to share configuration across application. +Config Module is a **Global Module** to share configuration across application. ### How to use? diff --git a/apps/api/src/config/config.module.ts b/apps/api/src/app/config/config.module.ts similarity index 100% rename from apps/api/src/config/config.module.ts rename to apps/api/src/app/config/config.module.ts diff --git a/apps/api/src/config/config.service.ts b/apps/api/src/app/config/config.service.ts similarity index 84% rename from apps/api/src/config/config.service.ts rename to apps/api/src/app/config/config.service.ts index 70730aaf3..76ac727e0 100644 --- a/apps/api/src/config/config.service.ts +++ b/apps/api/src/app/config/config.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common'; import { environment } from '@env-api/environment'; // tslint:disable-next-line -const packageJson = require('../../../../package.json'); +const packageJson = require('../../../../../package.json'); @Injectable() export class ConfigService { @@ -25,7 +25,7 @@ export class ConfigService { } public isProd(): boolean { - return process.env.NODE_ENV && process.env.NODE_ENV === 'production'; + return this.config.production; } public getAllowWhitelist(): string[] { diff --git a/apps/api/src/config/index.ts b/apps/api/src/app/config/index.ts similarity index 100% rename from apps/api/src/config/index.ts rename to apps/api/src/app/config/index.ts diff --git a/apps/api/src/core/context/index.ts b/apps/api/src/app/core/context/index.ts similarity index 100% rename from apps/api/src/core/context/index.ts rename to apps/api/src/app/core/context/index.ts diff --git a/apps/api/src/core/context/request-context.middleware.ts b/apps/api/src/app/core/context/request-context.middleware.ts similarity index 100% rename from apps/api/src/core/context/request-context.middleware.ts rename to apps/api/src/app/core/context/request-context.middleware.ts diff --git a/apps/api/src/core/context/request-context.ts b/apps/api/src/app/core/context/request-context.ts similarity index 100% rename from apps/api/src/core/context/request-context.ts rename to apps/api/src/app/core/context/request-context.ts diff --git a/apps/api/src/core/core.module.ts b/apps/api/src/app/core/core.module.ts similarity index 83% rename from apps/api/src/core/core.module.ts rename to apps/api/src/app/core/core.module.ts index dcfaae2ff..725f612e8 100644 --- a/apps/api/src/core/core.module.ts +++ b/apps/api/src/app/core/core.module.ts @@ -10,6 +10,7 @@ import { ConnectionOptions } from 'typeorm'; import { Notification } from '../notifications/notification.entity'; import { User } from '../auth/user.entity'; import { environment as env } from '@env-api/environment'; +import { Subscription } from '../push/subscription.entity'; @Module({ imports: [ @@ -17,10 +18,11 @@ import { environment as env } from '@env-api/environment'; EmailModule.forRoot(env.email), TypeOrmModule.forRootAsync({ imports: [ConfigModule], - useFactory: async (config: ConfigService) => ({ - ...env.database, - entities: [Notification, User], - } as ConnectionOptions), + useFactory: async (config: ConfigService) => + ({ + ...env.database, + entities: [Notification, User, Subscription], + } as ConnectionOptions), inject: [ConfigService], }), ], diff --git a/apps/api/src/core/crud/crud.controller.ts b/apps/api/src/app/core/crud/crud.controller.ts similarity index 86% rename from apps/api/src/core/crud/crud.controller.ts rename to apps/api/src/app/core/crud/crud.controller.ts index 36eca7ebb..a3c1dc623 100644 --- a/apps/api/src/core/crud/crud.controller.ts +++ b/apps/api/src/app/core/crud/crud.controller.ts @@ -13,7 +13,7 @@ export abstract class CrudController { @ApiResponse({ status: HttpStatus.OK, description: 'All records', /* type: T, */ isArray: true }) @Get() async findAll(options?: any): Promise<[T[], number]> { - return this.crudService.getAll(); + return this.crudService.getAll(options); } @ApiOperation({ title: 'Find by id' }) @@ -31,7 +31,7 @@ export abstract class CrudController { description: 'Invalid input, The response body may contain clues as to what went wrong', }) @Post() - async create(@Body() entity: DeepPartial): Promise { + async create(@Body() entity: DeepPartial, options?: any): Promise { return this.crudService.create(entity); } @@ -43,15 +43,15 @@ export abstract class CrudController { description: 'Invalid input, The response body may contain clues as to what went wrong', }) @Put(':id') - async update(@Param('id') id: string, @Body() entity: DeepPartial): Promise { - return this.crudService.update(id, entity as any); // FIXME: https://github.com/typeorm/typeorm/issues/1544 + async update(@Param('id') id: string, @Body() entity: DeepPartial, options?: any): Promise { + return this.crudService.update(id, entity); // FIXME: https://github.com/typeorm/typeorm/issues/1544 } @ApiOperation({ title: 'Delete record' }) @ApiResponse({ status: HttpStatus.NO_CONTENT, description: 'The record has been successfully deleted' }) @ApiResponse({ status: HttpStatus.NOT_FOUND, description: 'Record not found' }) @Delete(':id') - async delete(@Param('id') id: string): Promise { + async delete(@Param('id') id: string, options?: any): Promise { return this.crudService.delete(id); } } diff --git a/apps/api/src/app/core/crud/crud.service.ts b/apps/api/src/app/core/crud/crud.service.ts new file mode 100644 index 000000000..3e4b7adfd --- /dev/null +++ b/apps/api/src/app/core/crud/crud.service.ts @@ -0,0 +1,61 @@ +import { BadRequestException, NotFoundException } from '@nestjs/common'; +import { + DeepPartial, + DeleteResult, + FindConditions, + FindManyOptions, + FindOneOptions, + Repository, + UpdateResult, +} from 'typeorm'; +import { Base } from '../entities/base.entity'; +import { ICrudService } from './icube.service'; + +export abstract class CrudService implements ICrudService { + protected constructor(protected readonly repository: Repository) {} + + public async getAll(options?: FindManyOptions): Promise<[T[], number]> { + const records = await this.repository.findAndCount(options); + if (records[1] === 0) { + throw new NotFoundException(`The requested records were not found`); + } + return records; + } + + public async getOne( + id: string | number | FindOneOptions | FindConditions, + options?: FindOneOptions, + ): Promise { + const record = await this.repository.findOne(id as any, options); + if (!record) { + throw new NotFoundException(`The requested record was not found`); + } + return record; + } + + public async create(entity: DeepPartial): Promise { + const obj = this.repository.create(entity); + try { + // https://github.com/Microsoft/TypeScript/issues/21592 + return await this.repository.save(obj as any); + } catch (err /*: WriteError*/) { + throw new BadRequestException(err); + } + } + + public async update(id: string | number | FindConditions, entity: DeepPartial): Promise { + try { + return await this.repository.update(id, entity); + } catch (err /*: WriteError*/) { + throw new BadRequestException(err); + } + } + + public async delete(criteria: string | number | FindConditions): Promise { + try { + return this.repository.delete(criteria); + } catch (err) { + throw new NotFoundException(`The record was not found`, err); + } + } +} diff --git a/apps/api/src/core/crud/icube.service.ts b/apps/api/src/app/core/crud/icube.service.ts similarity index 54% rename from apps/api/src/core/crud/icube.service.ts rename to apps/api/src/app/core/crud/icube.service.ts index e8b4f24f6..5f5b06121 100644 --- a/apps/api/src/core/crud/icube.service.ts +++ b/apps/api/src/app/core/crud/icube.service.ts @@ -1,8 +1,8 @@ -import { DeepPartial, FindManyOptions, FindOneOptions } from 'typeorm'; +import { DeepPartial, FindConditions, FindManyOptions, FindOneOptions } from 'typeorm'; export interface ICrudService { getAll(filter?: FindManyOptions): Promise<[T[], number]>; - getOne(id: any | FindOneOptions): Promise; + getOne(id: string | number | FindOneOptions | FindConditions, options?: FindOneOptions): Promise; create(entity: DeepPartial): Promise; update(id: any, entity: DeepPartial): Promise; delete(id: any): Promise; diff --git a/apps/api/src/core/entities/audit-base.entity.ts b/apps/api/src/app/core/entities/audit-base.entity.ts similarity index 68% rename from apps/api/src/core/entities/audit-base.entity.ts rename to apps/api/src/app/core/entities/audit-base.entity.ts index bf83f2a35..5b92f9d53 100644 --- a/apps/api/src/core/entities/audit-base.entity.ts +++ b/apps/api/src/app/core/entities/audit-base.entity.ts @@ -1,6 +1,5 @@ -import { UpdateDateColumn, CreateDateColumn, ManyToOne, VersionColumn, PrimaryGeneratedColumn } from 'typeorm'; -import { Exclude, Transform } from 'class-transformer'; -import toHexString from './toHexString'; +import { CreateDateColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn, VersionColumn } from 'typeorm'; +import { Exclude } from 'class-transformer'; import { ApiModelProperty } from '@nestjs/swagger'; // FIXME: we need to import User like this to avoid Circular denpendence problem import { User } from '../../auth/user.entity'; @@ -12,10 +11,12 @@ export abstract class AuditBase { @PrimaryGeneratedColumn() id: number; + @ApiModelProperty({ type: 'string', format: 'date-time', example: '2018-11-21T06:20:32.232Z' }) // @Exclude() @CreateDateColumn() createdAt?: Date; + @ApiModelProperty({ type: 'string', format: 'date-time', example: '2018-11-21T06:20:32.232Z' }) // @Exclude() @UpdateDateColumn() updatedAt?: Date; diff --git a/apps/api/src/core/entities/base.entity.ts b/apps/api/src/app/core/entities/base.entity.ts similarity index 100% rename from apps/api/src/core/entities/base.entity.ts rename to apps/api/src/app/core/entities/base.entity.ts diff --git a/apps/api/src/core/entities/toHexString.ts b/apps/api/src/app/core/entities/toHexString.ts similarity index 100% rename from apps/api/src/core/entities/toHexString.ts rename to apps/api/src/app/core/entities/toHexString.ts diff --git a/apps/api/src/core/filters/entity-not-found.filter.ts b/apps/api/src/app/core/filters/entity-not-found.filter.ts similarity index 100% rename from apps/api/src/core/filters/entity-not-found.filter.ts rename to apps/api/src/app/core/filters/entity-not-found.filter.ts diff --git a/apps/api/src/core/guards/.gitkeep b/apps/api/src/app/core/guards/.gitkeep similarity index 100% rename from apps/api/src/core/guards/.gitkeep rename to apps/api/src/app/core/guards/.gitkeep diff --git a/apps/api/src/core/index.ts b/apps/api/src/app/core/index.ts similarity index 100% rename from apps/api/src/core/index.ts rename to apps/api/src/app/core/index.ts diff --git a/apps/api/src/core/interceptors/exception.interceptor.ts b/apps/api/src/app/core/interceptors/exception.interceptor.ts similarity index 100% rename from apps/api/src/core/interceptors/exception.interceptor.ts rename to apps/api/src/app/core/interceptors/exception.interceptor.ts diff --git a/apps/api/src/core/interceptors/index.ts b/apps/api/src/app/core/interceptors/index.ts similarity index 100% rename from apps/api/src/core/interceptors/index.ts rename to apps/api/src/app/core/interceptors/index.ts diff --git a/apps/api/src/core/interceptors/logging.interceptor.ts b/apps/api/src/app/core/interceptors/logging.interceptor.ts similarity index 100% rename from apps/api/src/core/interceptors/logging.interceptor.ts rename to apps/api/src/app/core/interceptors/logging.interceptor.ts diff --git a/apps/api/src/core/interceptors/timeout.interceptor.ts b/apps/api/src/app/core/interceptors/timeout.interceptor.ts similarity index 100% rename from apps/api/src/core/interceptors/timeout.interceptor.ts rename to apps/api/src/app/core/interceptors/timeout.interceptor.ts diff --git a/apps/api/src/core/interceptors/transform.interceptor.ts b/apps/api/src/app/core/interceptors/transform.interceptor.ts similarity index 100% rename from apps/api/src/core/interceptors/transform.interceptor.ts rename to apps/api/src/app/core/interceptors/transform.interceptor.ts diff --git a/apps/api/src/core/interceptors/wrap.interceptor.ts b/apps/api/src/app/core/interceptors/wrap.interceptor.ts similarity index 100% rename from apps/api/src/core/interceptors/wrap.interceptor.ts rename to apps/api/src/app/core/interceptors/wrap.interceptor.ts diff --git a/apps/api/src/core/pipes/.gitkeep b/apps/api/src/app/core/pipes/.gitkeep similarity index 100% rename from apps/api/src/core/pipes/.gitkeep rename to apps/api/src/app/core/pipes/.gitkeep diff --git a/apps/api/src/core/repositories/base.repository.ts b/apps/api/src/app/core/repositories/base.repository.ts similarity index 100% rename from apps/api/src/core/repositories/base.repository.ts rename to apps/api/src/app/core/repositories/base.repository.ts diff --git a/apps/api/src/core/services/base-remote.service.ts b/apps/api/src/app/core/services/base-remote.service.ts similarity index 100% rename from apps/api/src/core/services/base-remote.service.ts rename to apps/api/src/app/core/services/base-remote.service.ts diff --git a/apps/api/src/email/README.md b/apps/api/src/app/email/README.md similarity index 67% rename from apps/api/src/email/README.md rename to apps/api/src/app/email/README.md index 17bf67345..cb280cd10 100644 --- a/apps/api/src/email/README.md +++ b/apps/api/src/app/email/README.md @@ -1,8 +1,8 @@ -Email Module -============ +# Email Module Email Module is a **Global Module** to share EmailService across application. -each client module can inject this module and define local email template for sending emails for specific purpose. +each client module can inject this module and define local email template for sending emails for specific purpose. ### How to use? + TODO diff --git a/apps/api/src/email/email-core.module.ts b/apps/api/src/app/email/email-core.module.ts similarity index 100% rename from apps/api/src/email/email-core.module.ts rename to apps/api/src/app/email/email-core.module.ts diff --git a/apps/api/src/email/email.module.ts b/apps/api/src/app/email/email.module.ts similarity index 100% rename from apps/api/src/email/email.module.ts rename to apps/api/src/app/email/email.module.ts diff --git a/apps/api/src/email/email.service.spec.ts b/apps/api/src/app/email/email.service.spec.ts similarity index 100% rename from apps/api/src/email/email.service.spec.ts rename to apps/api/src/app/email/email.service.spec.ts diff --git a/apps/api/src/email/email.service.ts b/apps/api/src/app/email/email.service.ts similarity index 100% rename from apps/api/src/email/email.service.ts rename to apps/api/src/app/email/email.service.ts diff --git a/apps/api/src/email/index.ts b/apps/api/src/app/email/index.ts similarity index 100% rename from apps/api/src/email/index.ts rename to apps/api/src/app/email/index.ts diff --git a/apps/api/src/email/interfaces/email-options.interface.ts b/apps/api/src/app/email/interfaces/email-options.interface.ts similarity index 100% rename from apps/api/src/email/interfaces/email-options.interface.ts rename to apps/api/src/app/email/interfaces/email-options.interface.ts diff --git a/apps/api/src/notifications/dto/create-notification.dto.ts b/apps/api/src/app/notifications/dto/create-notification.dto.ts similarity index 78% rename from apps/api/src/notifications/dto/create-notification.dto.ts rename to apps/api/src/app/notifications/dto/create-notification.dto.ts index 3e8ffca3b..22d0d6b3d 100644 --- a/apps/api/src/notifications/dto/create-notification.dto.ts +++ b/apps/api/src/app/notifications/dto/create-notification.dto.ts @@ -3,7 +3,7 @@ import { IsAscii, IsBoolean, IsEnum, IsIn, IsNotEmpty, IsString, MaxLength, MinL import { NotificationColor, NotificationIcon } from '../notification.entity'; export class CreateNotificationDto { - @ApiModelProperty({ type: String, enum: NotificationIcon, default: 'notifications' }) + @ApiModelProperty({ type: String, enum: NotificationIcon, default: NotificationIcon.notifications }) @IsString() @IsNotEmpty() @IsEnum(NotificationIcon) @@ -19,7 +19,7 @@ export class CreateNotificationDto { @IsNotEmpty() read: boolean = false; - @ApiModelProperty({ type: String, enum: NotificationColor }) + @ApiModelProperty({ type: String, enum: NotificationColor, default: NotificationColor.PRIMARY }) @IsString() @IsNotEmpty() @IsIn(['warn', 'accent', 'primary']) @@ -31,4 +31,9 @@ export class CreateNotificationDto { @MinLength(3) @MaxLength(20) userId: string; + + @ApiModelProperty({ type: Boolean, default: false }) + @IsBoolean() + @IsNotEmpty() + public native = false; } diff --git a/apps/api/src/notifications/index.ts b/apps/api/src/app/notifications/index.ts similarity index 100% rename from apps/api/src/notifications/index.ts rename to apps/api/src/app/notifications/index.ts diff --git a/apps/api/src/notifications/interfaces/notification.actions.ts b/apps/api/src/app/notifications/interfaces/notification.actions.ts similarity index 100% rename from apps/api/src/notifications/interfaces/notification.actions.ts rename to apps/api/src/app/notifications/interfaces/notification.actions.ts diff --git a/apps/api/src/notifications/notification.entity.ts b/apps/api/src/app/notifications/notification.entity.ts similarity index 68% rename from apps/api/src/notifications/notification.entity.ts rename to apps/api/src/app/notifications/notification.entity.ts index 883f09790..577dc794f 100644 --- a/apps/api/src/notifications/notification.entity.ts +++ b/apps/api/src/app/notifications/notification.entity.ts @@ -20,7 +20,7 @@ export enum NotificationIcon { @Entity('notification') export class Notification extends Base { - @ApiModelProperty({ type: String }) + @ApiModelProperty({ type: String, enum: NotificationIcon, default: NotificationIcon.notifications }) @IsString() @IsNotEmpty() @Column() @@ -32,21 +32,21 @@ export class Notification extends Base { @Column() message: string; - @ApiModelProperty({ type: Date }) + @ApiModelProperty({ type: 'string', format: 'date-time', example: '2018-11-21T06:20:32.232Z' }) @CreateDateColumn() createdAt?: Date; - @ApiModelProperty({ type: String }) + @ApiModelProperty({ type: Boolean, default: false }) @IsBoolean() @IsNotEmpty() @Index() @Column() read: boolean; - @ApiModelProperty({ type: String }) + @ApiModelProperty({ type: String, enum: NotificationColor, default: NotificationColor.PRIMARY }) @IsString() @IsNotEmpty() - @Column() + @Column({ enum: ['warn', 'accent', 'primary'] }) color?: NotificationColor; @ApiModelProperty({ type: String, minLength: 8, maxLength: 20 }) @@ -57,4 +57,11 @@ export class Notification extends Base { @Index() @Column() userId: string; + + @ApiModelProperty({ type: Boolean, default: false }) + @IsBoolean() + @IsNotEmpty() + @Index() + @Column({ default: false }) + native: boolean; } diff --git a/apps/api/src/notifications/notifications.controller.spec.ts b/apps/api/src/app/notifications/notifications.controller.spec.ts similarity index 100% rename from apps/api/src/notifications/notifications.controller.spec.ts rename to apps/api/src/app/notifications/notifications.controller.spec.ts diff --git a/apps/api/src/notifications/notifications.controller.ts b/apps/api/src/app/notifications/notifications.controller.ts similarity index 100% rename from apps/api/src/notifications/notifications.controller.ts rename to apps/api/src/app/notifications/notifications.controller.ts diff --git a/apps/api/src/notifications/notifications.module.ts b/apps/api/src/app/notifications/notifications.module.ts similarity index 100% rename from apps/api/src/notifications/notifications.module.ts rename to apps/api/src/app/notifications/notifications.module.ts diff --git a/apps/api/src/notifications/notifications.service.spec.ts b/apps/api/src/app/notifications/notifications.service.spec.ts similarity index 100% rename from apps/api/src/notifications/notifications.service.spec.ts rename to apps/api/src/app/notifications/notifications.service.spec.ts diff --git a/apps/api/src/notifications/notifications.service.ts b/apps/api/src/app/notifications/notifications.service.ts similarity index 100% rename from apps/api/src/notifications/notifications.service.ts rename to apps/api/src/app/notifications/notifications.service.ts diff --git a/apps/api/src/app/push/dto/create-subscription.dto.ts b/apps/api/src/app/push/dto/create-subscription.dto.ts new file mode 100644 index 000000000..4115eff1b --- /dev/null +++ b/apps/api/src/app/push/dto/create-subscription.dto.ts @@ -0,0 +1,23 @@ +import { ApiModelProperty } from '@nestjs/swagger'; +import { IsNotEmpty, IsString, IsUrl } from 'class-validator'; + +export class CreateSubscriptionDto { + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsUrl({}, { message: 'endpoint must be a valid url.' }) + endpoint: string; + + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + auth: string; + + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + p256dh: string; + + @ApiModelProperty({ type: String, isArray: true }) + @IsNotEmpty() + topics: string[]; +} diff --git a/apps/api/src/app/push/dto/send-notification.dto.ts b/apps/api/src/app/push/dto/send-notification.dto.ts new file mode 100644 index 000000000..e43dbc215 --- /dev/null +++ b/apps/api/src/app/push/dto/send-notification.dto.ts @@ -0,0 +1,19 @@ +import { ApiModelProperty } from '@nestjs/swagger'; +import { IsNotEmpty, IsString } from 'class-validator'; + +export class SendNotificationDto { + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + id: string; + + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + title: string; + + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + body: string; +} diff --git a/apps/api/src/app/push/dto/send-topic-notification.dto.ts b/apps/api/src/app/push/dto/send-topic-notification.dto.ts new file mode 100644 index 000000000..8d20e89bf --- /dev/null +++ b/apps/api/src/app/push/dto/send-topic-notification.dto.ts @@ -0,0 +1,19 @@ +import { ApiModelProperty } from '@nestjs/swagger'; +import { IsNotEmpty, IsString } from 'class-validator'; + +export class SendTopicNotificationDto { + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + topic: string; + + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + title: string; + + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + body: string; +} diff --git a/apps/api/src/app/push/dto/update-subscription.dto.ts b/apps/api/src/app/push/dto/update-subscription.dto.ts new file mode 100644 index 000000000..908b8b259 --- /dev/null +++ b/apps/api/src/app/push/dto/update-subscription.dto.ts @@ -0,0 +1,8 @@ +import { ApiModelProperty } from '@nestjs/swagger'; +import { IsNotEmpty } from 'class-validator'; + +export class UpdateSubscriptionDto { + @ApiModelProperty({ type: String, isArray: true }) + @IsNotEmpty() + topics: string[]; +} diff --git a/apps/api/src/app/push/index.ts b/apps/api/src/app/push/index.ts new file mode 100644 index 000000000..b69327291 --- /dev/null +++ b/apps/api/src/app/push/index.ts @@ -0,0 +1 @@ +export * from './push.module'; diff --git a/apps/api/src/app/push/push.controller.spec.ts b/apps/api/src/app/push/push.controller.spec.ts new file mode 100644 index 000000000..0120956f6 --- /dev/null +++ b/apps/api/src/app/push/push.controller.spec.ts @@ -0,0 +1,23 @@ +import { Test, TestingModule } from '@nestjs/testing'; +import { PushController } from './push.controller'; +import { PushService } from './push.service'; + +describe('Push Controller', () => { + let module: TestingModule; + + beforeAll(async () => { + module = await Test.createTestingModule({ + controllers: [PushController], + providers: [ + { + provide: PushService, + useValue: {}, // TODO: Mock + }, + ], + }).compile(); + }); + it('should be defined', () => { + const controller: PushController = module.get(PushController); + expect(controller).toBeDefined(); + }); +}); diff --git a/apps/api/src/app/push/push.controller.ts b/apps/api/src/app/push/push.controller.ts new file mode 100644 index 000000000..07995c341 --- /dev/null +++ b/apps/api/src/app/push/push.controller.ts @@ -0,0 +1,115 @@ +import { Body, Controller, Delete, HttpStatus, Param, Post, Put } from '@nestjs/common'; +import { ApiOAuth2Auth, ApiOperation, ApiResponse, ApiUseTags } from '@nestjs/swagger'; +import { CrudController } from '../core'; +import { CurrentUser, User } from '../auth'; +import { Subscription } from './subscription.entity'; +import { PushService } from './push.service'; +import { CreateSubscriptionDto } from './dto/create-subscription.dto'; +import { UpdateSubscriptionDto } from './dto/update-subscription.dto'; +import { SendNotificationDto } from './dto/send-notification.dto'; +import { SendTopicNotificationDto } from './dto/send-topic-notification.dto'; + +@ApiOAuth2Auth(['read']) +@ApiUseTags('Sumo', 'Push') +@Controller() +export class PushController extends CrudController { + constructor(private readonly pushService: PushService) { + super(pushService); + } + + @ApiOperation({ title: 'Create new record' }) + @ApiResponse({ + status: HttpStatus.CREATED, + description: 'The record has been successfully created.', + type: Subscription, + }) + @ApiResponse({ + status: HttpStatus.BAD_REQUEST, + description: 'Invalid input, The response body may contain clues as to what went wrong', + }) + @Post() + async create(@Body() entity: CreateSubscriptionDto, @CurrentUser() user: User): Promise { + const records = await this.pushService.findAndCount({ endpoint: entity.endpoint }); + if (records[1] === 0) { + return super.create({ ...entity, userId: user.userId }); + } else { + return records[0][0]; + } + } + + @ApiOperation({ title: 'Update an existing record' }) + @ApiResponse({ status: HttpStatus.CREATED, description: 'The record has been successfully edited.' }) + @ApiResponse({ status: HttpStatus.NOT_FOUND, description: 'Record not found' }) + @ApiResponse({ + status: HttpStatus.BAD_REQUEST, + description: 'Invalid input, The response body may contain clues as to what went wrong', + }) + @Put(':id') + async update( + @Param('id') id: string, + @Body() entity: UpdateSubscriptionDto, + @CurrentUser() user: User, + ): Promise { + if (id.startsWith('http')) { + return this.pushService.update({ endpoint: id }, entity); + } else { + return this.pushService.update(id, entity); + } + } + + @ApiOperation({ title: 'Delete record' }) + @ApiResponse({ status: HttpStatus.NO_CONTENT, description: 'The record has been successfully deleted' }) + @ApiResponse({ status: HttpStatus.NOT_FOUND, description: 'Record not found' }) + @Delete(':id') + async delete(@Param('id') id: string, @CurrentUser() user: User): Promise { + if (id.startsWith('http')) { + return this.pushService.delete({ endpoint: id }); + } else { + return this.pushService.delete(id); + } + } + + @ApiOperation({ title: 'Send Push Notification' }) + @ApiResponse({ + status: HttpStatus.CREATED, + description: 'Push Notification has been successfully sent.', + }) + @ApiResponse({ + status: HttpStatus.BAD_REQUEST, + description: 'Invalid input, The response body may contain clues as to what went wrong', + }) + @Post('notify') + notify(@Body() notif: SendNotificationDto) { + const notification = { + title: notif.title, + body: notif.body, + icon: 'assets/icons/icon-72x72.png', + data: { + click_url: '/dashboard', + }, + }; + return this.pushService.notify(notif.id, notification as any); + } + + @ApiOperation({ title: 'Send Push Notifications to all subscribers to a topic' }) + @ApiResponse({ + status: HttpStatus.CREATED, + description: 'Push Notifications has been successfully sent.', + }) + @ApiResponse({ + status: HttpStatus.BAD_REQUEST, + description: 'Invalid input, The response body may contain clues as to what went wrong', + }) + @Post('notifyAll') + notifyAll(@Body() notif: SendTopicNotificationDto) { + const notification = { + title: notif.title, + body: notif.body, + icon: 'assets/icons/icon-72x72.png', + data: { + click_url: '/dashboard', + }, + }; + return this.pushService.notifyAll(notif.topic, notification as any); + } +} diff --git a/apps/api/src/app/push/push.module.ts b/apps/api/src/app/push/push.module.ts new file mode 100644 index 000000000..a7197e735 --- /dev/null +++ b/apps/api/src/app/push/push.module.ts @@ -0,0 +1,12 @@ +import { Module } from '@nestjs/common'; +import { TypeOrmModule } from '@nestjs/typeorm'; +import { PushController } from './push.controller'; +import { PushService } from './push.service'; +import { Subscription } from './subscription.entity'; + +@Module({ + imports: [TypeOrmModule.forFeature([Subscription])], + providers: [PushService], + controllers: [PushController], +}) +export class PushModule {} diff --git a/apps/api/src/app/push/push.service.spec.ts b/apps/api/src/app/push/push.service.spec.ts new file mode 100644 index 000000000..b1e98592a --- /dev/null +++ b/apps/api/src/app/push/push.service.spec.ts @@ -0,0 +1,21 @@ +import { Test, TestingModule } from '@nestjs/testing'; +import { PushService } from './push.service'; + +describe('PushService', () => { + let service: PushService; + + beforeAll(async () => { + const module: TestingModule = await Test.createTestingModule({ + providers: [ + { + provide: PushService, + useValue: {}, // TODO: Mock + }, + ], + }).compile(); + service = module.get(PushService); + }); + it('should be defined', () => { + expect(service).toBeDefined(); + }); +}); diff --git a/apps/api/src/app/push/push.service.ts b/apps/api/src/app/push/push.service.ts new file mode 100644 index 000000000..2750df525 --- /dev/null +++ b/apps/api/src/app/push/push.service.ts @@ -0,0 +1,61 @@ +import { BadRequestException, Injectable, Logger } from '@nestjs/common'; +import { InjectRepository } from '@nestjs/typeorm'; +import { PushSubscription, sendNotification, setVapidDetails, WebPushError } from 'web-push'; +import { CrudService } from '../core'; +import { Any, FindConditions, Repository } from 'typeorm'; +import { Subscription } from './subscription.entity'; +import { environment as env } from '@env-api/environment'; + +@Injectable() +export class PushService extends CrudService { + private readonly logger = new Logger(PushService.name); + + constructor(@InjectRepository(Subscription) private readonly subscriptionRepository: Repository) { + super(subscriptionRepository); + setVapidDetails(env.webPush.subject, env.webPush.publicKey, env.webPush.privateKey); + } + async findAndCount(conditions?: FindConditions): Promise<[Subscription[], number]> { + return this.subscriptionRepository.findAndCount(conditions); + } + + async getOne(id: string | number | FindConditions): Promise { + if (typeof id === 'string' && id.startsWith('http')) { + return super.getOne({ endpoint: id }); + } else { + return super.getOne(id); + } + } + + async notify(id: string | number, notification: Notification) { + const { endpoint, p256dh, auth } = await this.getOne(id); + return this._sendNotification({ endpoint, keys: { p256dh, auth } }, notification); + } + + async notifyAll(topic: string, notification: Notification) { + // FIXME: https://github.com/typeorm/typeorm/issues/3150 + const subscriptions = await this.findAndCount({ topics: Any([topic]) } ); + // console.log(subscriptions); + if (subscriptions[1] > 0) { + subscriptions[0].forEach( sub => { + const { endpoint, p256dh, auth } = sub; + this._sendNotification({ endpoint, keys: { p256dh, auth } }, notification); + }); + } + } + + private async _sendNotification(subscription: PushSubscription, notification: Notification) { + try { + await sendNotification(subscription, JSON.stringify({ notification })); + } catch (err /*err is WebPushError*/) { + const error = err as WebPushError; + if (error.statusCode === 410) { + // delete orphaned subscriptions + this.logger.log('deleted orphaned subscription', error.message); + await super.delete({ endpoint: subscription.endpoint }); + } else { + this.logger.log('send push notification failed', error.message); + } + throw new BadRequestException(err); + } + } +} diff --git a/apps/api/src/app/push/subscription.entity.ts b/apps/api/src/app/push/subscription.entity.ts new file mode 100644 index 000000000..c1070d6d7 --- /dev/null +++ b/apps/api/src/app/push/subscription.entity.ts @@ -0,0 +1,52 @@ +import { Column, CreateDateColumn, Entity, Index, UpdateDateColumn, VersionColumn } from 'typeorm'; +import { ApiModelProperty } from '@nestjs/swagger'; +import { IsAscii, IsNotEmpty, IsString, IsUrl, MaxLength, MinLength } from 'class-validator'; +import { Exclude } from 'class-transformer'; +import { Base } from '../core/entities/base.entity'; + +@Entity('subscription') +export class Subscription extends Base { + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsUrl({}, { message: 'endpoint must be a valid url.' }) + @Index({ unique: true }) + @Column() + endpoint: string; + + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + @Column({}) + auth: string; + + @ApiModelProperty({ type: String }) + @IsNotEmpty() + @IsString() + @Column({}) + p256dh: string; + + @ApiModelProperty({ type: String, minLength: 8, maxLength: 20 }) + @IsAscii() + @IsNotEmpty() + @MinLength(8) + @MaxLength(20) + @Index() + @Column() + userId: string; + + @ApiModelProperty({ type: String, isArray: true }) + @Column('text', { array: true }) + topics: string[]; + + @ApiModelProperty({ type: 'string', format: 'date-time', example: '2018-11-21T06:20:32.232Z' }) + @CreateDateColumn() + createdAt?: Date; + + @ApiModelProperty({ type: 'string', format: 'date-time', example: '2018-11-21T06:20:32.232Z' }) + @UpdateDateColumn() + updatedAt?: Date; + + @Exclude() + @VersionColumn() + version?: number; +} diff --git a/apps/api/src/shared/eventbus.gateway.ts b/apps/api/src/app/shared/eventbus.gateway.ts similarity index 90% rename from apps/api/src/shared/eventbus.gateway.ts rename to apps/api/src/app/shared/eventbus.gateway.ts index b4c0d2d42..e38fd1440 100644 --- a/apps/api/src/shared/eventbus.gateway.ts +++ b/apps/api/src/app/shared/eventbus.gateway.ts @@ -13,7 +13,6 @@ import { Logger, UseGuards } from '@nestjs/common'; import { delay } from 'rxjs/operators'; import { ISocket } from './interfaces/socket.interface'; import { Server } from 'socket.io'; -import { getActionTypeFromInstance, actionMatcher } from '@ngxs/store'; import { AuthService, User, WsAuthGuard } from '../auth'; @WebSocketGateway({ namespace: 'eventbus' }) @@ -68,13 +67,13 @@ export class EventBusGateway extends EventEmitter implements OnGatewayInit, OnGa public sendActionToUser(user: User, action: any): void { const clients = this.getSocketsForUser(user); - const type = getActionTypeFromInstance(action); + const type = this.getActionTypeFromInstance(action); // FIXME: remove any. only needed for docker build clients.forEach(socket => (socket as any).emit(EventBusGateway.ACTIONS, { ...action, type })); } public sendActionToAll(action: any): void { - const type = getActionTypeFromInstance(action); + const type = this.getActionTypeFromInstance(action); // FIXME: remove any. only needed for docker build this.clients.forEach(socket => (socket as any).emit(EventBusGateway.ACTIONS, { ...action, type })); } @@ -82,6 +81,13 @@ export class EventBusGateway extends EventEmitter implements OnGatewayInit, OnGa private getSocketsForUser(user: User): ISocket[] { return this.clients.filter(c => c.user && c.user.userId === user.userId); } + + private getActionTypeFromInstance(action: any): string { + if (action.constructor && action.constructor.type) { + return action.constructor.type; + } + return action.type; + } } // https://github.com/evebook/api/blob/master/src/modules/websocket/websocket.gateway.ts diff --git a/apps/api/src/shared/index.ts b/apps/api/src/app/shared/index.ts similarity index 100% rename from apps/api/src/shared/index.ts rename to apps/api/src/app/shared/index.ts diff --git a/apps/api/src/shared/interfaces/socket.interface.ts b/apps/api/src/app/shared/interfaces/socket.interface.ts similarity index 100% rename from apps/api/src/shared/interfaces/socket.interface.ts rename to apps/api/src/app/shared/interfaces/socket.interface.ts diff --git a/apps/api/src/shared/shared.module.ts b/apps/api/src/app/shared/shared.module.ts similarity index 100% rename from apps/api/src/shared/shared.module.ts rename to apps/api/src/app/shared/shared.module.ts diff --git a/apps/api/src/user/email/dto/email.dto.ts b/apps/api/src/app/user/email/dto/email.dto.ts similarity index 100% rename from apps/api/src/user/email/dto/email.dto.ts rename to apps/api/src/app/user/email/dto/email.dto.ts diff --git a/apps/api/src/user/email/email.controller.spec.ts b/apps/api/src/app/user/email/email.controller.spec.ts similarity index 100% rename from apps/api/src/user/email/email.controller.spec.ts rename to apps/api/src/app/user/email/email.controller.spec.ts diff --git a/apps/api/src/user/email/email.controller.ts b/apps/api/src/app/user/email/email.controller.ts similarity index 100% rename from apps/api/src/user/email/email.controller.ts rename to apps/api/src/app/user/email/email.controller.ts diff --git a/apps/api/src/user/index.ts b/apps/api/src/app/user/index.ts similarity index 100% rename from apps/api/src/user/index.ts rename to apps/api/src/app/user/index.ts diff --git a/apps/api/src/user/interfaces/.gitkeep b/apps/api/src/app/user/interfaces/.gitkeep similarity index 100% rename from apps/api/src/user/interfaces/.gitkeep rename to apps/api/src/app/user/interfaces/.gitkeep diff --git a/apps/api/src/user/profile/Image.entity.ts b/apps/api/src/app/user/profile/Image.entity.ts similarity index 100% rename from apps/api/src/user/profile/Image.entity.ts rename to apps/api/src/app/user/profile/Image.entity.ts diff --git a/apps/api/src/user/profile/dto/.gitkeep b/apps/api/src/app/user/profile/dto/.gitkeep similarity index 100% rename from apps/api/src/user/profile/dto/.gitkeep rename to apps/api/src/app/user/profile/dto/.gitkeep diff --git a/apps/api/src/user/profile/profile.controller.spec.ts b/apps/api/src/app/user/profile/profile.controller.spec.ts similarity index 100% rename from apps/api/src/user/profile/profile.controller.spec.ts rename to apps/api/src/app/user/profile/profile.controller.spec.ts diff --git a/apps/api/src/user/profile/profile.controller.ts b/apps/api/src/app/user/profile/profile.controller.ts similarity index 100% rename from apps/api/src/user/profile/profile.controller.ts rename to apps/api/src/app/user/profile/profile.controller.ts diff --git a/apps/api/src/user/profile/profile.entity.ts b/apps/api/src/app/user/profile/profile.entity.ts similarity index 100% rename from apps/api/src/user/profile/profile.entity.ts rename to apps/api/src/app/user/profile/profile.entity.ts diff --git a/apps/api/src/user/profile/profile.service.spec.ts b/apps/api/src/app/user/profile/profile.service.spec.ts similarity index 100% rename from apps/api/src/user/profile/profile.service.spec.ts rename to apps/api/src/app/user/profile/profile.service.spec.ts diff --git a/apps/api/src/user/profile/profile.service.ts b/apps/api/src/app/user/profile/profile.service.ts similarity index 100% rename from apps/api/src/user/profile/profile.service.ts rename to apps/api/src/app/user/profile/profile.service.ts diff --git a/apps/api/src/user/user.module.ts b/apps/api/src/app/user/user.module.ts similarity index 100% rename from apps/api/src/user/user.module.ts rename to apps/api/src/app/user/user.module.ts diff --git a/apps/api/src/core/crud/crud.service.ts b/apps/api/src/core/crud/crud.service.ts deleted file mode 100644 index 2768ca145..000000000 --- a/apps/api/src/core/crud/crud.service.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { BadRequestException, NotFoundException } from '@nestjs/common'; -import { DeepPartial, FindManyOptions, FindOneOptions, Repository, UpdateResult, DeleteResult } from 'typeorm'; -import { Base } from '../entities/base.entity'; -import { ICrudService } from './icube.service'; - -export abstract class CrudService implements ICrudService { - protected constructor(protected readonly repository: Repository) {} - - public async getAll(filter?: FindManyOptions): Promise<[T[], number]> { - const records = await this.repository.findAndCount(filter); - if (records[1] === 0) { - throw new NotFoundException(`The requested records were not found`); - } - return records; - } - - public async getOne(filter: string): Promise { - const record = await this.repository.findOne(filter); - if (!record) { - throw new NotFoundException(`The requested record was not found`); - } - return record; - } - - public async create(entity: DeepPartial): Promise { - // FIXME: https://github.com/typeorm/typeorm/issues/1544 - const obj = this.repository.create(entity as any); - try { - return await this.repository.save(obj as any); - } catch (err /*: WriteError*/) { - throw new BadRequestException(err); - } - } - - // public async update(id: string, entity: DeepPartial): Promise { - // try { - // return await this.repository.findOneAndUpdate({ id }, {$set: classToPlain(entity)}); - // } catch (err) { - // console.log(err); - // throw new BadRequestException(err.message); - // } - // } - // - // public async replace(id: string, entity: DeepPartial): Promise { - // const obj = this.repository.create(entity); - // try { - // return await this.repository.findOneAndReplace({ id }, obj); - // } catch (err) { - // console.log(err); - // throw new BadRequestException(err.message); - // } - // } - // - // public async delete(id: string): Promise { - // try { - // return await this.repository.findOneAndDelete({ id }); - // } catch (err) { - // console.log(err); - // throw new NotFoundException(`The record was not found`); - // } - // } - - public async update(id: string, entity: DeepPartial): Promise { - try { - return await this.repository.update(id, entity); - } catch (err /*: WriteError*/) { - throw new BadRequestException(err); - } - } - - public async delete(id: string): Promise { - const obj = await this.repository.findOne(id); - if (obj) { - // FIXME: https://github.com/typeorm/typeorm/issues/1544 - return this.repository.delete(obj as any); - } else { - throw new NotFoundException(`The record was not found`); - } - } -} diff --git a/apps/api/src/environments/environment.prod.ts b/apps/api/src/environments/environment.prod.ts index e1ad9d80c..b0224fa57 100644 --- a/apps/api/src/environments/environment.prod.ts +++ b/apps/api/src/environments/environment.prod.ts @@ -1,13 +1,12 @@ export const environment = { production: true, - NODE_ENV: 'production', NODE_TLS_REJECT_UNAUTHORIZED: 0, server: { - host: 'localhost', - domainUrl: 'http://localhost:3000', - port: 3000, + host: process.env.HOST || '0.0.0.0', + domainUrl: process.env.DOMAIN_URL || 'http://localhost:3000', + port: process.env.PORT || 3000, globalPrefix: '/api', }, @@ -17,14 +16,15 @@ export const environment = { port: process.env.TYPEORM_PORT ? Number(process.env.TYPEORM_PORT) : 5432, database: process.env.TYPEORM_DATABASE || 'cockpit', username: process.env.TYPEORM_USERNAME || 'cockpit', - password: process.env.TYPEORM_PASSWORD || 'cockpit123', + password: process.env.TYPEORM_PASSWORD || 'cockpit123', keepConnectionAlive: true, logging: process.env.TYPEORM_LOGGING ? JSON.parse(process.env.TYPEORM_LOGGING) : false, synchronize: false, }, auth: { - issuer: process.env.OIDC_ISSUER_URL || 'https://myroute-is360.a3c1.starter-us-west-1.openshiftapps.com/auth/realms/is360', + issuer: + process.env.OIDC_ISSUER_URL || 'https://myroute-is360.a3c1.starter-us-west-1.openshiftapps.com/auth/realms/is360', clientId: process.env.OIDC_CLIENT_ID || 'is360ui', }, @@ -41,11 +41,15 @@ export const environment = { defaults: { from: process.env.EMAIL_FROM ? process.env.EMAIL_FROM : '"sumo demo" ', }, - templateDir: process.env.EMAIL_TEMPLATE_DIR || `${__dirname}/assets/email-templates`, + templateDir: process.env.EMAIL_TEMPLATE_DIR || `${__dirname}/assets/email-templates`, }, + // Key generation: https://web-push-codelab.glitch.me webPush: { - publicVapidKey: 'BAJq-yHlSNjUqKW9iMY0hG96X9WdVwetUFDa5rQIGRPqOHKAL_fkKUe_gUTAKnn9IPAltqmlNO2OkJrjdQ_MXNg', - privateVapidKey: 'cwh2CYK5h_B_Gobnv8Ym9x61B3qFE2nTeb9BeiZbtMI', + subject: process.env.VAPID_SUBJECT || 'mailto: sumo@demo.com', + publicKey: + process.env.VAPID_PUBLIC_KEY || + 'BAJq-yHlSNjUqKW9iMY0hG96X9WdVwetUFDa5rQIGRPqOHKAL_fkKUe_gUTAKnn9IPAltqmlNO2OkJrjdQ_MXNg', + privateKey: process.env.VAPID_PRIVATE_KEY || 'cwh2CYK5h_B_Gobnv8Ym9x61B3qFE2nTeb9BeiZbtMI', }, }; diff --git a/apps/api/src/environments/environment.ts b/apps/api/src/environments/environment.ts index db20fc2ce..5c16d0e45 100644 --- a/apps/api/src/environments/environment.ts +++ b/apps/api/src/environments/environment.ts @@ -5,13 +5,12 @@ export const environment = { production: false, - NODE_ENV: 'development', NODE_TLS_REJECT_UNAUTHORIZED: 0, ALLOW_WHITE_LIST: ['::ffff:127.0.0.1', '::1'], LOG_LEVEL: 'debug', server: { - host: 'localhost', + host: '0.0.0.0', domainUrl: 'http://localhost:3000', port: 3000, globalPrefix: '/api', @@ -47,8 +46,10 @@ export const environment = { templateDir: 'apps/api/src/assets/email-templates', }, + // Key generation: https://web-push-codelab.glitch.me webPush: { - publicVapidKey: 'BAJq-yHlSNjUqKW9iMY0hG96X9WdVwetUFDa5rQIGRPqOHKAL_fkKUe_gUTAKnn9IPAltqmlNO2OkJrjdQ_MXNg', - privateVapidKey: 'cwh2CYK5h_B_Gobnv8Ym9x61B3qFE2nTeb9BeiZbtMI', + subject: 'mailto: sumo@demo.com', + publicKey: 'BAJq-yHlSNjUqKW9iMY0hG96X9WdVwetUFDa5rQIGRPqOHKAL_fkKUe_gUTAKnn9IPAltqmlNO2OkJrjdQ_MXNg', + privateKey: 'cwh2CYK5h_B_Gobnv8Ym9x61B3qFE2nTeb9BeiZbtMI', }, }; diff --git a/apps/api/src/main.hmr.ts b/apps/api/src/main.hmr.ts index a5fb3ad33..d55f15e2b 100755 --- a/apps/api/src/main.hmr.ts +++ b/apps/api/src/main.hmr.ts @@ -1,8 +1,8 @@ import { FastifyAdapter, NestFactory } from '@nestjs/core'; import { ValidationPipe } from '@nestjs/common'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; -import { AppModule } from './app.module'; -import { ConfigService } from './config'; +import { AppModule } from './app/app.module'; +import { ConfigService } from './app/config'; import * as helmet from 'helmet'; import { environment as env } from '@env-api/environment'; @@ -48,7 +48,7 @@ async function bootstrap() { }, }); - await app.listen(env.server.port || 3000, '0.0.0.0'); + await app.listen(env.server.port || 3000, env.server.host || '0.0.0.0'); if (module.hot) { module.hot.accept(); diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index c4493e335..f3e2524fe 100755 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -1,8 +1,8 @@ import { FastifyAdapter, NestFactory } from '@nestjs/core'; import { ValidationPipe } from '@nestjs/common'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; -import { AppModule } from './app.module'; -import { ConfigService } from './config'; +import { AppModule } from './app/app.module'; +import { ConfigService } from './app/config'; import * as helmet from 'helmet'; import { join } from 'path'; import { environment as env } from '@env-api/environment'; @@ -22,7 +22,7 @@ async function bootstrap() { }), ); - // app.useStaticAssets(join(__dirname + './../public')); // for uploaded images + // app.useStaticAssets(join(__dirname, './../public')); // for uploaded images const options = new DocumentBuilder() .setTitle('Sumo API Docs') @@ -51,7 +51,7 @@ async function bootstrap() { }, }); - await app.listen(env.server.port || 3000, '0.0.0.0'); + await app.listen(env.server.port || 3000, env.server.host || '0.0.0.0'); } bootstrap(); diff --git a/apps/api/tsconfig.app.json b/apps/api/tsconfig.app.json index 9bb954ba8..e0140b7c4 100644 --- a/apps/api/tsconfig.app.json +++ b/apps/api/tsconfig.app.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../../dist/apps/api", "module": "commonjs", - "target": "es6", + "target": "es2017", "types": ["node"] }, "exclude": ["**/*.spec.ts"], diff --git a/apps/api/webpack.config.js b/apps/api/webpack.config.js deleted file mode 100755 index 91004989a..000000000 --- a/apps/api/webpack.config.js +++ /dev/null @@ -1,36 +0,0 @@ -const webpack = require('webpack'); -const path = require('path'); -const nodeExternals = require('webpack-node-externals'); - -module.exports = { - context: __dirname + '/src', - entry: ['webpack/hot/poll?1000', './main.hmr.ts'], - watch: true, - target: 'node', - externals: [ - nodeExternals({ - whitelist: ['webpack/hot/poll?1000'], - }), - ], - module: { - rules: [ - { - test: /\.tsx?$/, - loader: 'ts-loader', - options: { - configFile: 'tsconfig.app.json', - }, - exclude: /node_modules/, - }, - ], - }, - mode: 'development', - resolve: { - extensions: ['.tsx', '.ts', '.js'], - }, - plugins: [new webpack.HotModuleReplacementPlugin()], - output: { - path: path.join(__dirname, '../../dist/apps/api'), - filename: 'server.js', - }, -}; diff --git a/apps/api/webpack.config.prod.js b/apps/api/webpack.config.prod.js deleted file mode 100755 index c1c723422..000000000 --- a/apps/api/webpack.config.prod.js +++ /dev/null @@ -1,42 +0,0 @@ -// FIXME : work-in-progress -const webpack = require('webpack'); -const path = require('path'); -const fs = require('fs'); -const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); - -var nodeModules = {}; -fs.readdirSync('node_modules') - .filter(function(x) { - return ['.bin'].indexOf(x) === -1; - }) - .forEach(function(mod) { - nodeModules[mod] = 'commonjs ' + mod; - }); - -module.exports = { - context: __dirname + '/src', - entry: ['./main.ts'], - target: 'node', - output: { - path: path.join(__dirname, '../../dist/apps/api'), - filename: 'server.js', - }, - devtool: 'source-map', - plugins: [ - new UglifyJsPlugin({ - test: /\.js($|\?)/i, - }), - ], - mode: 'production', - resolve: { - // Add `.ts` and `.tsx` as a resolvable extension. - extensions: ['.ts', '.tsx', '.js'], - }, - module: { - rules: [ - // all files with a `.ts` or `.tsx` extension will be handled by `ts-loader` - { test: /\.tsx?$/, loader: 'ts-loader' }, - ], - }, - externals: nodeModules, -}; diff --git a/apps/backend/README.md b/apps/backend/README.md index 280c3d45f..3e870a53e 100644 --- a/apps/backend/README.md +++ b/apps/backend/README.md @@ -1,17 +1,16 @@ -Backend -======= - - +# Backend ### Run + ```bash ng serve backend ``` Use `Experiments/Upload` UI or postman to test File [upload](https://stackoverflow.com/questions/16015548/tool-for-sending-multipart-form-data-request) -> Uploaded files will be in `dist/apps/backend/uploads/` +> Uploaded files will be in `dist/apps/backend/uploads/` ### Reference -* File Upload - * https://malcoded.com/posts/angular-file-upload-component-with-express + +- File Upload + - https://malcoded.com/posts/angular-file-upload-component-with-express diff --git a/apps/backend/jest.config.js b/apps/backend/jest.config.js index 6038febf6..0b4360867 100644 --- a/apps/backend/jest.config.js +++ b/apps/backend/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'backend', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/apps/backend' + coverageDirectory: '../../coverage/apps/backend', }; diff --git a/apps/webapp-e2e/tsconfig.e2e.json b/apps/webapp-e2e/tsconfig.e2e.json index 073072f8f..8f5c891ca 100644 --- a/apps/webapp-e2e/tsconfig.e2e.json +++ b/apps/webapp-e2e/tsconfig.e2e.json @@ -4,25 +4,22 @@ "outDir": "../../dist/out-tsc/apps/webapp-e2e", "module": "commonjs", "target": "es5", - "types": [ - "jest", - "node" - ] + "types": ["jest", "node"] }, "include": [ - "**/*.ts" + "**/*.ts", /* add all lazy-loaded libraries here: "../../../libs/my-lib/index.ts" */ - , "../../libs/home/src/index.ts" + "../../libs/home/src/index.ts", - , "../../libs/dashboard/src/index.ts" + "../../libs/dashboard/src/index.ts", - , "../../libs/experiments/src/index.ts" + "../../libs/experiments/src/index.ts", - , "../../libs/widgets/src/index.ts" + "../../libs/widgets/src/index.ts", - , "../../libs/grid/src/index.ts" + "../../libs/grid/src/index.ts", - , "../../libs/not-found/src/index.ts" + "../../libs/not-found/src/index.ts" ] } diff --git a/apps/webapp/jest.config.js b/apps/webapp/jest.config.js index d7d9ce8f2..142cc51d3 100644 --- a/apps/webapp/jest.config.js +++ b/apps/webapp/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'webapp', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/apps/webapp' + coverageDirectory: '../../coverage/apps/webapp', }; diff --git a/apps/webapp/ngsw-config.json b/apps/webapp/ngsw-config.json index bd673f1ed..78b33ab44 100644 --- a/apps/webapp/ngsw-config.json +++ b/apps/webapp/ngsw-config.json @@ -1,41 +1,29 @@ { "index": "/index.html", - "assetGroups": [{ - "name": "app", - "installMode": "prefetch", - "resources": { - "files": [ - "/favicon.ico", - "/index.html", - "/silent-refresh.html", - "/*.css", - "/*.js" - ], - "urls": [ - "https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.2.0/trianglify.min.js" - ] - } - }, { - "name": "assets", - "installMode": "lazy", - "updateMode": "prefetch", - "resources": { - "files": [ - "/assets/**" - ], - "urls": [ - "https://fonts.googleapis.com/**", - "https://fonts.gstatic.com/**" - ] + "assetGroups": [ + { + "name": "app", + "installMode": "prefetch", + "resources": { + "files": ["/favicon.ico", "/index.html", "/silent-refresh.html", "/*.css", "/*.js"], + "urls": ["https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.2.0/trianglify.min.js"] + } + }, + { + "name": "assets", + "installMode": "lazy", + "updateMode": "prefetch", + "resources": { + "files": ["/assets/**"], + "urls": ["https://fonts.googleapis.com/**", "https://fonts.gstatic.com/**"] + } } - }], + ], "dataGroups": [ { "name": "my-api", "version": 1, - "urls": [ - "http://localhost:3000/api/**" - ], + "urls": ["http://localhost:3000/api/**"], "cacheConfig": { "strategy": "freshness", "maxSize": 100, @@ -45,9 +33,7 @@ }, { "name": "random-user", - "urls": [ - "https://randomuser.me/api/*" - ], + "urls": ["https://randomuser.me/api/*"], "cacheConfig": { "strategy": "freshness", "maxSize": 100, diff --git a/apps/webapp/src/app/app.module.ts b/apps/webapp/src/app/app.module.ts index 3a7a2ea20..95231ca4c 100644 --- a/apps/webapp/src/app/app.module.ts +++ b/apps/webapp/src/app/app.module.ts @@ -28,7 +28,11 @@ export class MyHammerConfig extends HammerGestureConfig { { path: '', redirectTo: 'home', pathMatch: 'full' }, { path: 'home', loadChildren: '@ngx-starter-kit/home#HomeModule', data: { preload: true } }, { path: 'dashboard', loadChildren: '@ngx-starter-kit/dashboard#DashboardModule', data: { preload: true } }, - { path: '404', loadChildren: '@ngx-starter-kit/not-found#NotFoundModule', data: { title: '404', preload: false } }, + { + path: '404', + loadChildren: '@ngx-starter-kit/not-found#NotFoundModule', + data: { title: '404', preload: false }, + }, // 404 should be last { path: '**', redirectTo: '404', pathMatch: 'full' }, ], diff --git a/apps/webapp/src/assets/i18n/en.json b/apps/webapp/src/assets/i18n/en.json index e5c66555a..017f28c37 100755 --- a/apps/webapp/src/assets/i18n/en.json +++ b/apps/webapp/src/assets/i18n/en.json @@ -17,7 +17,7 @@ "CHECKBOX": "Checkbox", "DATEPICKER": "Datepicker", "RADIO": "Radio", - "TOOLBAR": "Toolbar", + "TOOLBAR": "Toolbar", "LISTS": "Lists", "GRIDS": "Grids", "PROGRESS": "Progress", @@ -66,4 +66,4 @@ "ERROR": "Error", "OVERVIEW": "Overview", "SETTINGS": "Settings" -} \ No newline at end of file +} diff --git a/apps/webapp/src/assets/i18n/es.json b/apps/webapp/src/assets/i18n/es.json index 5ec4a7ff6..c672b6f42 100755 --- a/apps/webapp/src/assets/i18n/es.json +++ b/apps/webapp/src/assets/i18n/es.json @@ -17,7 +17,7 @@ "CHECKBOX": "Checkbox", "DATEPICKER": "Datepicker", "RADIO": "Radio", - "TOOLBAR": "Toolbar", + "TOOLBAR": "Toolbar", "LISTS": "lista", "GRIDS": "Grids", "PROGRESS": "Progreso", @@ -66,4 +66,4 @@ "ERROR": "Error", "OVERVIEW": "Resumen", "SETTINGS": "Ajustes" -} \ No newline at end of file +} diff --git a/apps/webapp/src/environments/base.ts b/apps/webapp/src/environments/base.ts index 94a463227..fbe5e9f22 100644 --- a/apps/webapp/src/environments/base.ts +++ b/apps/webapp/src/environments/base.ts @@ -5,12 +5,14 @@ export default { secret: 'SECRET', apiToken: 'SECRET_TOKEN', dialogFlow: { + baseUrl: 'https://api.dialogflow.com/v1/query?v=20150910', apiToken: '37808bf14a19406cbe2a50cfd1332dd3', - // apiToken: '528e10cbdec04c78a0d0147de041dea4', - sessionId: 'sumodemo', + baseUrlV2: 'https://dialogflow.googleapis.com/v2beta1/projects/', + apiTokenV2: '528e10cbdec04c78a0d0147de041dea4', }, webPush: { - publicVapidKey: 'BAJq-yHlSNjUqKW9iMY0hG96X9WdVwetUFDa5rQIGRPqOHKAL_fkKUe_gUTAKnn9IPAltqmlNO2OkJrjdQ_MXNg' + // Key generation: https://web-push-codelab.glitch.me + publicKey: 'BAJq-yHlSNjUqKW9iMY0hG96X9WdVwetUFDa5rQIGRPqOHKAL_fkKUe_gUTAKnn9IPAltqmlNO2OkJrjdQ_MXNg', }, versions: { app: packageJson.version, @@ -20,7 +22,6 @@ export default { flexLayout: packageJson.dependencies['@angular/flex-layout'], rxjs: packageJson.dependencies.rxjs, angularCli: packageJson.devDependencies['@angular/cli'], - // typescript: packageJson.devDependencies['typescript'], - typescript: packageJson.dependencies['typescript'], + typescript: packageJson.devDependencies['typescript'], }, }; diff --git a/apps/webapp/src/environments/environment.ts b/apps/webapp/src/environments/environment.ts index c23dcce32..d58797310 100644 --- a/apps/webapp/src/environments/environment.ts +++ b/apps/webapp/src/environments/environment.ts @@ -20,9 +20,10 @@ export const environment = { }; /* - * In development mode, to ignore zone related error stack frames such as - * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can - * import the following file, but please comment it out in production mode - * because it will have performance impact when throw error + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. */ // import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/apps/webapp/src/index.html b/apps/webapp/src/index.html index 31dfb3889..50184833b 100644 --- a/apps/webapp/src/index.html +++ b/apps/webapp/src/index.html @@ -1,36 +1,44 @@ - + - - - - - - SumoApp - + + + + + + SumoApp + - - - - - - - - -
-
-
-
-
-
-
+ + + + + + + + +
+
+
+
+
+
+
+
-
- - - - - + + + + + diff --git a/apps/webapp/src/polyfills.ts b/apps/webapp/src/polyfills.ts index ab0af2d15..a0b983e95 100644 --- a/apps/webapp/src/polyfills.ts +++ b/apps/webapp/src/polyfills.ts @@ -11,7 +11,7 @@ * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * - * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html + * Learn more in https://angular.io/guide/browser-support */ /*************************************************************************************************** @@ -34,6 +34,13 @@ // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; +/** + * If the application will be indexed by Google Search, the following is required. + * Googlebot uses a renderer based on Chrome 41. + * https://developers.google.com/search/docs/guides/rendering + **/ +// import 'core-js/es6/array'; + /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. diff --git a/apps/webapp/src/silent-refresh.html b/apps/webapp/src/silent-refresh.html index d879e21c6..551b4bad8 100644 --- a/apps/webapp/src/silent-refresh.html +++ b/apps/webapp/src/silent-refresh.html @@ -1,7 +1,7 @@ - - - + + + diff --git a/apps/webapp/src/styles/_typography.scss b/apps/webapp/src/styles/_typography.scss index ff1ed8769..0c38c20f9 100644 --- a/apps/webapp/src/styles/_typography.scss +++ b/apps/webapp/src/styles/_typography.scss @@ -2,18 +2,18 @@ @import '~@angular/material/theming'; $custom-typography: mat-typography-config( - $font-family: 'Roboto, "Helvetica Neue", sans-serif' - //$display-4: mat-typography-level(112px, 112px, 300), - //$display-3: mat-typography-level(56px, 56px, 300), - //$display-2: mat-typography-level(45px, 48px, 300), - //$display-1: mat-typography-level(34px, 40px, 300), - //$headline: mat-typography-level(14px, 32px, 300), - //$title: mat-typography-level(20px, 32px, 300), - //$subheading-2: mat-typography-level(22px, 28px, 300), - //$subheading-1: mat-typography-level(15px, 24px, 300), - //$body-2: mat-typography-level(14px, 24px, 300), - //$body-1: mat-typography-level(14px, 20px, 300), - //$caption: mat-typography-level(12px, 20px, 300), - //$button: mat-typography-level(14px, 14px, 300), - //$input: mat-typography-level(16px, 1.125, 300) + $font-family: 'Roboto, "Helvetica Neue", sans-serif' + //$display-4: mat-typography-level(112px, 112px, 300), + //$display-3: mat-typography-level(56px, 56px, 300), + //$display-2: mat-typography-level(45px, 48px, 300), + //$display-1: mat-typography-level(34px, 40px, 300), + //$headline: mat-typography-level(14px, 32px, 300), + //$title: mat-typography-level(20px, 32px, 300), + //$subheading-2: mat-typography-level(22px, 28px, 300), + //$subheading-1: mat-typography-level(15px, 24px, 300), + //$body-2: mat-typography-level(14px, 24px, 300), + //$body-1: mat-typography-level(14px, 20px, 300), + //$caption: mat-typography-level(12px, 20px, 300), + //$button: mat-typography-level(14px, 14px, 300), + //$input: mat-typography-level(16px, 1.125, 300), ); diff --git a/apps/webapp/src/styles/fu/_var.scss b/apps/webapp/src/styles/fu/_var.scss index d4c625aff..1d977490c 100755 --- a/apps/webapp/src/styles/fu/_var.scss +++ b/apps/webapp/src/styles/fu/_var.scss @@ -54,7 +54,6 @@ $config: mat-typography-config( $body-1: mat-typography-level(14px, 22px, 400), $caption: mat-typography-level(13px, 22px, 400), $button: mat-typography-level(14px, 14px, 500), - // Line-height must be unit-less fraction of the font-size. $input: mat-typography-level(16px, 1.125, 400) ); @@ -185,7 +184,9 @@ $sidenav-item-padding-left-level5: $sidenav-item-padding-left-level4 + 8px; $sidenav-item-padding-left-level6: $sidenav-item-padding-left-level5 + 8px; $sidenav-width: 270px; // If you change this, you also need to adjust the animations in sidenav.component.ts -$sidenav-collapsed-width: ($sidenav-item-padding-left + $sidenav-item-padding-right + $sidenav-item-icon-font-size); // If you change this, you also need to adjust the animations in sidenav.component.ts +$sidenav-collapsed-width: ( + $sidenav-item-padding-left + $sidenav-item-padding-right + $sidenav-item-icon-font-size +); // If you change this, you also need to adjust the animations in sidenav.component.ts $sidenav-z-index: 1000; /** diff --git a/apps/webapp/tsconfig.app.json b/apps/webapp/tsconfig.app.json index 90747a8aa..c505f7983 100644 --- a/apps/webapp/tsconfig.app.json +++ b/apps/webapp/tsconfig.app.json @@ -3,23 +3,20 @@ "compilerOptions": { "outDir": "../../dist/out-tsc/apps/webapp" }, - "exclude": [ - "src/test-setup.ts", - "**/*.spec.ts" - ], + "exclude": ["src/test-setup.ts", "**/*.spec.ts"], "include": [ - "**/*.ts" + "**/*.ts", - , "../../libs/home/src/index.ts" + "../../libs/home/src/index.ts", - , "../../libs/dashboard/src/index.ts" + "../../libs/dashboard/src/index.ts", - , "../../libs/experiments/src/index.ts" + "../../libs/experiments/src/index.ts", - , "../../libs/widgets/src/index.ts" + "../../libs/widgets/src/index.ts", - , "../../libs/grid/src/index.ts" + "../../libs/grid/src/index.ts", - , "../../libs/not-found/src/index.ts" + "../../libs/not-found/src/index.ts" ] } diff --git a/apps/webapp/tslint.json b/apps/webapp/tslint.json index 19e8161a0..8006e74e9 100644 --- a/apps/webapp/tslint.json +++ b/apps/webapp/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] + "directive-selector": [true, "attribute", "app", "camelCase"], + "component-selector": [true, "element", "app", "kebab-case"] } } diff --git a/docker-compose.yml b/docker-compose.yml index 1e0933a7b..1b0467ac5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,11 +43,11 @@ services: api: build: context: . - dockerfile: .deploy/api/dev.dockerfile - image: 'ngx-starter-kit-api:latest' + dockerfile: .deploy/api/Dockerfile + image: ngx-starter-kit-api:latest container_name: api - env_file: - - development.env + environment: + NODE_TLS_REJECT_UNAUTHORIZED: 0 ports: - '3000:3000' depends_on: diff --git a/docs/changelog.html b/docs/changelog.html deleted file mode 100644 index ccdf4f2a4..000000000 --- a/docs/changelog.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
-
- - -
-
- -

1.2.0 (2018-10-28)

-

Bug Fixes

-
    -
  • features: using proper flex layout grid to render tiles (8d68bdc)
  • -
  • ngx-utils: using ngx-utils (a3dddab)
  • -
-

Features

-
    -
  • animations: added new hierarchical Route Animation (a799175)
  • -
  • api: added 2nd node-app 'backend' to showcase file upload (7ab7c5d)
  • -
  • api: migrated database from mongodb to postgres (a1ad294)
  • -
  • app: Automatically set pageTitle from route data (6f337c5)
  • -
  • dependencies: nrwl/nx -> 6.4.0 , rebuild apps/api module with nx node-apps (779b596)
  • -
  • experiments: added new example to showcase flex-layout with grid (5034b6e)
  • -
  • ngx-utils: ngx-utils module replace ngx-pipes (8f4e7ec)
  • -
  • ngx-utils: using new untilDestroy (1e569e8)
  • -
-

1.1.0 (2018-10-06)

-

Bug Fixes

-
    -
  • docs: excluded some folders for compodoc builds (013710c)
  • -
  • docs: fix compodoc build (5ff3107)
  • -
  • draggable: replaced DraggableModule in favor of CDK DragDropModule (41f729a)
  • -
  • schematics: added Store workspace schematics (c8bba51)
  • -
  • tools: fix workspace-schematic ngxs (1603246)
  • -
-

Features

-
    -
  • components: added image comparison component (4454e1d)
  • -
-

1.0.4 (2018-09-24)

-

Performance Improvements

-
    -
  • led: using Attribute for data binding (5bce243)
  • -
-

1.0.3 (2018-09-23)

-

Performance Improvements

-
    -
  • login: enhanced login UX (f2f4865)
  • -
-

1.0.2 (2018-09-22)

-

Bug Fixes

-
    -
  • nestjs: fix typescript types (97f855a)
  • -
  • test: nrwl/nx -> 6.4.0-beta.1 (b032276)
  • -
-

1.0.1 (2018-09-09)

-

Bug Fixes

-
    -
  • build: now updating version (2d913ea)
  • -
-

1.0.0 (2018-09-09)

-

Bug Fixes

- -

Features

-
    -
  • context-menu example (745a0bd)
  • -
  • deps: latest angular and nx (80918df)
  • -
- - - - - - - - - - - - - - - - - - -
-
-

result-matching ""

-
    -
    -
    -

    No results matching ""

    -
    -
    -
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Account.html b/docs/classes/Account.html deleted file mode 100644 index 4eca1f9e7..000000000 --- a/docs/classes/Account.html +++ /dev/null @@ -1,572 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
    -
    - - -
    -
    - - - - - - - - - - - - - - - -
    -
    -

    -

    File

    -

    -

    - libs/grid/src/lib/models/account.model.ts -

    - - -

    -

    Extends

    -

    -

    - Entity -

    - - - -
    -

    Index

    - - - - - - - - - - - - - - - -
    -
    Properties
    -
    -
      -
    • - Public - Optional - address -
    • -
    • - Public - Optional - company -
    • -
    • - Public - Optional - dob -
    • -
    • - Public - Optional - email -
    • -
    • - Public - Optional - first_name -
    • -
    • - Public - Optional - gender -
    • -
    • - Public - id -
    • -
    • - Public - Optional - last_name -
    • -
    • - Public - Optional - phone -
    • -
    -
    -
    - - -
    - -

    - Properties -

    - - - - - - - - - - - - - - - - - -
    - - - - Public - Optional - address - - - -
    - address: Address - -
    - Type : Address - -
    - -
    - - - - - - - - - - - - - - - - - -
    - - - - Public - Optional - company - - - -
    - company: string - -
    - Type : string - -
    - -
    - - - - - - - - - - - - - - - - - -
    - - - - Public - Optional - dob - - - -
    - dob: moment.Moment - -
    - Type : moment.Moment - -
    - -
    - - - - - - - - - - - - - - - - - -
    - - - - Public - Optional - email - - - -
    - email: string - -
    - Type : string - -
    - -
    - - - - - - - - - - - - - - - - - -
    - - - - Public - Optional - first_name - - - -
    - first_name: string - -
    - Type : string - -
    - -
    - - - - - - - - - - - - - - - - - -
    - - - - Public - Optional - gender - - - -
    - gender: Gender - -
    - Type : Gender - -
    - -
    - - - - - - - - - - - - - - - - - - - - -
    - - - - Public - id - - - -
    - id: number - -
    - Type : number - -
    - Default value : 0 -
    - -
    - - - - - - - - - - - - - - - - - -
    - - - - Public - Optional - last_name - - - -
    - last_name: string - -
    - Type : string - -
    - -
    - - - - - - - - - - - - - - - - - -
    - - - - Public - Optional - phone - - - -
    - phone: string - -
    - Type : string - -
    - -
    -
    - - - - - - - -
    - - -
    -
    import { Entity } from '@ngx-starter-kit/shared';
    -import * as moment from 'moment';
    -
    -export class Account extends Entity {
    -  public id = 0;
    -  public first_name?: string;
    -  public last_name?: string;
    -  public gender?: Gender;
    -  public dob?: moment.Moment;
    -  public email?: string;
    -  public phone?: string;
    -  public company?: string;
    -  public address?: Address;
    -}
    -
    -export class Address {
    -  constructor(public street?: string, public city?: string, public state?: string, public zip?: string) {}
    -}
    -
    -export enum Gender {
    -  male = 'make',
    -  female = 'female',
    -}
    -
    -
    -
    - - - - - - - -
    -
    -

    result-matching ""

    -
      -
      -
      -

      No results matching ""

      -
      -
      -
      - -
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AddMessage.html b/docs/classes/AddMessage.html deleted file mode 100644 index 1d10cf76d..000000000 --- a/docs/classes/AddMessage.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
      -
      - - -
      -
      - - - - - - - - - - - - - - - -
      -
      -

      -

      File

      -

      -

      - libs/chat-box/src/lib/state/chat-box.actions.ts -

      - - - - - -
      -

      Index

      - - - - - - - - - - - - - - - -
      -
      Properties
      -
      -
        -
      • - Public - Readonly - payload -
      • -
      • - Static - Readonly - type -
      • -
      -
      -
      - -
      -

      Constructor

      - - - - - - - - - - - - - -
      -constructor(payload: literal type) -
      - -
      -
      - Parameters : - - - - - - - - - - - - - - - - - - -
      NameTypeOptional
      payload - literal type - - No -
      -
      -
      -
      - -
      - -

      - Properties -

      - - - - - - - - - - - - - - - - - -
      - - - - Public - Readonly - payload - - - -
      - payload: literal type - -
      - Type : literal type - -
      - -
      - - - - - - - - - - - - - - - - - - - - -
      - - - - Static - Readonly - type - - - -
      - type: string - -
      - Type : string - -
      - Default value : '[ChatBox] AddMessage' -
      - -
      -
      - - - - - - - -
      - - -
      -
      import { ChatMessage, Subject } from '../chat-message.model';
      -
      -export interface SynthesisVoice {
      -  voice: SpeechSynthesisVoice;
      -  volume: number;
      -  rate: number;
      -  pitch: number;
      -}
      -
      -// Actions
      -export class FetchConversations {
      -  static readonly type = '[ChatBox] FetchConversations';
      -}
      -
      -export class CreateNewConversation {
      -  static readonly type = '[ChatBox] CreateNewConversation';
      -}
      -
      -export class SwitchConversation {
      -  static readonly type = '[ChatBox] SwitchConversation';
      -  constructor(public readonly payload: { conversationId: string }) {}
      -}
      -
      -export class SaveConversation {
      -  static readonly type = '[ChatBox] SaveConversation';
      -  constructor(public readonly payload: { conversationId: string }) {}
      -}
      -
      -export class CloseConversation {
      -  static readonly type = '[ChatBox] CloseConversation';
      -  constructor(public readonly payload: { conversationId: string }) {}
      -}
      -
      -export class AddMessage {
      -  static readonly type = '[ChatBox] AddMessage';
      -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
      -}
      -
      -export class StartVoiceCommand {
      -  static readonly type = '[ChatBox] StartVoiceCommand';
      -}
      -export class SendMessage {
      -  static readonly type = '[ChatBox] SendMessage';
      -  constructor(public readonly payload: { message: string }) {}
      -}
      -export class SendTyping {
      -  static readonly type = '[ChatBox] Typing';
      -  constructor(public readonly payload: Subject) {}
      -}
      -
      -export class MarkAsRead {
      -  static readonly type = '[ChatBox] MarkAsRead';
      -}
      -
      -
      -
      - - - - - - - -
      -
      -

      result-matching ""

      -
        -
        -
        -

        No results matching ""

        -
        -
        -
        - -
        -
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AddNotification-1.html b/docs/classes/AddNotification-1.html deleted file mode 100644 index 6cc572c4a..000000000 --- a/docs/classes/AddNotification-1.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
        -
        - - -
        -
        - - - - - - - - - - - - - - - -
        -
        -

        -

        File

        -

        -

        - apps/api/src/notifications/interfaces/notification.actions.ts -

        - - - - - -
        -

        Index

        - - - - - - - - - - - - - - - -
        -
        Properties
        -
        -
          -
        • - Public - Readonly - payload -
        • -
        • - Static - Readonly - type -
        • -
        -
        -
        - -
        -

        Constructor

        - - - - - - - - - - - - - -
        -constructor(payload: any) -
        - -
        -
        - Parameters : - - - - - - - - - - - - - - - - - - -
        NameTypeOptional
        payload - any - - No -
        -
        -
        -
        - -
        - -

        - Properties -

        - - - - - - - - - - - - - - - - - -
        - - - - Public - Readonly - payload - - - -
        - payload: any - -
        - Type : any - -
        - -
        - - - - - - - - - - - - - - - - - - - - -
        - - - - Static - Readonly - type - - - -
        - type: string - -
        - Type : string - -
        - Default value : '[Notifications] Add' -
        - -
        -
        - - - - - - - -
        - - -
        -
        export class AddNotification {
        -  static readonly type = '[Notifications] Add';
        -  constructor(public readonly payload: any) {}
        -}
        -
        -export class DeleteNotification {
        -  static readonly type = '[Notifications] Delete';
        -  constructor(public readonly payload: any) {}
        -}
        -
        -
        -
        - - - - - - - -
        -
        -

        result-matching ""

        -
          -
          -
          -

          No results matching ""

          -
          -
          -
          - -
          -
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AddNotification.html b/docs/classes/AddNotification.html deleted file mode 100644 index cc5f31907..000000000 --- a/docs/classes/AddNotification.html +++ /dev/null @@ -1,332 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
          -
          - - -
          -
          - - - - - - - - - - - - - - - -
          -
          -

          -

          File

          -

          -

          - libs/notifications/src/lib/notifications.actions.ts -

          - - - - - -
          -

          Index

          - - - - - - - - - - - - - - - -
          -
          Properties
          -
          -
            -
          • - Public - Readonly - payload -
          • -
          • - Static - Readonly - type -
          • -
          -
          -
          - -
          -

          Constructor

          - - - - - - - - - - - - - -
          -constructor(payload: Notification) -
          - -
          -
          - Parameters : - - - - - - - - - - - - - - - - - - -
          NameTypeOptional
          payload - Notification - - No -
          -
          -
          -
          - -
          - -

          - Properties -

          - - - - - - - - - - - - - - - - - -
          - - - - Public - Readonly - payload - - - -
          - payload: Notification - -
          - Type : Notification - -
          - -
          - - - - - - - - - - - - - - - - - - - - -
          - - - - Static - Readonly - type - - - -
          - type: string - -
          - Type : string - -
          - Default value : '[Notifications] Add' -
          - -
          -
          - - - - - - - -
          - - -
          -
          import { Notification } from './notification.model';
          -
          -// Actions
          -export class FetchNotifications {
          -  static readonly type = '[Notifications] Fetch';
          -}
          -
          -export class AddNotification {
          -  static readonly type = '[Notifications] Add';
          -  constructor(public readonly payload: Notification) {}
          -}
          -
          -export class DeleteNotification {
          -  static readonly type = '[Notifications] Delete';
          -
          -  constructor(public readonly payload: Notification) {}
          -}
          -
          -export class MarkAsRead {
          -  static readonly type = '[Notifications] MarkAsRead';
          -  constructor(public readonly payload: Notification) {}
          -}
          -
          -export class MarkAllAsRead {
          -  static readonly type = '[Notifications] MarkAllAsRead';
          -}
          -
          -
          -
          - - - - - - - -
          -
          -

          result-matching ""

          -
            -
            -
            -

            No results matching ""

            -
            -
            -
            - -
            -
            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Address.html b/docs/classes/Address.html deleted file mode 100644 index 07164de0d..000000000 --- a/docs/classes/Address.html +++ /dev/null @@ -1,442 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
            -
            - - -
            -
            - - - - - - - - - - - - - - - -
            -
            -

            -

            File

            -

            -

            - libs/grid/src/lib/models/account.model.ts -

            - - - - - -
            -

            Index

            - - - - - - - - - - - - - - - -
            -
            Properties
            -
            -
              -
            • - Public - Optional - city -
            • -
            • - Public - Optional - state -
            • -
            • - Public - Optional - street -
            • -
            • - Public - Optional - zip -
            • -
            -
            -
            - -
            -

            Constructor

            - - - - - - - - - - - - - -
            -constructor(street?: string, city?: string, state?: string, zip?: string) -
            - -
            -
            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            NameTypeOptional
            street - string - - Yes -
            city - string - - Yes -
            state - string - - Yes -
            zip - string - - Yes -
            -
            -
            -
            - -
            - -

            - Properties -

            - - - - - - - - - - - - - - - - - -
            - - - - Public - Optional - city - - - -
            - city: string - -
            - Type : string - -
            - -
            - - - - - - - - - - - - - - - - - -
            - - - - Public - Optional - state - - - -
            - state: string - -
            - Type : string - -
            - -
            - - - - - - - - - - - - - - - - - -
            - - - - Public - Optional - street - - - -
            - street: string - -
            - Type : string - -
            - -
            - - - - - - - - - - - - - - - - - -
            - - - - Public - Optional - zip - - - -
            - zip: string - -
            - Type : string - -
            - -
            -
            - - - - - - - -
            - - -
            -
            import { Entity } from '@ngx-starter-kit/shared';
            -import * as moment from 'moment';
            -
            -export class Account extends Entity {
            -  public id = 0;
            -  public first_name?: string;
            -  public last_name?: string;
            -  public gender?: Gender;
            -  public dob?: moment.Moment;
            -  public email?: string;
            -  public phone?: string;
            -  public company?: string;
            -  public address?: Address;
            -}
            -
            -export class Address {
            -  constructor(public street?: string, public city?: string, public state?: string, public zip?: string) {}
            -}
            -
            -export enum Gender {
            -  male = 'make',
            -  female = 'female',
            -}
            -
            -
            -
            - - - - - - - -
            -
            -

            result-matching ""

            -
              -
              -
              -

              No results matching ""

              -
              -
              -
              - -
              -
              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AdvancedPieChartWidgetOptions.html b/docs/classes/AdvancedPieChartWidgetOptions.html deleted file mode 100644 index 5b8c64e37..000000000 --- a/docs/classes/AdvancedPieChartWidgetOptions.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
              -
              - - -
              -
              - - - - - - - - - - - - - - - -
              -
              -

              -

              File

              -

              -

              - libs/widgets/src/lib/components/advanced-pie-chart-widget/advanced-pie-chart-widget-options.interface.ts -

              - - - - - -
              -

              Index

              - - - - - - - - - - - - - - - -
              -
              Properties
              -
              - -
              -
              - - -
              - -

              - Properties -

              - - - - - - - - - - - - - - - - - -
              - - - - Optional - subTitle - - - -
              - subTitle: string - -
              - Type : string - -
              - -
              - - - - - - - - - - - - - - - - - -
              - - - - title - - - -
              - title: string - -
              - Type : string - -
              - -
              -
              - - - - - - - -
              - - -
              -
              export class AdvancedPieChartWidgetOptions {
              -  title: string;
              -  subTitle?: string;
              -}
              -
              -
              -
              - - - - - - - -
              -
              -

              result-matching ""

              -
                -
                -
                -

                No results matching ""

                -
                -
                -
                - -
                -
                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Animations.html b/docs/classes/Animations.html deleted file mode 100644 index e41df0b7f..000000000 --- a/docs/classes/Animations.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                -
                - - -
                -
                - - - - - - - - - - - - - - - -
                -
                -

                -

                File

                -

                -

                - libs/animations/src/lib/animations.ts -

                - - - - - - - - - - - - - - -
                - - -
                -
                export class Animations {}
                -
                -
                -
                - - - - - - - -
                -
                -

                result-matching ""

                -
                  -
                  -
                  -

                  No results matching ""

                  -
                  -
                  -
                  - -
                  -
                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AppPage.html b/docs/classes/AppPage.html deleted file mode 100644 index 5f1f0183a..000000000 --- a/docs/classes/AppPage.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                  -
                  - - -
                  -
                  - - - - - - - - - - - - - - - -
                  -
                  -

                  -

                  File

                  -

                  -

                  - apps/webapp-e2e/src/po/app.po.ts -

                  - - - - - -
                  -

                  Index

                  - - - - - - - - - - - - - - - -
                  -
                  Methods
                  -
                  - -
                  -
                  - - - -
                  - -

                  - Methods -

                  - - - - - - - - - - - - - - - - - - - -
                  - - - - getParagraphText - - - -
                  -getParagraphText() -
                  - -
                  - -
                  - Returns : any - -
                  -
                  - - - - - - - - - - - - - - - - - - - -
                  - - - - navigateTo - - - -
                  -navigateTo() -
                  - -
                  - -
                  - Returns : any - -
                  -
                  -
                  - - - - - - -
                  - - -
                  -
                  import { Selector } from 'testcafe';
                  -
                  -import { browser } from '../utils/index';
                  -
                  -export class AppPage {
                  -  navigateTo() {
                  -    return browser.goTo('/');
                  -  }
                  -
                  -  getParagraphText() {
                  -    return Selector('app-root h1').textContent;
                  -  }
                  -}
                  -
                  -
                  -
                  - - - - - - - -
                  -
                  -

                  result-matching ""

                  -
                    -
                    -
                    -

                    No results matching ""

                    -
                    -
                    -
                    - -
                    -
                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AudienceOverviewWidgetOptions.html b/docs/classes/AudienceOverviewWidgetOptions.html deleted file mode 100644 index 055a8bbf6..000000000 --- a/docs/classes/AudienceOverviewWidgetOptions.html +++ /dev/null @@ -1,333 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                    -
                    - - -
                    -
                    - - - - - - - - - - - - - - - -
                    -
                    -

                    -

                    File

                    -

                    -

                    - libs/widgets/src/lib/components/audience-overview-widget/audience-overview-widget-options.interface.ts -

                    - - - - - -
                    -

                    Index

                    - - - - - - - - - - - - - - - -
                    -
                    Properties
                    -
                    -
                      -
                    • - Optional - data -
                    • -
                    • - Optional - gain -
                    • -
                    • - label -
                    • -
                    • - Optional - sum -
                    • -
                    -
                    -
                    - - -
                    - -

                    - Properties -

                    - - - - - - - - - - - - - - - - - -
                    - - - - Optional - data - - - -
                    - data: ChartData - -
                    - Type : ChartData - -
                    - -
                    - - - - - - - - - - - - - - - - - -
                    - - - - Optional - gain - - - -
                    - gain: number - -
                    - Type : number - -
                    - -
                    - - - - - - - - - - - - - - - - - -
                    - - - - label - - - -
                    - label: string - -
                    - Type : string - -
                    - -
                    - - - - - - - - - - - - - - - - - -
                    - - - - Optional - sum - - - -
                    - sum: number | string - -
                    - Type : number | string - -
                    - -
                    -
                    - - - - - - - -
                    - - -
                    -
                    import { ChartData } from 'chart.js';
                    -
                    -export class AudienceOverviewWidgetOptions {
                    -  label: string;
                    -  sum?: number | string;
                    -  gain?: number;
                    -  data?: ChartData;
                    -}
                    -
                    -
                    -
                    - - - - - - - -
                    -
                    -

                    result-matching ""

                    -
                      -
                      -
                      -

                      No results matching ""

                      -
                      -
                      -
                      - -
                      -
                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AuditBase.html b/docs/classes/AuditBase.html deleted file mode 100644 index da2bd70dd..000000000 --- a/docs/classes/AuditBase.html +++ /dev/null @@ -1,495 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                      -
                      - - -
                      -
                      - - - - - - - - - - - - - - - -
                      -
                      -

                      -

                      File

                      -

                      -

                      - apps/api/src/core/entities/audit-base.entity.ts -

                      - - - - - -
                      -

                      Index

                      - - - - - - - - - - - - - - - -
                      -
                      Properties
                      -
                      - -
                      -
                      - - -
                      - -

                      - Properties -

                      - - - - - - - - - - - - - - - - - - - - -
                      - - - - Optional - createdAt - - - -
                      - createdAt: Date - -
                      - Type : Date - -
                      - Decorators : -
                      - - @CreateDateColumn()
                      -
                      -
                      - -
                      - - - - - - - - - - - - - - - - - - - - -
                      - - - - createdBy - - - -
                      - createdBy: User - -
                      - Type : User - -
                      - Decorators : -
                      - - @ManyToOne(undefined, {onDelete: 'NO ACTION', onUpdate: 'CASCADE', nullable: undefined})
                      -
                      -
                      - -
                      - - - - - - - - - - - - - - - - - - - - -
                      - - - - id - - - -
                      - id: number - -
                      - Type : number - -
                      - Decorators : -
                      - - @ApiModelProperty()
                      @PrimaryGeneratedColumn()
                      -
                      -
                      - -
                      - - - - - - - - - - - - - - - - - - - - -
                      - - - - Optional - updatedAt - - - -
                      - updatedAt: Date - -
                      - Type : Date - -
                      - Decorators : -
                      - - @UpdateDateColumn()
                      -
                      -
                      - -
                      - - - - - - - - - - - - - - - - - - - - -
                      - - - - updatedBy - - - -
                      - updatedBy: User - -
                      - Type : User - -
                      - Decorators : -
                      - - @ManyToOne(undefined, {onDelete: 'NO ACTION', onUpdate: 'CASCADE', nullable: undefined})
                      -
                      -
                      - -
                      - - - - - - - - - - - - - - - - - - - - -
                      - - - - Optional - version - - - -
                      - version: number - -
                      - Type : number - -
                      - Decorators : -
                      - - @Exclude()
                      @VersionColumn()
                      -
                      -
                      - -
                      -
                      - - - - - - - -
                      - - -
                      -
                      import { UpdateDateColumn, CreateDateColumn, ManyToOne, VersionColumn, PrimaryGeneratedColumn } from 'typeorm';
                      -import { Exclude, Transform } from 'class-transformer';
                      -import toHexString from './toHexString';
                      -import { ApiModelProperty } from '@nestjs/swagger';
                      -// FIXME: we need to import User like this to avoid Circular denpendence problem
                      -import { User } from '../../auth/user.entity';
                      -
                      -// TODO: Implement Soft Delete
                      -
                      -export abstract class AuditBase {
                      -  @ApiModelProperty()
                      -  @PrimaryGeneratedColumn()
                      -  id: number;
                      -
                      -  // @Exclude()
                      -  @CreateDateColumn()
                      -  createdAt?: Date;
                      -
                      -  // @Exclude()
                      -  @UpdateDateColumn()
                      -  updatedAt?: Date;
                      -
                      -  // @Exclude()
                      -  @ManyToOne(type => User, {
                      -    onDelete: 'NO ACTION',
                      -    onUpdate: 'CASCADE',
                      -    nullable: false,
                      -  })
                      -  createdBy: User;
                      -
                      -  // @Exclude()
                      -  @ManyToOne(type => User, {
                      -    onDelete: 'NO ACTION',
                      -    onUpdate: 'CASCADE',
                      -    nullable: false,
                      -  })
                      -  updatedBy: User;
                      -
                      -  @Exclude()
                      -  @VersionColumn()
                      -  version?: number;
                      -}
                      -
                      -
                      -
                      - - - - - - - -
                      -
                      -

                      result-matching ""

                      -
                        -
                        -
                        -

                        No results matching ""

                        -
                        -
                        -
                        - -
                        -
                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AuthModeChanged.html b/docs/classes/AuthModeChanged.html deleted file mode 100644 index c1b1bede5..000000000 --- a/docs/classes/AuthModeChanged.html +++ /dev/null @@ -1,347 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                        -
                        - - -
                        -
                        - - - - - - - - - - - - - - - -
                        -
                        -

                        -

                        File

                        -

                        -

                        - libs/auth/src/lib/auth.actions.ts -

                        - - - - - -
                        -

                        Index

                        - - - - - - - - - - - - - - - -
                        -
                        Properties
                        -
                        -
                          -
                        • - Public - Readonly - payload -
                        • -
                        • - Static - Readonly - type -
                        • -
                        -
                        -
                        - -
                        -

                        Constructor

                        - - - - - - - - - - - - - -
                        -constructor(payload: AuthMode) -
                        - -
                        -
                        - Parameters : - - - - - - - - - - - - - - - - - - -
                        NameTypeOptional
                        payload - AuthMode - - No -
                        -
                        -
                        -
                        - -
                        - -

                        - Properties -

                        - - - - - - - - - - - - - - - - - -
                        - - - - Public - Readonly - payload - - - -
                        - payload: AuthMode - -
                        - Type : AuthMode - -
                        - -
                        - - - - - - - - - - - - - - - - - - - - -
                        - - - - Static - Readonly - type - - - -
                        - type: string - -
                        - Type : string - -
                        - Default value : '[Auth] Auth Mode Changed' -
                        - -
                        -
                        - - - - - - - -
                        - - -
                        -
                        export enum AuthMode {
                        -  ImplicitFLow = 'ImplicitFLow',
                        -  PasswordFlow = 'ROPCFlow',
                        -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                        -}
                        -
                        -//  Actions
                        -export class Login {
                        -  static readonly type = '[Auth] Login';
                        -  constructor(public readonly payload?: { infoMsg?: string }) {}
                        -}
                        -export class Logout {
                        -  static readonly type = '[Auth] Logout';
                        -}
                        -export class LoadProfile {
                        -  static readonly type = '[Auth] Load Profile';
                        -  constructor(public payload: any) {}
                        -}
                        -export class ChangeAuthMode {
                        -  static readonly type = '[Auth] Change Auth Mode';
                        -  constructor(public readonly payload: AuthMode) {}
                        -}
                        -
                        -// Mutation Actions
                        -export class LoginSuccess {
                        -  static readonly type = '[Auth] Login Success';
                        -  constructor(public readonly payload: any) {}
                        -}
                        -export class LoginCanceled {
                        -  static readonly type = '[Auth] Login Canceled';
                        -}
                        -export class LogoutSuccess {
                        -  static readonly type = '[Auth] Logout Success';
                        -}
                        -export class ProfileLoaded {
                        -  static readonly type = '[Auth] Profile Loaded';
                        -}
                        -export class AuthModeChanged {
                        -  static readonly type = '[Auth] Auth Mode Changed';
                        -  constructor(public readonly payload: AuthMode) {}
                        -}
                        -
                        -
                        -
                        - - - - - - - -
                        -
                        -

                        result-matching ""

                        -
                          -
                          -
                          -

                          No results matching ""

                          -
                          -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AuthState.html b/docs/classes/AuthState.html deleted file mode 100644 index d0148c19b..000000000 --- a/docs/classes/AuthState.html +++ /dev/null @@ -1,1133 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                          -
                          - - -
                          -
                          - - - - - - - - - - - - - - - -
                          -
                          -

                          -

                          File

                          -

                          -

                          - libs/auth/src/lib/auth.state.ts -

                          - - - - - -
                          -

                          Index

                          - - - - - - - - - - - - - - - -
                          -
                          Methods
                          -
                          - -
                          -
                          - -
                          -

                          Constructor

                          - - - - - - - - - - - - - -
                          -constructor(authService: AuthService, oauthService: OAuthService, router: Router) -
                          - -
                          -
                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          authService - AuthService - - No -
                          oauthService - OAuthService - - No -
                          router - Router - - No -
                          -
                          -
                          -
                          - - -
                          - -

                          - Methods -

                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - Static - authMode - - - -
                          - - authMode(state: AuthStateModel) -
                          - Decorators : -
                          - - @Selector()
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          state - AuthStateModel - - No -
                          -
                          -
                          -
                          -
                          - Returns : any - -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - authModeChanged - - - -
                          -authModeChanged(undefined: StateContext, undefined: AuthModeChanged) -
                          - Decorators : -
                          - - @Action(AuthModeChanged)
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          - StateContext<AuthStateModel> - - No -
                          - AuthModeChanged - - No -
                          -
                          -
                          -
                          -
                          - Returns : void - -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - Async - changeAuthMode - - - -
                          - - changeAuthMode(undefined: StateContext, undefined: ChangeAuthMode) -
                          - Decorators : -
                          - - @Action(ChangeAuthMode)
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          - StateContext<AuthStateModel> - - No -
                          - ChangeAuthMode - - No -
                          -
                          -
                          -
                          -
                          - Returns : any - -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - Static - isLoggedIn - - - -
                          - - isLoggedIn(state: AuthStateModel) -
                          - Decorators : -
                          - - @Selector()
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          state - AuthStateModel - - No -
                          -
                          -
                          -
                          -
                          - Returns : boolean - -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - login - - - -
                          -login(undefined: StateContext, undefined: Login) -
                          - Decorators : -
                          - - @Action(Login)
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          - StateContext<AuthStateModel> - - No -
                          - Login - - No -
                          -
                          -
                          -
                          -
                          - Returns : any - -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - loginSuccess - - - -
                          -loginSuccess(undefined: StateContext, undefined: LoginSuccess) -
                          - Decorators : -
                          - - @Action(LoginSuccess)
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          - StateContext<AuthStateModel> - - No -
                          - LoginSuccess - - No -
                          -
                          -
                          -
                          -
                          - Returns : void - -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - logout - - - -
                          -logout(undefined: StateContext) -
                          - Decorators : -
                          - - @Action(Logout)
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          - StateContext<AuthStateModel> - - No -
                          -
                          -
                          -
                          -
                          - Returns : any - -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - logoutSuccess - - - -
                          -logoutSuccess(undefined: StateContext) -
                          - Decorators : -
                          - - @Action(undefined)
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          - StateContext<AuthStateModel> - - No -
                          -
                          -
                          -
                          -
                          - Returns : void - -
                          -
                          - -
                          -
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - Static - profile - - - -
                          - - profile(state: AuthStateModel) -
                          - Decorators : -
                          - - @Selector()
                          -
                          -
                          - -
                          - -
                          - Parameters : - - - - - - - - - - - - - - - - - - -
                          NameTypeOptional
                          state - AuthStateModel - - No -
                          -
                          -
                          -
                          -
                          - Returns : any - -
                          -
                          - -
                          -
                          -
                          - - - - - - -
                          - - -
                          -
                          import { Action, Select, Selector, State, StateContext } from '@ngxs/store';
                          -import {
                          -  Login,
                          -  LoginCanceled,
                          -  AuthMode,
                          -  ChangeAuthMode,
                          -  LogoutSuccess,
                          -  LoginSuccess,
                          -  Logout,
                          -  AuthModeChanged,
                          -} from './auth.actions';
                          -import { AuthService } from './auth.service';
                          -import { Router } from '@angular/router';
                          -import { authConfigImplicit, authConfigPassword } from './oauth.config';
                          -import { OAuthService } from 'angular-oauth2-oidc';
                          -import { map } from 'rxjs/operators';
                          -
                          -export interface AuthStateModel {
                          -  isLoggedIn: boolean;
                          -  profile: any;
                          -  authMode: AuthMode;
                          -}
                          -
                          -@State<AuthStateModel>({
                          -  name: 'auth',
                          -  defaults: {
                          -    isLoggedIn: false,
                          -    profile: {},
                          -    authMode: AuthMode.ImplicitFLow,
                          -  },
                          -})
                          -export class AuthState {
                          -  constructor(private authService: AuthService, private oauthService: OAuthService, private router: Router) {}
                          -
                          -  @Selector()
                          -  static isLoggedIn(state: AuthStateModel) {
                          -    return state.isLoggedIn;
                          -  }
                          -
                          -  @Selector()
                          -  static profile(state: AuthStateModel) {
                          -    return state.profile;
                          -  }
                          -
                          -  @Selector()
                          -  static authMode(state: AuthStateModel) {
                          -    return state ? state.authMode : AuthMode.ImplicitFLow;
                          -  }
                          -
                          -  @Action(LoginSuccess)
                          -  loginSuccess({ getState, patchState }: StateContext<AuthStateModel>, { payload }: LoginSuccess) {
                          -    patchState({
                          -      isLoggedIn: true,
                          -      profile: payload,
                          -    });
                          -    this.authService.startAutoRefreshToken();
                          -    this.router.navigate(['/dashboard']);
                          -  }
                          -
                          -  @Action([LogoutSuccess, LoginCanceled])
                          -  logoutSuccess({ getState, setState }: StateContext<AuthStateModel>) {
                          -    setState({
                          -      isLoggedIn: false,
                          -      profile: {},
                          -      authMode: getState().authMode,
                          -    });
                          -    this.authService.stopAutoRefreshToken();
                          -    this.router.navigate(['/home']);
                          -  }
                          -
                          -  @Action(AuthModeChanged)
                          -  authModeChanged({ getState, patchState }: StateContext<AuthStateModel>, { payload }: AuthModeChanged) {
                          -    patchState({
                          -      authMode: payload,
                          -    });
                          -  }
                          -
                          -  @Action(ChangeAuthMode)
                          -  async changeAuthMode({ getState, dispatch }: StateContext<AuthStateModel>, { payload }: ChangeAuthMode) {
                          -    if (getState().authMode !== payload) {
                          -      switch (payload) {
                          -        case AuthMode.PasswordFlow:
                          -          this.oauthService.configure(authConfigPassword);
                          -          break;
                          -        default:
                          -          this.oauthService.configure(authConfigImplicit);
                          -          break;
                          -      }
                          -      await this.oauthService.loadDiscoveryDocument();
                          -      dispatch(new AuthModeChanged(payload));
                          -    }
                          -  }
                          -
                          -  @Action(Logout)
                          -  logout({ getState }: StateContext<AuthStateModel>) {
                          -    return this.authService.logout();
                          -  }
                          -
                          -  @Action(Login)
                          -  login({ getState, dispatch }: StateContext<AuthStateModel>, { payload }: Login) {
                          -    return this.authService.login(payload).pipe(
                          -      map(profile => {
                          -        if (profile === false) {
                          -          dispatch(new LoginCanceled());
                          -        } else {
                          -          dispatch(new LoginSuccess(profile));
                          -        }
                          -      }),
                          -    );
                          -  }
                          -}
                          -
                          -
                          -
                          - - - - - - - -
                          -
                          -

                          result-matching ""

                          -
                            -
                            -
                            -

                            No results matching ""

                            -
                            -
                            -
                            - -
                            -
                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/AuthenticateWebSocket.html b/docs/classes/AuthenticateWebSocket.html deleted file mode 100644 index 479b51a3b..000000000 --- a/docs/classes/AuthenticateWebSocket.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                            -
                            - - -
                            -
                            - - - - - - - - - - - - - - - -
                            -
                            -

                            -

                            File

                            -

                            -

                            - libs/socketio-plugin/src/lib/symbols.ts -

                            - - - - - -
                            -

                            Index

                            - - - - - - - - - - - - - - - -
                            -
                            Properties
                            -
                            -
                              -
                            • - Static - Readonly - type -
                            • -
                            -
                            -
                            - - -
                            - -

                            - Properties -

                            - - - - - - - - - - - - - - - - - - - - -
                            - - - - Static - Readonly - type - - - -
                            - type: string - -
                            - Type : string - -
                            - Default value : '[Websocket] authenticate' -
                            - -
                            -
                            - - - - - - - -
                            - - -
                            -
                            import { InjectionToken } from '@angular/core';
                            -import ConnectOpts = SocketIOClient.ConnectOpts;
                            -
                            -export const NGXS_WEBSOCKET_OPTIONS = new InjectionToken('NGXS_WEBSOCKET_OPTIONS');
                            -
                            -export interface NgxsWebsocketPluginOptions {
                            -  /**
                            -   * URL of the websocket.
                            -   */
                            -  url?: string;
                            -
                            -  connectOpts?: ConnectOpts;
                            -
                            -  tokenFn?: () => string;
                            -
                            -  /**
                            -   * The property name to distigunish this type for the store.
                            -   * Default: 'type'
                            -   */
                            -  typeKey?: string;
                            -
                            -  /**
                            -   * Interval to try and reconnect.
                            -   * Default: 5000
                            -   */
                            -  reconnectInterval?: number;
                            -
                            -  /**
                            -   * Number of reconnect attemps.
                            -   * Default: 10
                            -   */
                            -  reconnectAttempts?: number;
                            -
                            -  /**
                            -   * Serializer to call before sending messages
                            -   * Default: `json.stringify`
                            -   */
                            -  serializer?: (data: any) => string;
                            -
                            -  /**
                            -   * Deseralizer before publishing the message.
                            -   */
                            -  deserializer?: (e: MessageEvent) => any;
                            -}
                            -
                            -export function noop(arg) {
                            -  return function() {};
                            -}
                            -
                            -/**
                            - * Action to connect to the websocket. Optionally pass a URL.
                            - */
                            -export class ConnectWebSocket {
                            -  static readonly type = '[Websocket] Connect';
                            -  constructor(public payload?: NgxsWebsocketPluginOptions) {}
                            -}
                            -
                            -/**
                            - * Action triggered when a error ocurrs
                            - */
                            -export class WebsocketMessageError {
                            -  static readonly type = '[Websocket] Message Error';
                            -  constructor(public payload: any) {}
                            -}
                            -
                            -/**
                            - * Action to disconnect the websocket.
                            - */
                            -export class DisconnectWebSocket {
                            -  static readonly type = '[Websocket] Disconnect';
                            -}
                            -
                            -/**
                            - * Action to send to the server.
                            - */
                            -export class SendWebSocketAction {
                            -  static readonly type = '[Websocket] Send Action';
                            -  constructor(public payload: any) {}
                            -}
                            -
                            -export class WebSocketConnected {
                            -  static readonly type = '[Websocket] Connected';
                            -}
                            -
                            -export class WebSocketDisconnected {
                            -  static readonly type = '[Websocket] Disconnected';
                            -}
                            -
                            -export class AuthenticateWebSocket {
                            -  static readonly type = '[Websocket] authenticate';
                            -}
                            -
                            -
                            -
                            - - - - - - - -
                            -
                            -

                            result-matching ""

                            -
                              -
                              -
                              -

                              No results matching ""

                              -
                              -
                              -
                              - -
                              -
                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/BarChartWidgetOptions.html b/docs/classes/BarChartWidgetOptions.html deleted file mode 100644 index 0a250d8f7..000000000 --- a/docs/classes/BarChartWidgetOptions.html +++ /dev/null @@ -1,403 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                              -
                              - - -
                              -
                              - - - - - - - - - - - - - - - -
                              -
                              -

                              -

                              File

                              -

                              -

                              - libs/widgets/src/lib/components/bar-chart-widget/bar-chart-widget-options.interface.ts -

                              - - -

                              -

                              Extends

                              -

                              -

                              - ChartWidgetOptions -

                              - - - -
                              -

                              Index

                              - - - - - - - - - - - - - - - -
                              -
                              Properties
                              -
                              - -
                              -
                              - - -
                              - -

                              - Properties -

                              - - - - - - - - - - - - - - - - - - - - -
                              - - - - Optional - background - - - -
                              - background: string - -
                              - Type : string - -
                              -
                              Inherited from ChartWidgetOptions -
                              -
                              -
                              Defined in ChartWidgetOptions:5
                              -
                              - - - - - - - - - - - - - - - - - - - - -
                              - - - - Optional - color - - - -
                              - color: string - -
                              - Type : string - -
                              -
                              Inherited from ChartWidgetOptions -
                              -
                              -
                              Defined in ChartWidgetOptions:6
                              -
                              - - - - - - - - - - - - - - - - - - - - -
                              - - - - Optional - gain - - - -
                              - gain: number | string - -
                              - Type : number | string - -
                              -
                              Inherited from ChartWidgetOptions -
                              -
                              -
                              Defined in ChartWidgetOptions:3
                              -
                              - - - - - - - - - - - - - - - - - - - - -
                              - - - - Optional - subTitle - - - -
                              - subTitle: string - -
                              - Type : string - -
                              -
                              Inherited from ChartWidgetOptions -
                              -
                              -
                              Defined in ChartWidgetOptions:4
                              -
                              - - - - - - - - - - - - - - - - - - - - -
                              - - - - title - - - -
                              - title: string - -
                              - Type : string - -
                              -
                              Inherited from ChartWidgetOptions -
                              -
                              -
                              Defined in ChartWidgetOptions:2
                              -
                              -
                              - - - - - - - -
                              - - -
                              -
                              import { ChartWidgetOptions } from '../chart-widget/chart-widget-options.interface';
                              -
                              -export class BarChartWidgetOptions extends ChartWidgetOptions {}
                              -
                              -
                              -
                              - - - - - - - -
                              -
                              -

                              result-matching ""

                              -
                                -
                                -
                                -

                                No results matching ""

                                -
                                -
                                -
                                - -
                                -
                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Base.html b/docs/classes/Base.html deleted file mode 100644 index 0bb36076f..000000000 --- a/docs/classes/Base.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                -
                                - - -
                                -
                                - - - - - - - - - - - - - - - -
                                -
                                -

                                -

                                File

                                -

                                -

                                - apps/api/src/core/entities/base.entity.ts -

                                - - - - - -
                                -

                                Index

                                - - - - - - - - - - - - - - - -
                                -
                                Properties
                                -
                                -
                                  -
                                • - id -
                                • -
                                -
                                -
                                - - -
                                - -

                                - Properties -

                                - - - - - - - - - - - - - - - - - - - - -
                                - - - - id - - - -
                                - id: number - -
                                - Type : number - -
                                - Decorators : -
                                - - @ApiModelPropertyOptional()
                                @PrimaryGeneratedColumn()
                                -
                                -
                                - -
                                -
                                - - - - - - - -
                                - - -
                                -
                                import { PrimaryGeneratedColumn } from 'typeorm';
                                -import { ApiModelPropertyOptional } from '@nestjs/swagger';
                                -
                                -export abstract class Base {
                                -  @ApiModelPropertyOptional()
                                -  @PrimaryGeneratedColumn()
                                -  id: number;
                                -}
                                -
                                -
                                -
                                - - - - - - - -
                                -
                                -

                                result-matching ""

                                -
                                  -
                                  -
                                  -

                                  No results matching ""

                                  -
                                  -
                                  -
                                  - -
                                  -
                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/BaseRemoteService.html b/docs/classes/BaseRemoteService.html deleted file mode 100644 index 6002afc1a..000000000 --- a/docs/classes/BaseRemoteService.html +++ /dev/null @@ -1,648 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                  -
                                  - - -
                                  -
                                  - - - - - - - - - - - - - - - -
                                  -
                                  -

                                  -

                                  File

                                  -

                                  -

                                  - apps/api/src/core/services/base-remote.service.ts -

                                  - - - - - -
                                  -

                                  Index

                                  - - - - - - - - - - - - - - - - - - - - - -
                                  -
                                  Properties
                                  -
                                  -
                                    -
                                  • - Protected - Abstract - baseUrl -
                                  • -
                                  • - Protected - Abstract - logger -
                                  • -
                                  • - Readonly - timeout -
                                  • -
                                  -
                                  -
                                  Methods
                                  -
                                  - -
                                  -
                                  - -
                                  -

                                  Constructor

                                  - - - - - - - - - - - - - -
                                  - Protected - constructor(http: HttpService) -
                                  - -
                                  -
                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                  NameTypeOptional
                                  http - HttpService - - No -
                                  -
                                  -
                                  -
                                  - -
                                  - -

                                  - Properties -

                                  - - - - - - - - - - - - - - - - - -
                                  - - - - Protected - Abstract - baseUrl - - - -
                                  - baseUrl: string - -
                                  - Type : string - -
                                  - -
                                  - - - - - - - - - - - - - - - - - -
                                  - - - - Protected - Abstract - logger - - - -
                                  - logger: Logger - -
                                  - Type : Logger - -
                                  - -
                                  - - - - - - - - - - - - - - - - - - - - -
                                  - - - - Readonly - timeout - - - -
                                  - timeout: number - -
                                  - Type : number - -
                                  - Default value : 10000 -
                                  - -
                                  -
                                  - -
                                  - -

                                  - Methods -

                                  - - - - - - - - - - - - - - - - - - - -
                                  - - - - Protected - getHeaders - - - -
                                  - - getHeaders(json: boolean) -
                                  - -
                                  - -
                                  - Parameters : - - - - - - - - - - - - - - - - - - - - -
                                  NameTypeOptionalDefault value
                                  json - boolean - - No - - true -
                                  -
                                  -
                                  -
                                  -
                                  - Returns : {} - -
                                  -
                                  - -
                                  -
                                  - - - - - - - - - - - - - - - - - - - -
                                  - - - - handleError - - - -
                                  -handleError(error: AxiosError) -
                                  - -
                                  - -
                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                  NameTypeOptional
                                  error - AxiosError - - No -
                                  -
                                  -
                                  -
                                  -
                                  - Returns : any - -
                                  -
                                  - -
                                  -
                                  - - - - - - - - - - - - - - - - - - - -
                                  - - - - Protected - unwrapData - - - -
                                  - - unwrapData(response: AxiosResponse) -
                                  - -
                                  - -
                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                  NameTypeOptional
                                  response - AxiosResponse<any> - - No -
                                  -
                                  -
                                  -
                                  -
                                  - Returns : any - -
                                  -
                                  - -
                                  -
                                  -
                                  - - - - - - -
                                  - - -
                                  -
                                  import { HttpService } from '@nestjs/common/http';
                                  -import { AxiosError, AxiosResponse } from 'axios';
                                  -import { throwError } from 'rxjs';
                                  -import {
                                  -  BadRequestException,
                                  -  HttpException,
                                  -  HttpStatus,
                                  -  InternalServerErrorException,
                                  -  Logger,
                                  -  NotFoundException,
                                  -} from '@nestjs/common';
                                  -
                                  -export abstract class BaseRemoteService {
                                  -  protected abstract logger: Logger;
                                  -  protected abstract baseUrl: string;
                                  -  readonly timeout: number = 10000;
                                  -
                                  -  protected constructor(protected http: HttpService) {}
                                  -
                                  -  protected unwrapData(response: AxiosResponse<any>) {
                                  -    return response.data ? response.data : response;
                                  -  }
                                  -
                                  -  handleError(error: AxiosError) {
                                  -    if (error.response) {
                                  -      // The backend returned an unsuccessful response code.
                                  -      // The server responded with a status code that falls out of the range of 2xx
                                  -      // The response body may contain clues as to what went wrong,
                                  -      this.logger.log(error.response.data);
                                  -      this.logger.log(error.response.status + '');
                                  -      console.log(error.response.headers);
                                  -      if (error.response.status === HttpStatus.NOT_FOUND) {
                                  -        return throwError(new NotFoundException(error.response.data));
                                  -      } else if (error.response.status === HttpStatus.BAD_REQUEST) {
                                  -        return throwError(new BadRequestException(error.response.data));
                                  -      } else {
                                  -        return throwError(new HttpException(error.response.data, error.response.status));
                                  -      }
                                  -    } else if (error.request) {
                                  -      // A client-side or network error occurred. Handle it accordingly.
                                  -      // `error.request` is an instance of http.ClientRequest in node.js
                                  -      this.logger.log('Error' + error.request);
                                  -      return throwError(new InternalServerErrorException(error.request));
                                  -    } else {
                                  -      // return throwError(error.message);
                                  -      return throwError('Something bad happened; please try again later.');
                                  -    }
                                  -  }
                                  -
                                  -  protected getHeaders(json: boolean = true) {
                                  -    const headers = {};
                                  -    if (json) {
                                  -      headers['Content-Type'] = 'application/json';
                                  -    } else {
                                  -      headers['Content-Type'] = 'application/x-www-form-urlencoded';
                                  -    }
                                  -    return headers;
                                  -  }
                                  -}
                                  -
                                  -
                                  -
                                  - - - - - - - -
                                  -
                                  -

                                  result-matching ""

                                  -
                                    -
                                    -
                                    -

                                    No results matching ""

                                    -
                                    -
                                    -
                                    - -
                                    -
                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/BaseRepository.html b/docs/classes/BaseRepository.html deleted file mode 100644 index 0420bdb38..000000000 --- a/docs/classes/BaseRepository.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                    -
                                    - - -
                                    -
                                    - - - - - - - - - - - - - - - -
                                    -
                                    -

                                    -

                                    File

                                    -

                                    -

                                    - apps/api/src/core/repositories/base.repository.ts -

                                    - - - - - -
                                    -

                                    Index

                                    - - - - - - - - - - - - - - - -
                                    -
                                    Properties
                                    -
                                    - -
                                    -
                                    - -
                                    -

                                    Constructor

                                    - - - - - - - - - - - - - -
                                    -constructor(entityName: string) -
                                    - -
                                    -
                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                    NameTypeOptional
                                    entityName - string - - No -
                                    -
                                    -
                                    -
                                    - -
                                    - -

                                    - Properties -

                                    - - - - - - - - - - - - - - - - - -
                                    - - - - Private - entityName - - - -
                                    - entityName: string - -
                                    - Type : string - -
                                    - -
                                    -
                                    - - - - - - - -
                                    - - -
                                    -
                                    import { FindOneOptions, FindManyOptions } from 'typeorm';
                                    -
                                    -export default abstract class BaseRepository<T> {
                                    -  private entityName: string;
                                    -
                                    -  constructor(entityName: string) {
                                    -    this.entityName = entityName;
                                    -  }
                                    -
                                    -  // public async findManyByFilter(filter: FindManyOptions<T>): Promise<T> {
                                    -  //   const record = await this.executeRepositoryFunction(
                                    -  //     this.getRepository().findOne(filter)
                                    -  //   );
                                    -  //   if (!record) {
                                    -  //     throw new NotFoundError(`The requested record was not found`);
                                    -  //   }
                                    -  //   return record;
                                    -  // }
                                    -  //
                                    -  // public async findOneByFilter(filter: FindOneOptions<T>): Promise<T> {
                                    -  //   const record = await this.executeRepositoryFunction(
                                    -  //     this.getRepository().findOne(filter)
                                    -  //   );
                                    -  //   if (!record) {
                                    -  //     throw new NotFoundError(`The requested record was not found`);
                                    -  //   }
                                    -  //   return record;
                                    -  // }
                                    -}
                                    -
                                    -
                                    -
                                    - - - - - - - -
                                    -
                                    -

                                    result-matching ""

                                    -
                                      -
                                      -
                                      -

                                      No results matching ""

                                      -
                                      -
                                      -
                                      - -
                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Browser.html b/docs/classes/Browser.html deleted file mode 100644 index bbe6703d8..000000000 --- a/docs/classes/Browser.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                      -
                                      - - -
                                      -
                                      - - - - - - - - - - - - - - - -
                                      -
                                      -

                                      -

                                      File

                                      -

                                      -

                                      - apps/webapp-e2e/src/utils/browser.ts -

                                      - - - - - -
                                      -

                                      Index

                                      - - - - - - - - - - - - - - - -
                                      -
                                      Methods
                                      -
                                      - -
                                      -
                                      - -
                                      -

                                      Constructor

                                      - - - - - - - - - - - - - -
                                      -constructor(baseURL: string) -
                                      - -
                                      -
                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                      NameTypeOptional
                                      baseURL - string - - No -
                                      -
                                      -
                                      -
                                      - - -
                                      - -

                                      - Methods -

                                      - - - - - - - - - - - - - - - - - - - -
                                      - - - - goTo - - - -
                                      -goTo(urlPath: string) -
                                      - -
                                      - -
                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                      NameTypeOptional
                                      urlPath - string - - No -
                                      -
                                      -
                                      -
                                      -
                                      - Returns : any - -
                                      -
                                      - -
                                      -
                                      -
                                      - - - - - - -
                                      - - -
                                      -
                                      import { t } from 'testcafe';
                                      -
                                      -export class Browser {
                                      -  constructor(private baseURL: string) {}
                                      -
                                      -  goTo(urlPath: string) {
                                      -    return t.navigateTo(`${this.baseURL}${urlPath}`);
                                      -  }
                                      -}
                                      -
                                      -
                                      -
                                      - - - - - - - -
                                      -
                                      -

                                      result-matching ""

                                      -
                                        -
                                        -
                                        -

                                        No results matching ""

                                        -
                                        -
                                        -
                                        - -
                                        -
                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ChangeAuthMode.html b/docs/classes/ChangeAuthMode.html deleted file mode 100644 index c020899e1..000000000 --- a/docs/classes/ChangeAuthMode.html +++ /dev/null @@ -1,347 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                        -
                                        - - -
                                        -
                                        - - - - - - - - - - - - - - - -
                                        -
                                        -

                                        -

                                        File

                                        -

                                        -

                                        - libs/auth/src/lib/auth.actions.ts -

                                        - - - - - -
                                        -

                                        Index

                                        - - - - - - - - - - - - - - - -
                                        -
                                        Properties
                                        -
                                        -
                                          -
                                        • - Public - Readonly - payload -
                                        • -
                                        • - Static - Readonly - type -
                                        • -
                                        -
                                        -
                                        - -
                                        -

                                        Constructor

                                        - - - - - - - - - - - - - -
                                        -constructor(payload: AuthMode) -
                                        - -
                                        -
                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                        NameTypeOptional
                                        payload - AuthMode - - No -
                                        -
                                        -
                                        -
                                        - -
                                        - -

                                        - Properties -

                                        - - - - - - - - - - - - - - - - - -
                                        - - - - Public - Readonly - payload - - - -
                                        - payload: AuthMode - -
                                        - Type : AuthMode - -
                                        - -
                                        - - - - - - - - - - - - - - - - - - - - -
                                        - - - - Static - Readonly - type - - - -
                                        - type: string - -
                                        - Type : string - -
                                        - Default value : '[Auth] Change Auth Mode' -
                                        - -
                                        -
                                        - - - - - - - -
                                        - - -
                                        -
                                        export enum AuthMode {
                                        -  ImplicitFLow = 'ImplicitFLow',
                                        -  PasswordFlow = 'ROPCFlow',
                                        -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                                        -}
                                        -
                                        -//  Actions
                                        -export class Login {
                                        -  static readonly type = '[Auth] Login';
                                        -  constructor(public readonly payload?: { infoMsg?: string }) {}
                                        -}
                                        -export class Logout {
                                        -  static readonly type = '[Auth] Logout';
                                        -}
                                        -export class LoadProfile {
                                        -  static readonly type = '[Auth] Load Profile';
                                        -  constructor(public payload: any) {}
                                        -}
                                        -export class ChangeAuthMode {
                                        -  static readonly type = '[Auth] Change Auth Mode';
                                        -  constructor(public readonly payload: AuthMode) {}
                                        -}
                                        -
                                        -// Mutation Actions
                                        -export class LoginSuccess {
                                        -  static readonly type = '[Auth] Login Success';
                                        -  constructor(public readonly payload: any) {}
                                        -}
                                        -export class LoginCanceled {
                                        -  static readonly type = '[Auth] Login Canceled';
                                        -}
                                        -export class LogoutSuccess {
                                        -  static readonly type = '[Auth] Logout Success';
                                        -}
                                        -export class ProfileLoaded {
                                        -  static readonly type = '[Auth] Profile Loaded';
                                        -}
                                        -export class AuthModeChanged {
                                        -  static readonly type = '[Auth] Auth Mode Changed';
                                        -  constructor(public readonly payload: AuthMode) {}
                                        -}
                                        -
                                        -
                                        -
                                        - - - - - - - -
                                        -
                                        -

                                        result-matching ""

                                        -
                                          -
                                          -
                                          -

                                          No results matching ""

                                          -
                                          -
                                          -
                                          - -
                                          -
                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ChartWidgetOptions.html b/docs/classes/ChartWidgetOptions.html deleted file mode 100644 index 7222cb40a..000000000 --- a/docs/classes/ChartWidgetOptions.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                          -
                                          - - -
                                          -
                                          - - - - - - - - - - - - - - - -
                                          -
                                          -

                                          -

                                          File

                                          -

                                          -

                                          - libs/widgets/src/lib/components/chart-widget/chart-widget-options.interface.ts -

                                          - - - - - -
                                          -

                                          Index

                                          - - - - - - - - - - - - - - - -
                                          -
                                          Properties
                                          -
                                          - -
                                          -
                                          - - -
                                          - -

                                          - Properties -

                                          - - - - - - - - - - - - - - - - - -
                                          - - - - Optional - background - - - -
                                          - background: string - -
                                          - Type : string - -
                                          - -
                                          - - - - - - - - - - - - - - - - - -
                                          - - - - Optional - color - - - -
                                          - color: string - -
                                          - Type : string - -
                                          - -
                                          - - - - - - - - - - - - - - - - - -
                                          - - - - Optional - gain - - - -
                                          - gain: number | string - -
                                          - Type : number | string - -
                                          - -
                                          - - - - - - - - - - - - - - - - - -
                                          - - - - Optional - subTitle - - - -
                                          - subTitle: string - -
                                          - Type : string - -
                                          - -
                                          - - - - - - - - - - - - - - - - - -
                                          - - - - title - - - -
                                          - title: string - -
                                          - Type : string - -
                                          - -
                                          -
                                          - - - - - - - -
                                          - - -
                                          -
                                          export class ChartWidgetOptions {
                                          -  title: string;
                                          -  gain?: number | string;
                                          -  subTitle?: string;
                                          -  background?: string;
                                          -  color?: string;
                                          -}
                                          -
                                          -
                                          -
                                          - - - - - - - -
                                          -
                                          -

                                          result-matching ""

                                          -
                                            -
                                            -
                                            -

                                            No results matching ""

                                            -
                                            -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ChatBoxState.html b/docs/classes/ChatBoxState.html deleted file mode 100644 index 3c71aed77..000000000 --- a/docs/classes/ChatBoxState.html +++ /dev/null @@ -1,1989 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                            -
                                            - - -
                                            -
                                            - - - - - - - - - - - - - - - -
                                            -
                                            -

                                            -

                                            File

                                            -

                                            -

                                            - libs/chat-box/src/lib/state/chat-box.store.ts -

                                            - - - -

                                            -

                                            Implements

                                            -

                                            -

                                            - NgxsOnInit -

                                            - - -
                                            -

                                            Index

                                            - - - - - - - - - - - - - - - -
                                            -
                                            Methods
                                            -
                                            - -
                                            -
                                            - -
                                            -

                                            Constructor

                                            - - - - - - - - - - - - - -
                                            -constructor(nlp: NlpService, stt: SpeechToTextService, tts: TextToSpeechService, chat: ChatService, store: Store, actions$: Actions) -
                                            - -
                                            -
                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            nlp - NlpService - - No -
                                            stt - SpeechToTextService - - No -
                                            tts - TextToSpeechService - - No -
                                            chat - ChatService - - No -
                                            store - Store - - No -
                                            actions$ - Actions - - No -
                                            -
                                            -
                                            -
                                            - - -
                                            - -

                                            - Methods -

                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - addMessage - - - -
                                            -addMessage(undefined: StateContext, undefined: AddMessage) -
                                            - Decorators : -
                                            - - @Action(AddMessage, {cancelUncompleted: undefined})
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            - AddMessage - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : void - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Static - canUseSpeechRecognition - - - -
                                            - - canUseSpeechRecognition(state: ChatBoxStateModel) -
                                            - Decorators : -
                                            - - @Selector()
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            state - ChatBoxStateModel - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : boolean - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Static - canUseSpeechSynthesis - - - -
                                            - - canUseSpeechSynthesis(state: ChatBoxStateModel) -
                                            - Decorators : -
                                            - - @Selector()
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            state - ChatBoxStateModel - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : boolean - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - closeConversation - - - -
                                            -closeConversation(undefined: StateContext, undefined: CloseConversation) -
                                            - Decorators : -
                                            - - @Action(CloseConversation)
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            - CloseConversation - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : void - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - createConversation - - - -
                                            -createConversation(undefined: StateContext) -
                                            - Decorators : -
                                            - - @Action(CreateNewConversation)
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : void - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - fetchConversations - - - -
                                            -fetchConversations(undefined: StateContext) -
                                            - Decorators : -
                                            - - @Action(FetchConversations)
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : void - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Static - getConversationById - - - -
                                            - - getConversationById(id: string) -
                                            - Decorators : -
                                            - - @Selector()
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            id - string - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : any - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Static - getConversations - - - -
                                            - - getConversations(state: ChatBoxStateModel) -
                                            - Decorators : -
                                            - - @Selector()
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            state - ChatBoxStateModel - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : {} - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Static - getSelectedConversation - - - -
                                            - - getSelectedConversation(state: ChatBoxStateModel) -
                                            - Decorators : -
                                            - - @Selector()
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            state - ChatBoxStateModel - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : any - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Static - getVoicePreference - - - -
                                            - - getVoicePreference(state: ChatBoxStateModel) -
                                            - Decorators : -
                                            - - @Selector()
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            state - ChatBoxStateModel - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : any - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Static - getVoices - - - -
                                            - - getVoices(state: ChatBoxStateModel) -
                                            - Decorators : -
                                            - - @Selector()
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            state - ChatBoxStateModel - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : {} - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Static - loading - - - -
                                            - - loading(state: ChatBoxStateModel) -
                                            - Decorators : -
                                            - - @Selector()
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            state - ChatBoxStateModel - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : boolean - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - -
                                            - - - - Async - ngxsOnInit - - - -
                                            - - ngxsOnInit(undefined: StateContext) -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : any - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - saveConversation - - - -
                                            -saveConversation(undefined: StateContext, undefined: SaveConversation) -
                                            - Decorators : -
                                            - - @Action(SaveConversation)
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            - SaveConversation - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : void - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Async - sendMessage - - - -
                                            - - sendMessage(undefined: StateContext, undefined: SendMessage) -
                                            - Decorators : -
                                            - - @Action(SendMessage, {cancelUncompleted: undefined})
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            - SendMessage - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : any - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - Async - startVoiceCommand - - - -
                                            - - startVoiceCommand(undefined: StateContext) -
                                            - Decorators : -
                                            - - @Action(StartVoiceCommand, {cancelUncompleted: undefined})
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : any - -
                                            -
                                            - -
                                            -
                                            - - - - - - - - - - - - - - - - - - - - - - -
                                            - - - - switchConversation - - - -
                                            -switchConversation(undefined: StateContext, undefined: SwitchConversation) -
                                            - Decorators : -
                                            - - @Action(SwitchConversation)
                                            -
                                            -
                                            - -
                                            - -
                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                            NameTypeOptional
                                            - StateContext<ChatBoxStateModel> - - No -
                                            - SwitchConversation - - No -
                                            -
                                            -
                                            -
                                            -
                                            - Returns : void - -
                                            -
                                            - -
                                            -
                                            -
                                            - - - - - - -
                                            - - -
                                            -
                                            import {
                                            -  Action,
                                            -  Actions,
                                            -  createSelector,
                                            -  NgxsOnInit,
                                            -  ofActionDispatched,
                                            -  Selector,
                                            -  State,
                                            -  StateContext,
                                            -  Store,
                                            -} from '@ngxs/store';
                                            -import { NlpService } from '../services/nlp.service';
                                            -import { ChatService } from '../services/chat.service';
                                            -import { TextToSpeechService } from '../services/text-to-speech.service';
                                            -import { SpeechToTextService } from '../services/speech-to-text.service';
                                            -
                                            -import { tap } from 'rxjs/operators';
                                            -import { ChatMessage, Conversation, ModeType, SubjectType } from '../chat-message.model';
                                            -import {
                                            -  AddMessage,
                                            -  CloseConversation,
                                            -  CreateNewConversation,
                                            -  FetchConversations,
                                            -  SaveConversation,
                                            -  SendMessage,
                                            -  StartVoiceCommand,
                                            -  SwitchConversation,
                                            -  SynthesisVoice,
                                            -} from './chat-box.actions';
                                            -
                                            -export class ChatBoxStateModel {
                                            -  conversations: Conversation[];
                                            -  selectedConversation: Conversation;
                                            -  canUseSpeechRecognition: boolean;
                                            -  canUseSpeechSynthesis: boolean;
                                            -  voices: SpeechSynthesisVoice[];
                                            -  voiceForm: {
                                            -    model: SynthesisVoice;
                                            -    dirty: boolean;
                                            -    status: string;
                                            -    errors: any;
                                            -  };
                                            -  activeUsersBots: any[];
                                            -  loading: boolean;
                                            -}
                                            -
                                            -@State<ChatBoxStateModel>({
                                            -  name: 'chatbox',
                                            -  defaults: {
                                            -    conversations: [],
                                            -    selectedConversation: null,
                                            -    canUseSpeechRecognition: false,
                                            -    canUseSpeechSynthesis: false,
                                            -    voices: [],
                                            -    voiceForm: {
                                            -      model: {
                                            -        voice: null,
                                            -        volume: 1, // 0 to 1
                                            -        rate: 1, // 0.1 to 10
                                            -        pitch: 1, // 0 to 2
                                            -      },
                                            -      dirty: false,
                                            -      status: 'VALID',
                                            -      errors: {},
                                            -    },
                                            -    activeUsersBots: [],
                                            -    loading: false,
                                            -  },
                                            -})
                                            -export class ChatBoxState implements NgxsOnInit {
                                            -  constructor(
                                            -    private nlp: NlpService,
                                            -    private stt: SpeechToTextService,
                                            -    private tts: TextToSpeechService,
                                            -    private chat: ChatService,
                                            -    private store: Store,
                                            -    private actions$: Actions,
                                            -  ) {
                                            -    this.actions$.pipe(ofActionDispatched(AddMessage)).subscribe((action: AddMessage) => {
                                            -      switch (action.payload.message.to.type) {
                                            -        case SubjectType.BOT:
                                            -          return this.nlp.process(action.payload.message.content).then(speech => {
                                            -            store.dispatch(
                                            -              new AddMessage({
                                            -                conversationId: action.payload.conversationId,
                                            -                message: ChatMessage.fromBotMessage(speech),
                                            -              }),
                                            -            );
                                            -            if (action.payload.message.mode === ModeType.SPEAK) {
                                            -              this.tts.synthesisVoice(speech, this.store.selectSnapshot(ChatBoxState.getVoicePreference));
                                            -            }
                                            -          });
                                            -        case SubjectType.USER:
                                            -        case SubjectType.ADMIN:
                                            -        case SubjectType.GROUP:
                                            -        case SubjectType.ALL:
                                            -          break;
                                            -        default:
                                            -          break;
                                            -      }
                                            -    });
                                            -  }
                                            -
                                            -  @Selector()
                                            -  public static canUseSpeechRecognition(state: ChatBoxStateModel) {
                                            -    return state.canUseSpeechRecognition;
                                            -  }
                                            -
                                            -  @Selector()
                                            -  public static canUseSpeechSynthesis(state: ChatBoxStateModel) {
                                            -    return state.canUseSpeechSynthesis;
                                            -  }
                                            -
                                            -  @Selector()
                                            -  public static loading(state: ChatBoxStateModel) {
                                            -    return state.loading;
                                            -  }
                                            -
                                            -  @Selector()
                                            -  static getConversations(state: ChatBoxStateModel) {
                                            -    return state.conversations;
                                            -  }
                                            -
                                            -  @Selector()
                                            -  static getSelectedConversation(state: ChatBoxStateModel) {
                                            -    return state.selectedConversation;
                                            -  }
                                            -
                                            -  @Selector()
                                            -  static getConversationById(id: string) {
                                            -    return createSelector([ChatBoxState], (state: ChatBoxStateModel) => {
                                            -      return state.conversations.find(con => con.id === id);
                                            -    });
                                            -  }
                                            -
                                            -  @Selector()
                                            -  static getVoices(state: ChatBoxStateModel) {
                                            -    return state.voices;
                                            -  }
                                            -
                                            -  @Selector()
                                            -  static getVoicePreference(state: ChatBoxStateModel) {
                                            -    return state.voiceForm.model;
                                            -  }
                                            -
                                            -  async ngxsOnInit({ getState, setState, patchState, dispatch }: StateContext<ChatBoxStateModel>) {
                                            -    console.log('ChatBoxState initialized, setting defaults');
                                            -    if (this.tts.canUseSpeechSynthesis) {
                                            -      const voices = await this.tts.getVoiceList();
                                            -      patchState({
                                            -        canUseSpeechRecognition: this.stt.canUseSpeechRecognition,
                                            -        canUseSpeechSynthesis: this.tts.canUseSpeechSynthesis,
                                            -        voices,
                                            -        voiceForm: {
                                            -          model: {
                                            -            voice: voices[48],
                                            -            volume: 1,
                                            -            rate: 1,
                                            -            pitch: 1,
                                            -          },
                                            -          dirty: false,
                                            -          status: 'VALID',
                                            -          errors: {},
                                            -        },
                                            -      });
                                            -    }
                                            -    dispatch(new FetchConversations());
                                            -  }
                                            -
                                            -  @Action(FetchConversations)
                                            -  fetchConversations({ getState, patchState, setState }: StateContext<ChatBoxStateModel>) {
                                            -    console.log('fetching open conversations');
                                            -    // return this.chat.fetchInFlightConversations().pipe(tap(res => patchState({ conversations: res })));
                                            -  }
                                            -
                                            -  @Action(CreateNewConversation)
                                            -  createConversation({ getState, patchState, setState }: StateContext<ChatBoxStateModel>) {
                                            -    const newConversation = new Conversation('payload.conversationId');
                                            -    patchState({
                                            -      conversations: [...getState().conversations, newConversation],
                                            -      selectedConversation: newConversation,
                                            -    });
                                            -  }
                                            -
                                            -  @Action(SwitchConversation)
                                            -  switchConversation(
                                            -    { getState, patchState, setState }: StateContext<ChatBoxStateModel>,
                                            -    { payload }: SwitchConversation,
                                            -  ) {
                                            -    const switchedConversation = getState().conversations.find(con => con.id === payload.conversationId);
                                            -    if (switchedConversation) {
                                            -      patchState({
                                            -        selectedConversation: switchedConversation,
                                            -      });
                                            -    }
                                            -  }
                                            -
                                            -  @Action(SaveConversation)
                                            -  saveConversation({ getState, patchState, setState }: StateContext<ChatBoxStateModel>, { payload }: SaveConversation) {
                                            -    console.log(`saving conversation ${payload.conversationId}`);
                                            -    // const conversation = getState().conversations.find( con => con.id === payload.conversationId);
                                            -    // return this.chat.saveConversation(conversation);
                                            -  }
                                            -
                                            -  @Action(CloseConversation)
                                            -  closeConversation(
                                            -    { getState, patchState, setState, dispatch }: StateContext<ChatBoxStateModel>,
                                            -    { payload }: CloseConversation,
                                            -  ) {
                                            -    console.log(`close conversation ${payload.conversationId}`);
                                            -    const closingConversation = getState().conversations.find(con => con.id === payload.conversationId);
                                            -    dispatch(new SaveConversation({ conversationId: payload.conversationId })).pipe(
                                            -      tap(_ => {
                                            -        const remainingCons = getState().conversations.filter(
                                            -          conversation => conversation.id !== payload.conversationId,
                                            -        );
                                            -        patchState({
                                            -          conversations: remainingCons,
                                            -          selectedConversation: remainingCons[remainingCons.length - 1],
                                            -        });
                                            -      }),
                                            -    );
                                            -  }
                                            -
                                            -  @Action(AddMessage, { cancelUncompleted: true })
                                            -  addMessage({ getState, patchState, setState }: StateContext<ChatBoxStateModel>, { payload }: AddMessage) {
                                            -    const conversation = getState().conversations.find(con => con.id === payload.conversationId);
                                            -    conversation.messages.push(payload.message);
                                            -    // patchState({
                                            -    //   // conversations: [...getState().conversations]
                                            -    // });
                                            -  }
                                            -
                                            -  @Action(SendMessage, { cancelUncompleted: true })
                                            -  async sendMessage(
                                            -    { getState, patchState, setState, dispatch }: StateContext<ChatBoxStateModel>,
                                            -    { payload }: SendMessage,
                                            -  ) {
                                            -    dispatch(
                                            -      new AddMessage({
                                            -        conversationId: getState().selectedConversation.id,
                                            -        message: ChatMessage.fromUserMessage(payload.message, ModeType.TYPE),
                                            -      }),
                                            -    );
                                            -  }
                                            -
                                            -  @Action(StartVoiceCommand, { cancelUncompleted: true })
                                            -  async startVoiceCommand({ getState, patchState, setState, dispatch }: StateContext<ChatBoxStateModel>) {
                                            -    const message = await this.stt.getVoiceMessage();
                                            -    dispatch(
                                            -      new AddMessage({
                                            -        conversationId: getState().selectedConversation.id,
                                            -        message: ChatMessage.fromUserMessage(message, ModeType.SPEAK),
                                            -      }),
                                            -    );
                                            -  }
                                            -}
                                            -
                                            -
                                            -
                                            - - - - - - - -
                                            -
                                            -

                                            result-matching ""

                                            -
                                              -
                                              -
                                              -

                                              No results matching ""

                                              -
                                              -
                                              -
                                              - -
                                              -
                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ChatBoxStateModel.html b/docs/classes/ChatBoxStateModel.html deleted file mode 100644 index 830fe0a66..000000000 --- a/docs/classes/ChatBoxStateModel.html +++ /dev/null @@ -1,724 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                              -
                                              - - -
                                              -
                                              - - - - - - - - - - - - - - - -
                                              -
                                              -

                                              -

                                              File

                                              -

                                              -

                                              - libs/chat-box/src/lib/state/chat-box.store.ts -

                                              - - - - - -
                                              -

                                              Index

                                              - - - - - - - - - - - - - - - -
                                              -
                                              Properties
                                              -
                                              - -
                                              -
                                              - - -
                                              - -

                                              - Properties -

                                              - - - - - - - - - - - - - - - - - -
                                              - - - - activeUsersBots - - - -
                                              - activeUsersBots: any[] - -
                                              - Type : any[] - -
                                              - -
                                              - - - - - - - - - - - - - - - - - -
                                              - - - - canUseSpeechRecognition - - - -
                                              - canUseSpeechRecognition: boolean - -
                                              - Type : boolean - -
                                              - -
                                              - - - - - - - - - - - - - - - - - -
                                              - - - - canUseSpeechSynthesis - - - -
                                              - canUseSpeechSynthesis: boolean - -
                                              - Type : boolean - -
                                              - -
                                              - - - - - - - - - - - - - - - - - -
                                              - - - - conversations - - - -
                                              - conversations: Conversation[] - -
                                              - Type : Conversation[] - -
                                              - -
                                              - - - - - - - - - - - - - - - - - -
                                              - - - - loading - - - -
                                              - loading: boolean - -
                                              - Type : boolean - -
                                              - -
                                              - - - - - - - - - - - - - - - - - -
                                              - - - - selectedConversation - - - -
                                              - selectedConversation: Conversation - -
                                              - Type : Conversation - -
                                              - -
                                              - - - - - - - - - - - - - - - - - -
                                              - - - - voiceForm - - - -
                                              - voiceForm: literal type - -
                                              - Type : literal type - -
                                              - -
                                              - - - - - - - - - - - - - - - - - -
                                              - - - - voices - - - -
                                              - voices: SpeechSynthesisVoice[] - -
                                              - Type : SpeechSynthesisVoice[] - -
                                              - -
                                              -
                                              - - - - - - - -
                                              - - -
                                              -
                                              import {
                                              -  Action,
                                              -  Actions,
                                              -  createSelector,
                                              -  NgxsOnInit,
                                              -  ofActionDispatched,
                                              -  Selector,
                                              -  State,
                                              -  StateContext,
                                              -  Store,
                                              -} from '@ngxs/store';
                                              -import { NlpService } from '../services/nlp.service';
                                              -import { ChatService } from '../services/chat.service';
                                              -import { TextToSpeechService } from '../services/text-to-speech.service';
                                              -import { SpeechToTextService } from '../services/speech-to-text.service';
                                              -
                                              -import { tap } from 'rxjs/operators';
                                              -import { ChatMessage, Conversation, ModeType, SubjectType } from '../chat-message.model';
                                              -import {
                                              -  AddMessage,
                                              -  CloseConversation,
                                              -  CreateNewConversation,
                                              -  FetchConversations,
                                              -  SaveConversation,
                                              -  SendMessage,
                                              -  StartVoiceCommand,
                                              -  SwitchConversation,
                                              -  SynthesisVoice,
                                              -} from './chat-box.actions';
                                              -
                                              -export class ChatBoxStateModel {
                                              -  conversations: Conversation[];
                                              -  selectedConversation: Conversation;
                                              -  canUseSpeechRecognition: boolean;
                                              -  canUseSpeechSynthesis: boolean;
                                              -  voices: SpeechSynthesisVoice[];
                                              -  voiceForm: {
                                              -    model: SynthesisVoice;
                                              -    dirty: boolean;
                                              -    status: string;
                                              -    errors: any;
                                              -  };
                                              -  activeUsersBots: any[];
                                              -  loading: boolean;
                                              -}
                                              -
                                              -@State<ChatBoxStateModel>({
                                              -  name: 'chatbox',
                                              -  defaults: {
                                              -    conversations: [],
                                              -    selectedConversation: null,
                                              -    canUseSpeechRecognition: false,
                                              -    canUseSpeechSynthesis: false,
                                              -    voices: [],
                                              -    voiceForm: {
                                              -      model: {
                                              -        voice: null,
                                              -        volume: 1, // 0 to 1
                                              -        rate: 1, // 0.1 to 10
                                              -        pitch: 1, // 0 to 2
                                              -      },
                                              -      dirty: false,
                                              -      status: 'VALID',
                                              -      errors: {},
                                              -    },
                                              -    activeUsersBots: [],
                                              -    loading: false,
                                              -  },
                                              -})
                                              -export class ChatBoxState implements NgxsOnInit {
                                              -  constructor(
                                              -    private nlp: NlpService,
                                              -    private stt: SpeechToTextService,
                                              -    private tts: TextToSpeechService,
                                              -    private chat: ChatService,
                                              -    private store: Store,
                                              -    private actions$: Actions,
                                              -  ) {
                                              -    this.actions$.pipe(ofActionDispatched(AddMessage)).subscribe((action: AddMessage) => {
                                              -      switch (action.payload.message.to.type) {
                                              -        case SubjectType.BOT:
                                              -          return this.nlp.process(action.payload.message.content).then(speech => {
                                              -            store.dispatch(
                                              -              new AddMessage({
                                              -                conversationId: action.payload.conversationId,
                                              -                message: ChatMessage.fromBotMessage(speech),
                                              -              }),
                                              -            );
                                              -            if (action.payload.message.mode === ModeType.SPEAK) {
                                              -              this.tts.synthesisVoice(speech, this.store.selectSnapshot(ChatBoxState.getVoicePreference));
                                              -            }
                                              -          });
                                              -        case SubjectType.USER:
                                              -        case SubjectType.ADMIN:
                                              -        case SubjectType.GROUP:
                                              -        case SubjectType.ALL:
                                              -          break;
                                              -        default:
                                              -          break;
                                              -      }
                                              -    });
                                              -  }
                                              -
                                              -  @Selector()
                                              -  public static canUseSpeechRecognition(state: ChatBoxStateModel) {
                                              -    return state.canUseSpeechRecognition;
                                              -  }
                                              -
                                              -  @Selector()
                                              -  public static canUseSpeechSynthesis(state: ChatBoxStateModel) {
                                              -    return state.canUseSpeechSynthesis;
                                              -  }
                                              -
                                              -  @Selector()
                                              -  public static loading(state: ChatBoxStateModel) {
                                              -    return state.loading;
                                              -  }
                                              -
                                              -  @Selector()
                                              -  static getConversations(state: ChatBoxStateModel) {
                                              -    return state.conversations;
                                              -  }
                                              -
                                              -  @Selector()
                                              -  static getSelectedConversation(state: ChatBoxStateModel) {
                                              -    return state.selectedConversation;
                                              -  }
                                              -
                                              -  @Selector()
                                              -  static getConversationById(id: string) {
                                              -    return createSelector([ChatBoxState], (state: ChatBoxStateModel) => {
                                              -      return state.conversations.find(con => con.id === id);
                                              -    });
                                              -  }
                                              -
                                              -  @Selector()
                                              -  static getVoices(state: ChatBoxStateModel) {
                                              -    return state.voices;
                                              -  }
                                              -
                                              -  @Selector()
                                              -  static getVoicePreference(state: ChatBoxStateModel) {
                                              -    return state.voiceForm.model;
                                              -  }
                                              -
                                              -  async ngxsOnInit({ getState, setState, patchState, dispatch }: StateContext<ChatBoxStateModel>) {
                                              -    console.log('ChatBoxState initialized, setting defaults');
                                              -    if (this.tts.canUseSpeechSynthesis) {
                                              -      const voices = await this.tts.getVoiceList();
                                              -      patchState({
                                              -        canUseSpeechRecognition: this.stt.canUseSpeechRecognition,
                                              -        canUseSpeechSynthesis: this.tts.canUseSpeechSynthesis,
                                              -        voices,
                                              -        voiceForm: {
                                              -          model: {
                                              -            voice: voices[48],
                                              -            volume: 1,
                                              -            rate: 1,
                                              -            pitch: 1,
                                              -          },
                                              -          dirty: false,
                                              -          status: 'VALID',
                                              -          errors: {},
                                              -        },
                                              -      });
                                              -    }
                                              -    dispatch(new FetchConversations());
                                              -  }
                                              -
                                              -  @Action(FetchConversations)
                                              -  fetchConversations({ getState, patchState, setState }: StateContext<ChatBoxStateModel>) {
                                              -    console.log('fetching open conversations');
                                              -    // return this.chat.fetchInFlightConversations().pipe(tap(res => patchState({ conversations: res })));
                                              -  }
                                              -
                                              -  @Action(CreateNewConversation)
                                              -  createConversation({ getState, patchState, setState }: StateContext<ChatBoxStateModel>) {
                                              -    const newConversation = new Conversation('payload.conversationId');
                                              -    patchState({
                                              -      conversations: [...getState().conversations, newConversation],
                                              -      selectedConversation: newConversation,
                                              -    });
                                              -  }
                                              -
                                              -  @Action(SwitchConversation)
                                              -  switchConversation(
                                              -    { getState, patchState, setState }: StateContext<ChatBoxStateModel>,
                                              -    { payload }: SwitchConversation,
                                              -  ) {
                                              -    const switchedConversation = getState().conversations.find(con => con.id === payload.conversationId);
                                              -    if (switchedConversation) {
                                              -      patchState({
                                              -        selectedConversation: switchedConversation,
                                              -      });
                                              -    }
                                              -  }
                                              -
                                              -  @Action(SaveConversation)
                                              -  saveConversation({ getState, patchState, setState }: StateContext<ChatBoxStateModel>, { payload }: SaveConversation) {
                                              -    console.log(`saving conversation ${payload.conversationId}`);
                                              -    // const conversation = getState().conversations.find( con => con.id === payload.conversationId);
                                              -    // return this.chat.saveConversation(conversation);
                                              -  }
                                              -
                                              -  @Action(CloseConversation)
                                              -  closeConversation(
                                              -    { getState, patchState, setState, dispatch }: StateContext<ChatBoxStateModel>,
                                              -    { payload }: CloseConversation,
                                              -  ) {
                                              -    console.log(`close conversation ${payload.conversationId}`);
                                              -    const closingConversation = getState().conversations.find(con => con.id === payload.conversationId);
                                              -    dispatch(new SaveConversation({ conversationId: payload.conversationId })).pipe(
                                              -      tap(_ => {
                                              -        const remainingCons = getState().conversations.filter(
                                              -          conversation => conversation.id !== payload.conversationId,
                                              -        );
                                              -        patchState({
                                              -          conversations: remainingCons,
                                              -          selectedConversation: remainingCons[remainingCons.length - 1],
                                              -        });
                                              -      }),
                                              -    );
                                              -  }
                                              -
                                              -  @Action(AddMessage, { cancelUncompleted: true })
                                              -  addMessage({ getState, patchState, setState }: StateContext<ChatBoxStateModel>, { payload }: AddMessage) {
                                              -    const conversation = getState().conversations.find(con => con.id === payload.conversationId);
                                              -    conversation.messages.push(payload.message);
                                              -    // patchState({
                                              -    //   // conversations: [...getState().conversations]
                                              -    // });
                                              -  }
                                              -
                                              -  @Action(SendMessage, { cancelUncompleted: true })
                                              -  async sendMessage(
                                              -    { getState, patchState, setState, dispatch }: StateContext<ChatBoxStateModel>,
                                              -    { payload }: SendMessage,
                                              -  ) {
                                              -    dispatch(
                                              -      new AddMessage({
                                              -        conversationId: getState().selectedConversation.id,
                                              -        message: ChatMessage.fromUserMessage(payload.message, ModeType.TYPE),
                                              -      }),
                                              -    );
                                              -  }
                                              -
                                              -  @Action(StartVoiceCommand, { cancelUncompleted: true })
                                              -  async startVoiceCommand({ getState, patchState, setState, dispatch }: StateContext<ChatBoxStateModel>) {
                                              -    const message = await this.stt.getVoiceMessage();
                                              -    dispatch(
                                              -      new AddMessage({
                                              -        conversationId: getState().selectedConversation.id,
                                              -        message: ChatMessage.fromUserMessage(message, ModeType.SPEAK),
                                              -      }),
                                              -    );
                                              -  }
                                              -}
                                              -
                                              -
                                              -
                                              - - - - - - - -
                                              -
                                              -

                                              result-matching ""

                                              -
                                                -
                                                -
                                                -

                                                No results matching ""

                                                -
                                                -
                                                -
                                                - -
                                                -
                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ChatGateway.html b/docs/classes/ChatGateway.html deleted file mode 100644 index a0cc8a270..000000000 --- a/docs/classes/ChatGateway.html +++ /dev/null @@ -1,829 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                -
                                                - - -
                                                -
                                                - - - - - - - - - - - - - - - -
                                                -
                                                -

                                                -

                                                File

                                                -

                                                -

                                                - apps/api/src/chat/chat.gateway.ts -

                                                - - - -

                                                -

                                                Implements

                                                -

                                                -

                                                - OnGatewayInit - OnGatewayConnection - OnGatewayDisconnect -

                                                - - -
                                                -

                                                Index

                                                - - - - - - - - - - - - - - - - - - - - - -
                                                -
                                                Properties
                                                -
                                                - -
                                                -
                                                Methods
                                                -
                                                - -
                                                -
                                                - -
                                                -

                                                Constructor

                                                - - - - - - - - - - - - - -
                                                -constructor(chatService: ChatService) -
                                                - -
                                                -
                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                NameTypeOptional
                                                chatService - ChatService - - No -
                                                -
                                                -
                                                -
                                                - -
                                                - -

                                                - Properties -

                                                - - - - - - - - - - - - - - - - - -
                                                - - - - server - - - -
                                                - server: - -
                                                - Decorators : -
                                                - - @WebSocketServer()
                                                -
                                                -
                                                - -
                                                -
                                                - -
                                                - -

                                                - Methods -

                                                - - - - - - - - - - - - - - - - - - - -
                                                - - - - Public - afterInit - - - -
                                                - - afterInit(server) -
                                                - -
                                                - -
                                                - Parameters : - - - - - - - - - - - - - - - - -
                                                NameOptional
                                                server - No -
                                                -
                                                -
                                                -
                                                -
                                                - Returns : void - -
                                                -
                                                - -
                                                -
                                                - - - - - - - - - - - - - - - - - - - -
                                                - - - - Public - handleConnection - - - -
                                                - - handleConnection(client) -
                                                - -
                                                - -
                                                - Parameters : - - - - - - - - - - - - - - - - -
                                                NameOptional
                                                client - No -
                                                -
                                                -
                                                -
                                                -
                                                - Returns : void - -
                                                -
                                                - -
                                                -
                                                - - - - - - - - - - - - - - - - - - - -
                                                - - - - Public - handleDisconnect - - - -
                                                - - handleDisconnect(client) -
                                                - -
                                                - -
                                                - Parameters : - - - - - - - - - - - - - - - - -
                                                NameOptional
                                                client - No -
                                                -
                                                -
                                                -
                                                -
                                                - Returns : void - -
                                                -
                                                - -
                                                -
                                                - - - - - - - - - - - - - - - - - - - - - - -
                                                - - - - handleIsNotWriting - - - -
                                                -handleIsNotWriting(client) -
                                                - Decorators : -
                                                - - @SubscribeMessage('isNotWriting')
                                                -
                                                -
                                                - -
                                                - -
                                                - Parameters : - - - - - - - - - - - - - - - - -
                                                NameOptional
                                                client - No -
                                                -
                                                -
                                                -
                                                -
                                                - Returns : void - -
                                                -
                                                - -
                                                -
                                                - - - - - - - - - - - - - - - - - - - - - - -
                                                - - - - handleIsWriting - - - -
                                                -handleIsWriting(client, data: User) -
                                                - Decorators : -
                                                - - @SubscribeMessage('isWriting')
                                                -
                                                -
                                                - -
                                                - -
                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                NameTypeOptional
                                                client - - No -
                                                data - User - - No -
                                                -
                                                -
                                                -
                                                -
                                                - Returns : void - -
                                                -
                                                - -
                                                -
                                                - - - - - - - - - - - - - - - - - - - - - - -
                                                - - - - onMessage - - - -
                                                -onMessage(client: any, data: Message) -
                                                - Decorators : -
                                                - - @SubscribeMessage('messages')
                                                -
                                                -
                                                - -
                                                - -
                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                NameTypeOptional
                                                client - any - - No -
                                                data - Message - - No -
                                                -
                                                -
                                                -
                                                - -
                                                - -
                                                -
                                                -
                                                - - - - - - -
                                                - - -
                                                -
                                                import {
                                                -  OnGatewayConnection,
                                                -  OnGatewayDisconnect,
                                                -  OnGatewayInit,
                                                -  SubscribeMessage,
                                                -  WebSocketGateway,
                                                -  WebSocketServer,
                                                -  WsResponse,
                                                -} from '@nestjs/websockets';
                                                -import { Observable, of } from 'rxjs';
                                                -import { Message } from './interfaces/message';
                                                -import { User } from './interfaces/user';
                                                -import { ChatService } from './chat.service';
                                                -
                                                -export enum ChatEvents {
                                                -  CONNECTED = 'connected',
                                                -  DISCONNECTED = 'disconnected',
                                                -  NEW_MESSAGE = 'newMessage',
                                                -  IS_WRITING = 'isWriting',
                                                -  IS_NOT_WRITING = 'isNotWriting',
                                                -}
                                                -// https://github.com/djjorik/angular-chat/blob/master/server/events.gateway.ts
                                                -@WebSocketGateway({ namespace: 'chat' })
                                                -export class ChatGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
                                                -  @WebSocketServer()
                                                -  server;
                                                -
                                                -  constructor(private chatService: ChatService) {}
                                                -
                                                -  public afterInit(server) {}
                                                -
                                                -  public handleConnection(client) {
                                                -    const event = 'connected';
                                                -    client.emit(event, { message: 'Hello...' });
                                                -    client.broadcast.emit(event, {
                                                -      message: `${client.client.conn.id} connected`,
                                                -    });
                                                -    // this.chatService.addConnectedUser()
                                                -  }
                                                -  public handleDisconnect(client) {
                                                -    const event = 'disconnected';
                                                -    client.broadcast.emit(event, {
                                                -      message: `${client.client.conn.id} disconnected`,
                                                -    });
                                                -    // this.chatService.removeConnectedUser();
                                                -  }
                                                -
                                                -  @SubscribeMessage('messages')
                                                -  onMessage(client: any, data: Message): Observable<WsResponse<Message>> {
                                                -    const event = 'newMessage';
                                                -    client.broadcast.emit({ event, data });
                                                -    return of({ event, data });
                                                -  }
                                                -
                                                -  @SubscribeMessage('isWriting')
                                                -  handleIsWriting(client, data: User) {
                                                -    const event = 'isWriting';
                                                -    client.broadcast.emit({ event, data });
                                                -  }
                                                -
                                                -  @SubscribeMessage('isNotWriting')
                                                -  handleIsNotWriting(client) {
                                                -    const event = 'isNotWriting';
                                                -    client.broadcast.emit({ event });
                                                -  }
                                                -}
                                                -
                                                -// https://github.com/Pinedo11/nestDemo-ChatServer/tree/master/src/chat
                                                -// https://pusher.com/tutorials/chat-bot-nestjs
                                                -// redis  https://github.com/chanlito/simple-todos/blob/master/server/app/app.gateway.ts
                                                -
                                                -
                                                -
                                                - - - - - - - -
                                                -
                                                -

                                                result-matching ""

                                                -
                                                  -
                                                  -
                                                  -

                                                  No results matching ""

                                                  -
                                                  -
                                                  -
                                                  - -
                                                  -
                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ChatMessage.html b/docs/classes/ChatMessage.html deleted file mode 100644 index 4ff106add..000000000 --- a/docs/classes/ChatMessage.html +++ /dev/null @@ -1,900 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                  -
                                                  - - -
                                                  -
                                                  - - - - - - - - - - - - - - - -
                                                  -
                                                  -

                                                  -

                                                  File

                                                  -

                                                  -

                                                  - libs/chat-box/src/lib/chat-message.model.ts -

                                                  - - - - - -
                                                  -

                                                  Index

                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                  -
                                                  Properties
                                                  -
                                                  -
                                                    -
                                                  • - Public - Readonly - content -
                                                  • -
                                                  • - Public - Readonly - direction -
                                                  • -
                                                  • - Public - Readonly - Optional - from -
                                                  • -
                                                  • - Public - Readonly - isRead -
                                                  • -
                                                  • - Public - Readonly - Optional - mode -
                                                  • -
                                                  • - Public - Readonly - timestamp -
                                                  • -
                                                  • - Public - Readonly - Optional - to -
                                                  • -
                                                  -
                                                  -
                                                  Methods
                                                  -
                                                  - -
                                                  -
                                                  Accessors
                                                  -
                                                  - -
                                                  -
                                                  - -
                                                  -

                                                  Constructor

                                                  - - - - - - - - - - - - - -
                                                  -constructor(init?: Partial>) -
                                                  - -
                                                  -
                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                  NameTypeOptional
                                                  init - Partial<ChatMessage<T>> - - Yes -
                                                  -
                                                  -
                                                  -
                                                  - -
                                                  - -

                                                  - Properties -

                                                  - - - - - - - - - - - - - - - - - -
                                                  - - - - Public - Readonly - content - - - -
                                                  - content: T - -
                                                  - Type : T - -
                                                  - -
                                                  - - - - - - - - - - - - - - - - - -
                                                  - - - - Public - Readonly - direction - - - -
                                                  - direction: DirectionType - -
                                                  - Type : DirectionType - -
                                                  - -
                                                  - - - - - - - - - - - - - - - - - -
                                                  - - - - Public - Readonly - Optional - from - - - -
                                                  - from: Subject - -
                                                  - Type : Subject - -
                                                  - -
                                                  - - - - - - - - - - - - - - - - - -
                                                  - - - - Public - Readonly - isRead - - - -
                                                  - isRead: boolean - -
                                                  - Type : boolean - -
                                                  - -
                                                  - - - - - - - - - - - - - - - - - -
                                                  - - - - Public - Readonly - Optional - mode - - - -
                                                  - mode: ModeType - -
                                                  - Type : ModeType - -
                                                  - -
                                                  - - - - - - - - - - - - - - - - - -
                                                  - - - - Public - Readonly - timestamp - - - -
                                                  - timestamp: Date - -
                                                  - Type : Date - -
                                                  - -
                                                  - - - - - - - - - - - - - - - - - -
                                                  - - - - Public - Readonly - Optional - to - - - -
                                                  - to: Subject - -
                                                  - Type : Subject - -
                                                  - -
                                                  -
                                                  - -
                                                  - -

                                                  - Methods -

                                                  - - - - - - - - - - - - - - - - - - - -
                                                  - - - - Static - fromBotMessage - - - -
                                                  - - fromBotMessage(content: string) -
                                                  - -
                                                  - -
                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                  NameTypeOptional
                                                  content - string - - No -
                                                  -
                                                  -
                                                  -
                                                  - -
                                                  - -
                                                  -
                                                  - - - - - - - - - - - - - - - - - - - -
                                                  - - - - Static - fromUserMessage - - - -
                                                  - - fromUserMessage(content: string, mode: ModeType) -
                                                  - -
                                                  - -
                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                  NameTypeOptional
                                                  content - string - - No -
                                                  mode - ModeType - - No -
                                                  -
                                                  -
                                                  -
                                                  - -
                                                  - -
                                                  -
                                                  - - - - - - - - - - - - - - - - - - - -
                                                  - - - - Public - render - - - -
                                                  - - render() -
                                                  - -
                                                  - -
                                                  - Returns : string - -
                                                  -
                                                  -
                                                  - - - - - - -
                                                  -

                                                  - Accessors -

                                                  - - - - - - - - - - - - - - -
                                                  - - isIncoming -
                                                  - getisIncoming() -
                                                  - -
                                                  - - - - - - - - - - - - - - -
                                                  - - isOutgoing -
                                                  - getisOutgoing() -
                                                  - -
                                                  -
                                                  -
                                                  - - -
                                                  -
                                                  export enum SubjectType {
                                                  -  BOT,
                                                  -  USER,
                                                  -  ADMIN,
                                                  -  GROUP,
                                                  -  ALL,
                                                  -}
                                                  -
                                                  -export enum DirectionType {
                                                  -  INCOMING,
                                                  -  OUTGOING,
                                                  -}
                                                  -
                                                  -export enum ModeType {
                                                  -  SPEAK,
                                                  -  TYPE,
                                                  -}
                                                  -export class Subject {
                                                  -  public readonly type: SubjectType;
                                                  -  public readonly who?: string; // | User with AvatarUrl?
                                                  -  constructor(type: SubjectType, who?: string) {
                                                  -    this.type = type;
                                                  -    if (who) {
                                                  -      this.who = who;
                                                  -    }
                                                  -  }
                                                  -}
                                                  -
                                                  -export abstract class UiAction {
                                                  -  // abstract get id(): number | string;
                                                  -  // type: choice | card | button | yesNo ?
                                                  -  [key: string]: any;
                                                  -  abstract render(): string;
                                                  -  constructor(init?: Partial<UiAction>) {
                                                  -    Object.assign(this, init);
                                                  -  }
                                                  -}
                                                  -
                                                  -export class ChatMessage<T extends UiAction | string> {
                                                  -  public readonly direction: DirectionType;
                                                  -  public readonly from?: Subject;
                                                  -  public readonly to?: Subject;
                                                  -  public readonly content: T;
                                                  -  public readonly timestamp: Date;
                                                  -  public readonly isRead: boolean;
                                                  -  public readonly mode?: ModeType;
                                                  -
                                                  -  constructor(init?: Partial<ChatMessage<T>>) {
                                                  -    Object.assign(this, init);
                                                  -  }
                                                  -
                                                  -  static fromBotMessage(content: string) {
                                                  -    return new ChatMessage({
                                                  -      direction: DirectionType.INCOMING,
                                                  -      from: new Subject(SubjectType.BOT),
                                                  -      to: new Subject(SubjectType.USER),
                                                  -      content: content,
                                                  -      timestamp: new Date(),
                                                  -      isRead: false,
                                                  -    });
                                                  -  }
                                                  -
                                                  -  static fromUserMessage(content: string, mode: ModeType) {
                                                  -    return new ChatMessage({
                                                  -      direction: DirectionType.OUTGOING,
                                                  -      from: new Subject(SubjectType.USER),
                                                  -      to: new Subject(SubjectType.BOT),
                                                  -      content: content,
                                                  -      timestamp: new Date(),
                                                  -      isRead: true,
                                                  -      mode: mode,
                                                  -    });
                                                  -  }
                                                  -
                                                  -  public get isIncoming(): boolean {
                                                  -    return this.direction === DirectionType.INCOMING;
                                                  -  }
                                                  -
                                                  -  public get isOutgoing(): boolean {
                                                  -    return this.direction === DirectionType.OUTGOING;
                                                  -  }
                                                  -
                                                  -  public render(): string {
                                                  -    if (this.content instanceof UiAction) {
                                                  -      return this.content.render();
                                                  -    } else {
                                                  -      return this.content as string; // FIXME
                                                  -    }
                                                  -  }
                                                  -}
                                                  -
                                                  -export class Conversation {
                                                  -  public id: string; // It could be generated string or room name.
                                                  -  messages: ChatMessage<any>[];
                                                  -  constructor(id: string, messages: ChatMessage<any>[] = []) {
                                                  -    this.id = id;
                                                  -    this.messages = messages;
                                                  -  }
                                                  -}
                                                  -
                                                  -
                                                  -
                                                  - - - - - - - -
                                                  -
                                                  -

                                                  result-matching ""

                                                  -
                                                    -
                                                    -
                                                    -

                                                    No results matching ""

                                                    -
                                                    -
                                                    -
                                                    - -
                                                    -
                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/CloseConversation.html b/docs/classes/CloseConversation.html deleted file mode 100644 index 9a260cadf..000000000 --- a/docs/classes/CloseConversation.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                    -
                                                    - - -
                                                    -
                                                    - - - - - - - - - - - - - - - -
                                                    -
                                                    -

                                                    -

                                                    File

                                                    -

                                                    -

                                                    - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                    - - - - - -
                                                    -

                                                    Index

                                                    - - - - - - - - - - - - - - - -
                                                    -
                                                    Properties
                                                    -
                                                    -
                                                      -
                                                    • - Public - Readonly - payload -
                                                    • -
                                                    • - Static - Readonly - type -
                                                    • -
                                                    -
                                                    -
                                                    - -
                                                    -

                                                    Constructor

                                                    - - - - - - - - - - - - - -
                                                    -constructor(payload: literal type) -
                                                    - -
                                                    -
                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                    NameTypeOptional
                                                    payload - literal type - - No -
                                                    -
                                                    -
                                                    -
                                                    - -
                                                    - -

                                                    - Properties -

                                                    - - - - - - - - - - - - - - - - - -
                                                    - - - - Public - Readonly - payload - - - -
                                                    - payload: literal type - -
                                                    - Type : literal type - -
                                                    - -
                                                    - - - - - - - - - - - - - - - - - - - - -
                                                    - - - - Static - Readonly - type - - - -
                                                    - type: string - -
                                                    - Type : string - -
                                                    - Default value : '[ChatBox] CloseConversation' -
                                                    - -
                                                    -
                                                    - - - - - - - -
                                                    - - -
                                                    -
                                                    import { ChatMessage, Subject } from '../chat-message.model';
                                                    -
                                                    -export interface SynthesisVoice {
                                                    -  voice: SpeechSynthesisVoice;
                                                    -  volume: number;
                                                    -  rate: number;
                                                    -  pitch: number;
                                                    -}
                                                    -
                                                    -// Actions
                                                    -export class FetchConversations {
                                                    -  static readonly type = '[ChatBox] FetchConversations';
                                                    -}
                                                    -
                                                    -export class CreateNewConversation {
                                                    -  static readonly type = '[ChatBox] CreateNewConversation';
                                                    -}
                                                    -
                                                    -export class SwitchConversation {
                                                    -  static readonly type = '[ChatBox] SwitchConversation';
                                                    -  constructor(public readonly payload: { conversationId: string }) {}
                                                    -}
                                                    -
                                                    -export class SaveConversation {
                                                    -  static readonly type = '[ChatBox] SaveConversation';
                                                    -  constructor(public readonly payload: { conversationId: string }) {}
                                                    -}
                                                    -
                                                    -export class CloseConversation {
                                                    -  static readonly type = '[ChatBox] CloseConversation';
                                                    -  constructor(public readonly payload: { conversationId: string }) {}
                                                    -}
                                                    -
                                                    -export class AddMessage {
                                                    -  static readonly type = '[ChatBox] AddMessage';
                                                    -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                    -}
                                                    -
                                                    -export class StartVoiceCommand {
                                                    -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                    -}
                                                    -export class SendMessage {
                                                    -  static readonly type = '[ChatBox] SendMessage';
                                                    -  constructor(public readonly payload: { message: string }) {}
                                                    -}
                                                    -export class SendTyping {
                                                    -  static readonly type = '[ChatBox] Typing';
                                                    -  constructor(public readonly payload: Subject) {}
                                                    -}
                                                    -
                                                    -export class MarkAsRead {
                                                    -  static readonly type = '[ChatBox] MarkAsRead';
                                                    -}
                                                    -
                                                    -
                                                    -
                                                    - - - - - - - -
                                                    -
                                                    -

                                                    result-matching ""

                                                    -
                                                      -
                                                      -
                                                      -

                                                      No results matching ""

                                                      -
                                                      -
                                                      -
                                                      - -
                                                      -
                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Color.html b/docs/classes/Color.html deleted file mode 100644 index 0c6d8f23e..000000000 --- a/docs/classes/Color.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                      -
                                                      - - -
                                                      -
                                                      - - - - - - - - - - - - - - - -
                                                      -
                                                      -

                                                      -

                                                      File

                                                      -

                                                      -

                                                      - libs/widgets/src/lib/demo-data/color.interface.ts -

                                                      - - - - - -
                                                      -

                                                      Index

                                                      - - - - - - - - - - - - - - - -
                                                      -
                                                      Properties
                                                      -
                                                      - -
                                                      -
                                                      - - -
                                                      - -

                                                      - Properties -

                                                      - - - - - - - - - - - - - - - - - -
                                                      - - - - code - - - -
                                                      - code: string - -
                                                      - Type : string - -
                                                      - -
                                                      - - - - - - - - - - - - - - - - - -
                                                      - - - - name - - - -
                                                      - name: string - -
                                                      - Type : string - -
                                                      - -
                                                      -
                                                      - - - - - - - -
                                                      - - -
                                                      -
                                                      export class Color {
                                                      -  name: string;
                                                      -  code: string;
                                                      -}
                                                      -
                                                      -
                                                      -
                                                      - - - - - - - -
                                                      -
                                                      -

                                                      result-matching ""

                                                      -
                                                        -
                                                        -
                                                        -

                                                        No results matching ""

                                                        -
                                                        -
                                                        -
                                                        - -
                                                        -
                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ConnectWebSocket.html b/docs/classes/ConnectWebSocket.html deleted file mode 100644 index 1e4e23ce2..000000000 --- a/docs/classes/ConnectWebSocket.html +++ /dev/null @@ -1,404 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                        -
                                                        - - -
                                                        -
                                                        - - - - - - - - - - - - - - - -
                                                        -
                                                        -

                                                        -

                                                        File

                                                        -

                                                        -

                                                        - libs/socketio-plugin/src/lib/symbols.ts -

                                                        - -

                                                        -

                                                        Description

                                                        -

                                                        -

                                                        -

                                                        Action to connect to the websocket. Optionally pass a URL.

                                                        - -

                                                        - - - - -
                                                        -

                                                        Index

                                                        - - - - - - - - - - - - - - - -
                                                        -
                                                        Properties
                                                        -
                                                        -
                                                          -
                                                        • - Public - Optional - payload -
                                                        • -
                                                        • - Static - Readonly - type -
                                                        • -
                                                        -
                                                        -
                                                        - -
                                                        -

                                                        Constructor

                                                        - - - - - - - - - - - - - -
                                                        -constructor(payload?: NgxsWebsocketPluginOptions) -
                                                        - -
                                                        -
                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                        NameTypeOptional
                                                        payload - NgxsWebsocketPluginOptions - - Yes -
                                                        -
                                                        -
                                                        -
                                                        - -
                                                        - -

                                                        - Properties -

                                                        - - - - - - - - - - - - - - - - - -
                                                        - - - - Public - Optional - payload - - - -
                                                        - payload: NgxsWebsocketPluginOptions - -
                                                        - Type : NgxsWebsocketPluginOptions - -
                                                        - -
                                                        - - - - - - - - - - - - - - - - - - - - -
                                                        - - - - Static - Readonly - type - - - -
                                                        - type: string - -
                                                        - Type : string - -
                                                        - Default value : '[Websocket] Connect' -
                                                        - -
                                                        -
                                                        - - - - - - - -
                                                        - - -
                                                        -
                                                        import { InjectionToken } from '@angular/core';
                                                        -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                        -
                                                        -export const NGXS_WEBSOCKET_OPTIONS = new InjectionToken('NGXS_WEBSOCKET_OPTIONS');
                                                        -
                                                        -export interface NgxsWebsocketPluginOptions {
                                                        -  /**
                                                        -   * URL of the websocket.
                                                        -   */
                                                        -  url?: string;
                                                        -
                                                        -  connectOpts?: ConnectOpts;
                                                        -
                                                        -  tokenFn?: () => string;
                                                        -
                                                        -  /**
                                                        -   * The property name to distigunish this type for the store.
                                                        -   * Default: 'type'
                                                        -   */
                                                        -  typeKey?: string;
                                                        -
                                                        -  /**
                                                        -   * Interval to try and reconnect.
                                                        -   * Default: 5000
                                                        -   */
                                                        -  reconnectInterval?: number;
                                                        -
                                                        -  /**
                                                        -   * Number of reconnect attemps.
                                                        -   * Default: 10
                                                        -   */
                                                        -  reconnectAttempts?: number;
                                                        -
                                                        -  /**
                                                        -   * Serializer to call before sending messages
                                                        -   * Default: `json.stringify`
                                                        -   */
                                                        -  serializer?: (data: any) => string;
                                                        -
                                                        -  /**
                                                        -   * Deseralizer before publishing the message.
                                                        -   */
                                                        -  deserializer?: (e: MessageEvent) => any;
                                                        -}
                                                        -
                                                        -export function noop(arg) {
                                                        -  return function() {};
                                                        -}
                                                        -
                                                        -/**
                                                        - * Action to connect to the websocket. Optionally pass a URL.
                                                        - */
                                                        -export class ConnectWebSocket {
                                                        -  static readonly type = '[Websocket] Connect';
                                                        -  constructor(public payload?: NgxsWebsocketPluginOptions) {}
                                                        -}
                                                        -
                                                        -/**
                                                        - * Action triggered when a error ocurrs
                                                        - */
                                                        -export class WebsocketMessageError {
                                                        -  static readonly type = '[Websocket] Message Error';
                                                        -  constructor(public payload: any) {}
                                                        -}
                                                        -
                                                        -/**
                                                        - * Action to disconnect the websocket.
                                                        - */
                                                        -export class DisconnectWebSocket {
                                                        -  static readonly type = '[Websocket] Disconnect';
                                                        -}
                                                        -
                                                        -/**
                                                        - * Action to send to the server.
                                                        - */
                                                        -export class SendWebSocketAction {
                                                        -  static readonly type = '[Websocket] Send Action';
                                                        -  constructor(public payload: any) {}
                                                        -}
                                                        -
                                                        -export class WebSocketConnected {
                                                        -  static readonly type = '[Websocket] Connected';
                                                        -}
                                                        -
                                                        -export class WebSocketDisconnected {
                                                        -  static readonly type = '[Websocket] Disconnected';
                                                        -}
                                                        -
                                                        -export class AuthenticateWebSocket {
                                                        -  static readonly type = '[Websocket] authenticate';
                                                        -}
                                                        -
                                                        -
                                                        -
                                                        - - - - - - - -
                                                        -
                                                        -

                                                        result-matching ""

                                                        -
                                                          -
                                                          -
                                                          -

                                                          No results matching ""

                                                          -
                                                          -
                                                          -
                                                          - -
                                                          -
                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Conversation.html b/docs/classes/Conversation.html deleted file mode 100644 index 732441c0c..000000000 --- a/docs/classes/Conversation.html +++ /dev/null @@ -1,406 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                          -
                                                          - - -
                                                          -
                                                          - - - - - - - - - - - - - - - -
                                                          -
                                                          -

                                                          -

                                                          File

                                                          -

                                                          -

                                                          - libs/chat-box/src/lib/chat-message.model.ts -

                                                          - - - - - -
                                                          -

                                                          Index

                                                          - - - - - - - - - - - - - - - -
                                                          -
                                                          Properties
                                                          -
                                                          - -
                                                          -
                                                          - -
                                                          -

                                                          Constructor

                                                          - - - - - - - - - - - - - -
                                                          -constructor(id: string, messages: ChatMessage[]) -
                                                          - -
                                                          -
                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                          NameTypeOptional
                                                          id - string - - No -
                                                          messages - ChatMessage<any>[] - - No -
                                                          -
                                                          -
                                                          -
                                                          - -
                                                          - -

                                                          - Properties -

                                                          - - - - - - - - - - - - - - - - - -
                                                          - - - - Public - id - - - -
                                                          - id: string - -
                                                          - Type : string - -
                                                          - -
                                                          - - - - - - - - - - - - - - - - - -
                                                          - - - - messages - - - -
                                                          - messages: ChatMessage<any>[] - -
                                                          - Type : ChatMessage<any>[] - -
                                                          - -
                                                          -
                                                          - - - - - - - -
                                                          - - -
                                                          -
                                                          export enum SubjectType {
                                                          -  BOT,
                                                          -  USER,
                                                          -  ADMIN,
                                                          -  GROUP,
                                                          -  ALL,
                                                          -}
                                                          -
                                                          -export enum DirectionType {
                                                          -  INCOMING,
                                                          -  OUTGOING,
                                                          -}
                                                          -
                                                          -export enum ModeType {
                                                          -  SPEAK,
                                                          -  TYPE,
                                                          -}
                                                          -export class Subject {
                                                          -  public readonly type: SubjectType;
                                                          -  public readonly who?: string; // | User with AvatarUrl?
                                                          -  constructor(type: SubjectType, who?: string) {
                                                          -    this.type = type;
                                                          -    if (who) {
                                                          -      this.who = who;
                                                          -    }
                                                          -  }
                                                          -}
                                                          -
                                                          -export abstract class UiAction {
                                                          -  // abstract get id(): number | string;
                                                          -  // type: choice | card | button | yesNo ?
                                                          -  [key: string]: any;
                                                          -  abstract render(): string;
                                                          -  constructor(init?: Partial<UiAction>) {
                                                          -    Object.assign(this, init);
                                                          -  }
                                                          -}
                                                          -
                                                          -export class ChatMessage<T extends UiAction | string> {
                                                          -  public readonly direction: DirectionType;
                                                          -  public readonly from?: Subject;
                                                          -  public readonly to?: Subject;
                                                          -  public readonly content: T;
                                                          -  public readonly timestamp: Date;
                                                          -  public readonly isRead: boolean;
                                                          -  public readonly mode?: ModeType;
                                                          -
                                                          -  constructor(init?: Partial<ChatMessage<T>>) {
                                                          -    Object.assign(this, init);
                                                          -  }
                                                          -
                                                          -  static fromBotMessage(content: string) {
                                                          -    return new ChatMessage({
                                                          -      direction: DirectionType.INCOMING,
                                                          -      from: new Subject(SubjectType.BOT),
                                                          -      to: new Subject(SubjectType.USER),
                                                          -      content: content,
                                                          -      timestamp: new Date(),
                                                          -      isRead: false,
                                                          -    });
                                                          -  }
                                                          -
                                                          -  static fromUserMessage(content: string, mode: ModeType) {
                                                          -    return new ChatMessage({
                                                          -      direction: DirectionType.OUTGOING,
                                                          -      from: new Subject(SubjectType.USER),
                                                          -      to: new Subject(SubjectType.BOT),
                                                          -      content: content,
                                                          -      timestamp: new Date(),
                                                          -      isRead: true,
                                                          -      mode: mode,
                                                          -    });
                                                          -  }
                                                          -
                                                          -  public get isIncoming(): boolean {
                                                          -    return this.direction === DirectionType.INCOMING;
                                                          -  }
                                                          -
                                                          -  public get isOutgoing(): boolean {
                                                          -    return this.direction === DirectionType.OUTGOING;
                                                          -  }
                                                          -
                                                          -  public render(): string {
                                                          -    if (this.content instanceof UiAction) {
                                                          -      return this.content.render();
                                                          -    } else {
                                                          -      return this.content as string; // FIXME
                                                          -    }
                                                          -  }
                                                          -}
                                                          -
                                                          -export class Conversation {
                                                          -  public id: string; // It could be generated string or room name.
                                                          -  messages: ChatMessage<any>[];
                                                          -  constructor(id: string, messages: ChatMessage<any>[] = []) {
                                                          -    this.id = id;
                                                          -    this.messages = messages;
                                                          -  }
                                                          -}
                                                          -
                                                          -
                                                          -
                                                          - - - - - - - -
                                                          -
                                                          -

                                                          result-matching ""

                                                          -
                                                            -
                                                            -
                                                            -

                                                            No results matching ""

                                                            -
                                                            -
                                                            -
                                                            - -
                                                            -
                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/CreateNewConversation.html b/docs/classes/CreateNewConversation.html deleted file mode 100644 index 540ad4f2a..000000000 --- a/docs/classes/CreateNewConversation.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                            -
                                                            - - -
                                                            -
                                                            - - - - - - - - - - - - - - - -
                                                            -
                                                            -

                                                            -

                                                            File

                                                            -

                                                            -

                                                            - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                            - - - - - -
                                                            -

                                                            Index

                                                            - - - - - - - - - - - - - - - -
                                                            -
                                                            Properties
                                                            -
                                                            -
                                                              -
                                                            • - Static - Readonly - type -
                                                            • -
                                                            -
                                                            -
                                                            - - -
                                                            - -

                                                            - Properties -

                                                            - - - - - - - - - - - - - - - - - - - - -
                                                            - - - - Static - Readonly - type - - - -
                                                            - type: string - -
                                                            - Type : string - -
                                                            - Default value : '[ChatBox] CreateNewConversation' -
                                                            - -
                                                            -
                                                            - - - - - - - -
                                                            - - -
                                                            -
                                                            import { ChatMessage, Subject } from '../chat-message.model';
                                                            -
                                                            -export interface SynthesisVoice {
                                                            -  voice: SpeechSynthesisVoice;
                                                            -  volume: number;
                                                            -  rate: number;
                                                            -  pitch: number;
                                                            -}
                                                            -
                                                            -// Actions
                                                            -export class FetchConversations {
                                                            -  static readonly type = '[ChatBox] FetchConversations';
                                                            -}
                                                            -
                                                            -export class CreateNewConversation {
                                                            -  static readonly type = '[ChatBox] CreateNewConversation';
                                                            -}
                                                            -
                                                            -export class SwitchConversation {
                                                            -  static readonly type = '[ChatBox] SwitchConversation';
                                                            -  constructor(public readonly payload: { conversationId: string }) {}
                                                            -}
                                                            -
                                                            -export class SaveConversation {
                                                            -  static readonly type = '[ChatBox] SaveConversation';
                                                            -  constructor(public readonly payload: { conversationId: string }) {}
                                                            -}
                                                            -
                                                            -export class CloseConversation {
                                                            -  static readonly type = '[ChatBox] CloseConversation';
                                                            -  constructor(public readonly payload: { conversationId: string }) {}
                                                            -}
                                                            -
                                                            -export class AddMessage {
                                                            -  static readonly type = '[ChatBox] AddMessage';
                                                            -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                            -}
                                                            -
                                                            -export class StartVoiceCommand {
                                                            -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                            -}
                                                            -export class SendMessage {
                                                            -  static readonly type = '[ChatBox] SendMessage';
                                                            -  constructor(public readonly payload: { message: string }) {}
                                                            -}
                                                            -export class SendTyping {
                                                            -  static readonly type = '[ChatBox] Typing';
                                                            -  constructor(public readonly payload: Subject) {}
                                                            -}
                                                            -
                                                            -export class MarkAsRead {
                                                            -  static readonly type = '[ChatBox] MarkAsRead';
                                                            -}
                                                            -
                                                            -
                                                            -
                                                            - - - - - - - -
                                                            -
                                                            -

                                                            result-matching ""

                                                            -
                                                              -
                                                              -
                                                              -

                                                              No results matching ""

                                                              -
                                                              -
                                                              -
                                                              - -
                                                              -
                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/CreateNotificationDto.html b/docs/classes/CreateNotificationDto.html deleted file mode 100644 index 1603aae13..000000000 --- a/docs/classes/CreateNotificationDto.html +++ /dev/null @@ -1,442 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                              -
                                                              - - -
                                                              -
                                                              - - - - - - - - - - - - - - - -
                                                              -
                                                              -

                                                              -

                                                              File

                                                              -

                                                              -

                                                              - apps/api/src/notifications/dto/create-notification.dto.ts -

                                                              - - - - - -
                                                              -

                                                              Index

                                                              - - - - - - - - - - - - - - - -
                                                              -
                                                              Properties
                                                              -
                                                              - -
                                                              -
                                                              - - -
                                                              - -

                                                              - Properties -

                                                              - - - - - - - - - - - - - - - - - - - - -
                                                              - - - - Optional - color - - - -
                                                              - color: NotificationColor - -
                                                              - Type : NotificationColor - -
                                                              - Decorators : -
                                                              - - @ApiModelProperty({type: String, enum: NotificationColor})
                                                              @IsString()
                                                              @IsNotEmpty()
                                                              @IsIn(undefined)
                                                              -
                                                              -
                                                              - -
                                                              - - - - - - - - - - - - - - - - - - - - -
                                                              - - - - icon - - - -
                                                              - icon: NotificationIcon - -
                                                              - Type : NotificationIcon - -
                                                              - Decorators : -
                                                              - - @ApiModelProperty({type: String, enum: NotificationIcon, default: 'notifications'})
                                                              @IsString()
                                                              @IsNotEmpty()
                                                              @IsEnum(NotificationIcon)
                                                              -
                                                              -
                                                              - -
                                                              - - - - - - - - - - - - - - - - - - - - -
                                                              - - - - message - - - -
                                                              - message: string - -
                                                              - Type : string - -
                                                              - Decorators : -
                                                              - - @ApiModelProperty({type: String, minLength: 10, maxLength: 100})
                                                              @IsString()
                                                              @IsNotEmpty()
                                                              -
                                                              -
                                                              - -
                                                              - - - - - - - - - - - - - - - - - - - - - - - -
                                                              - - - - read - - - -
                                                              - read: boolean - -
                                                              - Type : boolean - -
                                                              - Default value : false -
                                                              - Decorators : -
                                                              - - @ApiModelProperty({type: Boolean, default: undefined})
                                                              @IsBoolean()
                                                              @IsNotEmpty()
                                                              -
                                                              -
                                                              - -
                                                              - - - - - - - - - - - - - - - - - - - - -
                                                              - - - - userId - - - -
                                                              - userId: string - -
                                                              - Type : string - -
                                                              - Decorators : -
                                                              - - @ApiModelProperty({type: String, minLength: 8, maxLength: 20, default: 'all'})
                                                              @IsAscii()
                                                              @IsNotEmpty()
                                                              @MinLength(3)
                                                              @MaxLength(20)
                                                              -
                                                              -
                                                              - -
                                                              -
                                                              - - - - - - - -
                                                              - - -
                                                              -
                                                              import { ApiModelProperty } from '@nestjs/swagger';
                                                              -import { IsAscii, IsBoolean, IsEnum, IsIn, IsNotEmpty, IsString, MaxLength, MinLength } from 'class-validator';
                                                              -import { NotificationColor, NotificationIcon } from '../notification.entity';
                                                              -
                                                              -export class CreateNotificationDto {
                                                              -  @ApiModelProperty({ type: String, enum: NotificationIcon, default: 'notifications' })
                                                              -  @IsString()
                                                              -  @IsNotEmpty()
                                                              -  @IsEnum(NotificationIcon)
                                                              -  icon: NotificationIcon;
                                                              -
                                                              -  @ApiModelProperty({ type: String, minLength: 10, maxLength: 100 })
                                                              -  @IsString()
                                                              -  @IsNotEmpty()
                                                              -  message: string;
                                                              -
                                                              -  @ApiModelProperty({ type: Boolean, default: false })
                                                              -  @IsBoolean()
                                                              -  @IsNotEmpty()
                                                              -  read: boolean = false;
                                                              -
                                                              -  @ApiModelProperty({ type: String, enum: NotificationColor })
                                                              -  @IsString()
                                                              -  @IsNotEmpty()
                                                              -  @IsIn(['warn', 'accent', 'primary'])
                                                              -  color?: NotificationColor;
                                                              -
                                                              -  @ApiModelProperty({ type: String, minLength: 8, maxLength: 20, default: 'all' })
                                                              -  @IsAscii()
                                                              -  @IsNotEmpty()
                                                              -  @MinLength(3)
                                                              -  @MaxLength(20)
                                                              -  userId: string;
                                                              -}
                                                              -
                                                              -
                                                              -
                                                              - - - - - - - -
                                                              -
                                                              -

                                                              result-matching ""

                                                              -
                                                                -
                                                                -
                                                                -

                                                                No results matching ""

                                                                -
                                                                -
                                                                -
                                                                - -
                                                                -
                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/CreateUserDto.html b/docs/classes/CreateUserDto.html deleted file mode 100644 index 7d4e0957d..000000000 --- a/docs/classes/CreateUserDto.html +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                -
                                                                - - -
                                                                -
                                                                - - - - - - - - - - - - - - - -
                                                                -
                                                                -

                                                                -

                                                                File

                                                                -

                                                                -

                                                                - apps/api/src/auth/dto/create-user.dto.ts -

                                                                - - - - - -
                                                                -

                                                                Index

                                                                - - - - - - - - - - - - - - - -
                                                                -
                                                                Properties
                                                                -
                                                                - -
                                                                -
                                                                - - -
                                                                - -

                                                                - Properties -

                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                - - - - Readonly - email - - - -
                                                                - email: string - -
                                                                - Type : string - -
                                                                - Decorators : -
                                                                - - @ApiModelProperty({type: String, minLength: 10, maxLength: 100})
                                                                @IsEmail()
                                                                @IsNotEmpty()
                                                                -
                                                                -
                                                                - -
                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                - - - - Readonly - firstName - - - -
                                                                - firstName: string - -
                                                                - Type : string - -
                                                                - Decorators : -
                                                                - - @ApiModelProperty({type: String})
                                                                @IsString()
                                                                @IsNotEmpty()
                                                                -
                                                                -
                                                                - -
                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                - - - - Readonly - lastName - - - -
                                                                - lastName: string - -
                                                                - Type : string - -
                                                                - Decorators : -
                                                                - - @ApiModelProperty({type: String})
                                                                @IsString()
                                                                @IsNotEmpty()
                                                                -
                                                                -
                                                                - -
                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                - - - - Readonly - userId - - - -
                                                                - userId: string - -
                                                                - Type : string - -
                                                                - Decorators : -
                                                                - - @ApiModelProperty({type: String, minLength: 8, maxLength: 20})
                                                                @IsAscii()
                                                                @IsNotEmpty()
                                                                @MinLength(8)
                                                                @MaxLength(20)
                                                                @IsString()
                                                                @IsNotEmpty()
                                                                -
                                                                -
                                                                - -
                                                                -
                                                                - - - - - - - -
                                                                - - -
                                                                -
                                                                import { IsAscii, IsEmail, IsNotEmpty, IsString, MaxLength, MinLength } from 'class-validator';
                                                                -import { ApiModelProperty } from '@nestjs/swagger';
                                                                -
                                                                -export class CreateUserDto {
                                                                -  @ApiModelProperty({ type: String })
                                                                -  @IsString()
                                                                -  @IsNotEmpty()
                                                                -  readonly firstName: string;
                                                                -
                                                                -  @ApiModelProperty({ type: String })
                                                                -  @IsString()
                                                                -  @IsNotEmpty()
                                                                -  readonly lastName: string;
                                                                -
                                                                -  @ApiModelProperty({ type: String, minLength: 10, maxLength: 100 })
                                                                -  @IsEmail()
                                                                -  @IsNotEmpty()
                                                                -  readonly email: string;
                                                                -
                                                                -  @ApiModelProperty({ type: String, minLength: 8, maxLength: 20 })
                                                                -  @IsAscii()
                                                                -  @IsNotEmpty()
                                                                -  @MinLength(8)
                                                                -  @MaxLength(20)
                                                                -  @IsString()
                                                                -  @IsNotEmpty()
                                                                -  readonly userId: string;
                                                                -}
                                                                -
                                                                -
                                                                -
                                                                - - - - - - - -
                                                                -
                                                                -

                                                                result-matching ""

                                                                -
                                                                  -
                                                                  -
                                                                  -

                                                                  No results matching ""

                                                                  -
                                                                  -
                                                                  -
                                                                  - -
                                                                  -
                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/CrudController.html b/docs/classes/CrudController.html deleted file mode 100644 index 3722c4c7f..000000000 --- a/docs/classes/CrudController.html +++ /dev/null @@ -1,709 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                  -
                                                                  - - -
                                                                  -
                                                                  - - - - - - - - - - - - - - - -
                                                                  -
                                                                  -

                                                                  -

                                                                  File

                                                                  -

                                                                  -

                                                                  - apps/api/src/core/crud/crud.controller.ts -

                                                                  - - - - - -
                                                                  -

                                                                  Index

                                                                  - - - - - - - - - - - - - - - -
                                                                  -
                                                                  Methods
                                                                  -
                                                                  - -
                                                                  -
                                                                  - -
                                                                  -

                                                                  Constructor

                                                                  - - - - - - - - - - - - - -
                                                                  - Protected - constructor(crudService: ICrudService) -
                                                                  - -
                                                                  -
                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                  NameTypeOptional
                                                                  crudService - ICrudService<T> - - No -
                                                                  -
                                                                  -
                                                                  -
                                                                  - - -
                                                                  - -

                                                                  - Methods -

                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                  - - - - Async - create - - - -
                                                                  - - create(entity: DeepPartial) -
                                                                  - Decorators : -
                                                                  - - @ApiOperation({title: 'Create new record'})
                                                                  @ApiResponse({status: undefined, description: 'The record has been successfully created.'})
                                                                  @ApiResponse({status: undefined, description: 'Invalid input, The response body may contain clues as to what went wrong'})
                                                                  @Post()
                                                                  -
                                                                  -
                                                                  - -
                                                                  - -
                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                  NameTypeOptional
                                                                  entity - DeepPartial<T> - - No -
                                                                  -
                                                                  -
                                                                  -
                                                                  -
                                                                  - Returns : Promise<T> - -
                                                                  -
                                                                  - -
                                                                  -
                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                  - - - - Async - delete - - - -
                                                                  - - delete(id: string) -
                                                                  - Decorators : -
                                                                  - - @ApiOperation({title: 'Delete record'})
                                                                  @ApiResponse({status: undefined, description: 'The record has been successfully deleted'})
                                                                  @ApiResponse({status: undefined, description: 'Record not found'})
                                                                  @Delete(':id')
                                                                  -
                                                                  -
                                                                  - -
                                                                  - -
                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                  NameTypeOptional
                                                                  id - string - - No -
                                                                  -
                                                                  -
                                                                  -
                                                                  -
                                                                  - Returns : Promise<any> - -
                                                                  -
                                                                  - -
                                                                  -
                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                  - - - - Async - findAll - - - -
                                                                  - - findAll(options?: any) -
                                                                  - Decorators : -
                                                                  - - @ApiOperation({title: 'find all'})
                                                                  @ApiResponse({status: undefined, description: 'All records', isArray: undefined})
                                                                  @Get()
                                                                  -
                                                                  -
                                                                  - -
                                                                  - -
                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                  NameTypeOptional
                                                                  options - any - - Yes -
                                                                  -
                                                                  -
                                                                  -
                                                                  -
                                                                  - Returns : Promise<> - -
                                                                  -
                                                                  - -
                                                                  -
                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                  - - - - Async - findById - - - -
                                                                  - - findById(id: string) -
                                                                  - Decorators : -
                                                                  - - @ApiOperation({title: 'Find by id'})
                                                                  @ApiResponse({status: undefined, description: 'Found one record'})
                                                                  @ApiResponse({status: undefined, description: 'Record not found'})
                                                                  @Get(':id')
                                                                  -
                                                                  -
                                                                  - -
                                                                  - -
                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                  NameTypeOptional
                                                                  id - string - - No -
                                                                  -
                                                                  -
                                                                  -
                                                                  -
                                                                  - Returns : Promise<T> - -
                                                                  -
                                                                  - -
                                                                  -
                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                  - - - - Async - update - - - -
                                                                  - - update(id: string, entity: DeepPartial) -
                                                                  - Decorators : -
                                                                  - - @ApiOperation({title: 'Update an existing record'})
                                                                  @ApiResponse({status: undefined, description: 'The record has been successfully edited.'})
                                                                  @ApiResponse({status: undefined, description: 'Record not found'})
                                                                  @ApiResponse({status: undefined, description: 'Invalid input, The response body may contain clues as to what went wrong'})
                                                                  @Put(':id')
                                                                  -
                                                                  -
                                                                  - -
                                                                  - -
                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                  NameTypeOptional
                                                                  id - string - - No -
                                                                  entity - DeepPartial<T> - - No -
                                                                  -
                                                                  -
                                                                  -
                                                                  -
                                                                  - Returns : Promise<any> - -
                                                                  -
                                                                  - -
                                                                  -
                                                                  -
                                                                  - - - - - - -
                                                                  - - -
                                                                  -
                                                                  import { Get, Post, Put, Delete, Body, Param, HttpStatus } from '@nestjs/common';
                                                                  -import { ApiOperation, ApiResponse } from '@nestjs/swagger';
                                                                  -import { Base } from '../entities/base.entity';
                                                                  -import { DeepPartial } from 'typeorm';
                                                                  -import { ICrudService } from './icube.service';
                                                                  -
                                                                  -@ApiResponse({ status: HttpStatus.UNAUTHORIZED, description: 'Unauthorized' })
                                                                  -@ApiResponse({ status: HttpStatus.FORBIDDEN, description: 'Forbidden' })
                                                                  -export abstract class CrudController<T extends Base> {
                                                                  -  protected constructor(private readonly crudService: ICrudService<T>) {}
                                                                  -
                                                                  -  @ApiOperation({ title: 'find all' })
                                                                  -  @ApiResponse({ status: HttpStatus.OK, description: 'All records', /* type: T, */ isArray: true })
                                                                  -  @Get()
                                                                  -  async findAll(options?: any): Promise<[T[], number]> {
                                                                  -    return this.crudService.getAll();
                                                                  -  }
                                                                  -
                                                                  -  @ApiOperation({ title: 'Find by id' })
                                                                  -  @ApiResponse({ status: HttpStatus.OK, description: 'Found one record' /*, type: T*/ })
                                                                  -  @ApiResponse({ status: HttpStatus.NOT_FOUND, description: 'Record not found' })
                                                                  -  @Get(':id')
                                                                  -  async findById(@Param('id') id: string): Promise<T> {
                                                                  -    return this.crudService.getOne(id);
                                                                  -  }
                                                                  -
                                                                  -  @ApiOperation({ title: 'Create new record' })
                                                                  -  @ApiResponse({ status: HttpStatus.CREATED, description: 'The record has been successfully created.' /*, type: T*/ })
                                                                  -  @ApiResponse({
                                                                  -    status: HttpStatus.BAD_REQUEST,
                                                                  -    description: 'Invalid input, The response body may contain clues as to what went wrong',
                                                                  -  })
                                                                  -  @Post()
                                                                  -  async create(@Body() entity: DeepPartial<T>): Promise<T> {
                                                                  -    return this.crudService.create(entity);
                                                                  -  }
                                                                  -
                                                                  -  @ApiOperation({ title: 'Update an existing record' })
                                                                  -  @ApiResponse({ status: HttpStatus.CREATED, description: 'The record has been successfully edited.' })
                                                                  -  @ApiResponse({ status: HttpStatus.NOT_FOUND, description: 'Record not found' })
                                                                  -  @ApiResponse({
                                                                  -    status: HttpStatus.BAD_REQUEST,
                                                                  -    description: 'Invalid input, The response body may contain clues as to what went wrong',
                                                                  -  })
                                                                  -  @Put(':id')
                                                                  -  async update(@Param('id') id: string, @Body() entity: DeepPartial<T>): Promise<any> {
                                                                  -    return this.crudService.update(id, entity as any); // FIXME: https://github.com/typeorm/typeorm/issues/1544
                                                                  -  }
                                                                  -
                                                                  -  @ApiOperation({ title: 'Delete record' })
                                                                  -  @ApiResponse({ status: HttpStatus.NO_CONTENT, description: 'The record has been successfully deleted' })
                                                                  -  @ApiResponse({ status: HttpStatus.NOT_FOUND, description: 'Record not found' })
                                                                  -  @Delete(':id')
                                                                  -  async delete(@Param('id') id: string): Promise<any> {
                                                                  -    return this.crudService.delete(id);
                                                                  -  }
                                                                  -}
                                                                  -
                                                                  -
                                                                  -
                                                                  - - - - - - - -
                                                                  -
                                                                  -

                                                                  result-matching ""

                                                                  -
                                                                    -
                                                                    -
                                                                    -

                                                                    No results matching ""

                                                                    -
                                                                    -
                                                                    -
                                                                    - -
                                                                    -
                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/CrudService.html b/docs/classes/CrudService.html deleted file mode 100644 index 76949e279..000000000 --- a/docs/classes/CrudService.html +++ /dev/null @@ -1,703 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                    -
                                                                    - - -
                                                                    -
                                                                    - - - - - - - - - - - - - - - -
                                                                    -
                                                                    -

                                                                    -

                                                                    File

                                                                    -

                                                                    -

                                                                    - apps/api/src/core/crud/crud.service.ts -

                                                                    - - - -

                                                                    -

                                                                    Implements

                                                                    -

                                                                    -

                                                                    - ICrudService -

                                                                    - - -
                                                                    -

                                                                    Index

                                                                    - - - - - - - - - - - - - - - -
                                                                    -
                                                                    Methods
                                                                    -
                                                                    -
                                                                      -
                                                                    • - Public - Async - create -
                                                                    • -
                                                                    • - Public - Async - delete -
                                                                    • -
                                                                    • - Public - Async - getAll -
                                                                    • -
                                                                    • - Public - Async - getOne -
                                                                    • -
                                                                    • - Public - Async - update -
                                                                    • -
                                                                    -
                                                                    -
                                                                    - -
                                                                    -

                                                                    Constructor

                                                                    - - - - - - - - - - - - - -
                                                                    - Protected - constructor(repository: Repository) -
                                                                    - -
                                                                    -
                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                    NameTypeOptional
                                                                    repository - Repository<T> - - No -
                                                                    -
                                                                    -
                                                                    -
                                                                    - - -
                                                                    - -

                                                                    - Methods -

                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                    - - - - Public - Async - create - - - -
                                                                    - - create(entity: DeepPartial) -
                                                                    - -
                                                                    - -
                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                    NameTypeOptional
                                                                    entity - DeepPartial<T> - - No -
                                                                    -
                                                                    -
                                                                    -
                                                                    -
                                                                    - Returns : Promise<T> - -
                                                                    -
                                                                    - -
                                                                    -
                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                    - - - - Public - Async - delete - - - -
                                                                    - - delete(id: string) -
                                                                    - -
                                                                    - -
                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                    NameTypeOptional
                                                                    id - string - - No -
                                                                    -
                                                                    -
                                                                    -
                                                                    -
                                                                    - Returns : Promise<DeleteResult> - -
                                                                    -
                                                                    - -
                                                                    -
                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                    - - - - Public - Async - getAll - - - -
                                                                    - - getAll(filter?: FindManyOptions) -
                                                                    - -
                                                                    - -
                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                    NameTypeOptional
                                                                    filter - FindManyOptions<T> - - Yes -
                                                                    -
                                                                    -
                                                                    -
                                                                    -
                                                                    - Returns : Promise<> - -
                                                                    -
                                                                    - -
                                                                    -
                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                    - - - - Public - Async - getOne - - - -
                                                                    - - getOne(filter: string) -
                                                                    - -
                                                                    - -
                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                    NameTypeOptional
                                                                    filter - string - - No -
                                                                    -
                                                                    -
                                                                    -
                                                                    -
                                                                    - Returns : Promise<T> - -
                                                                    -
                                                                    - -
                                                                    -
                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                    - - - - Public - Async - update - - - -
                                                                    - - update(id: string, entity: DeepPartial) -
                                                                    - -
                                                                    - -
                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                    NameTypeOptional
                                                                    id - string - - No -
                                                                    entity - DeepPartial<T> - - No -
                                                                    -
                                                                    -
                                                                    -
                                                                    -
                                                                    - Returns : Promise<UpdateResult> - -
                                                                    -
                                                                    - -
                                                                    -
                                                                    -
                                                                    - - - - - - -
                                                                    - - -
                                                                    -
                                                                    import { BadRequestException, NotFoundException } from '@nestjs/common';
                                                                    -import { DeepPartial, FindManyOptions, FindOneOptions, Repository, UpdateResult, DeleteResult } from 'typeorm';
                                                                    -import { Base } from '../entities/base.entity';
                                                                    -import { ICrudService } from './icube.service';
                                                                    -
                                                                    -export abstract class CrudService<T extends Base> implements ICrudService<T> {
                                                                    -  protected constructor(protected readonly repository: Repository<T>) {}
                                                                    -
                                                                    -  public async getAll(filter?: FindManyOptions<T>): Promise<[T[], number]> {
                                                                    -    const records = await this.repository.findAndCount(filter);
                                                                    -    if (records[1] === 0) {
                                                                    -      throw new NotFoundException(`The requested records were not found`);
                                                                    -    }
                                                                    -    return records;
                                                                    -  }
                                                                    -
                                                                    -  public async getOne(filter: string): Promise<T> {
                                                                    -    const record = await this.repository.findOne(filter);
                                                                    -    if (!record) {
                                                                    -      throw new NotFoundException(`The requested record was not found`);
                                                                    -    }
                                                                    -    return record;
                                                                    -  }
                                                                    -
                                                                    -  public async create(entity: DeepPartial<T>): Promise<T> {
                                                                    -    // FIXME: https://github.com/typeorm/typeorm/issues/1544
                                                                    -    const obj = this.repository.create(entity as any);
                                                                    -    try {
                                                                    -      return await this.repository.save(obj as any);
                                                                    -    } catch (err /*: WriteError*/) {
                                                                    -      throw new BadRequestException(err);
                                                                    -    }
                                                                    -  }
                                                                    -
                                                                    -  // public async update(id: string, entity: DeepPartial<T>): Promise<FindAndModifyWriteOpResultObject> {
                                                                    -  //   try {
                                                                    -  //     return await this.repository.findOneAndUpdate({ id }, {$set: classToPlain(entity)});
                                                                    -  //   } catch (err) {
                                                                    -  //     console.log(err);
                                                                    -  //     throw new BadRequestException(err.message);
                                                                    -  //   }
                                                                    -  // }
                                                                    -  //
                                                                    -  // public async replace(id: string, entity: DeepPartial<T>): Promise<FindAndModifyWriteOpResultObject> {
                                                                    -  //   const obj = this.repository.create(entity);
                                                                    -  //   try {
                                                                    -  //     return await this.repository.findOneAndReplace({ id },  obj);
                                                                    -  //   } catch (err) {
                                                                    -  //     console.log(err);
                                                                    -  //     throw new BadRequestException(err.message);
                                                                    -  //   }
                                                                    -  // }
                                                                    -  //
                                                                    -  // public async delete(id: string): Promise<FindAndModifyWriteOpResultObject> {
                                                                    -  //   try {
                                                                    -  //     return await this.repository.findOneAndDelete({ id });
                                                                    -  //   } catch (err) {
                                                                    -  //     console.log(err);
                                                                    -  //     throw new NotFoundException(`The record was not found`);
                                                                    -  //   }
                                                                    -  // }
                                                                    -
                                                                    -  public async update(id: string, entity: DeepPartial<T>): Promise<UpdateResult> {
                                                                    -    try {
                                                                    -      return await this.repository.update(id, entity);
                                                                    -    } catch (err /*: WriteError*/) {
                                                                    -      throw new BadRequestException(err);
                                                                    -    }
                                                                    -  }
                                                                    -
                                                                    -  public async delete(id: string): Promise<DeleteResult> {
                                                                    -    const obj = await this.repository.findOne(id);
                                                                    -    if (obj) {
                                                                    -      // FIXME: https://github.com/typeorm/typeorm/issues/1544
                                                                    -      return this.repository.delete(obj as any);
                                                                    -    } else {
                                                                    -      throw new NotFoundException(`The record was not found`);
                                                                    -    }
                                                                    -  }
                                                                    -}
                                                                    -
                                                                    -
                                                                    -
                                                                    - - - - - - - -
                                                                    -
                                                                    -

                                                                    result-matching ""

                                                                    -
                                                                      -
                                                                      -
                                                                      -

                                                                      No results matching ""

                                                                      -
                                                                      -
                                                                      -
                                                                      - -
                                                                      -
                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/CustomRouterStateSerializer.html b/docs/classes/CustomRouterStateSerializer.html deleted file mode 100644 index 147a4ca19..000000000 --- a/docs/classes/CustomRouterStateSerializer.html +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                      -
                                                                      - - -
                                                                      -
                                                                      - - - - - - - - - - - - - - - -
                                                                      -
                                                                      -

                                                                      -

                                                                      File

                                                                      -

                                                                      -

                                                                      - libs/core/src/lib/state/custom-router-state.serializer.ts -

                                                                      - - - -

                                                                      -

                                                                      Implements

                                                                      -

                                                                      -

                                                                      - RouterStateSerializer -

                                                                      - - -
                                                                      -

                                                                      Index

                                                                      - - - - - - - - - - - - - - - -
                                                                      -
                                                                      Methods
                                                                      -
                                                                      - -
                                                                      -
                                                                      - - - -
                                                                      - -

                                                                      - Methods -

                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                      - - - - serialize - - - -
                                                                      -serialize(routerState: RouterStateSnapshot) -
                                                                      - -
                                                                      - -
                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                      NameTypeOptional
                                                                      routerState - RouterStateSnapshot - - No -
                                                                      -
                                                                      -
                                                                      -
                                                                      -
                                                                      - Returns : RouterStateData - -
                                                                      -
                                                                      - -
                                                                      -
                                                                      -
                                                                      - - - - - - -
                                                                      - - -
                                                                      -
                                                                      import { Params, RouterStateSnapshot, UrlSegment } from '@angular/router';
                                                                      -import { RouterStateSerializer } from '@ngxs/router-plugin';
                                                                      -
                                                                      -export interface RouterStateData {
                                                                      -  url: string;
                                                                      -  params: Params;
                                                                      -  queryParams: Params;
                                                                      -  breadcrumbs: Map<string, string>;
                                                                      -  data: any;
                                                                      -}
                                                                      -
                                                                      -// Map the router snapshot to { url, params, queryParams, titleSet }
                                                                      -export class CustomRouterStateSerializer implements RouterStateSerializer<RouterStateData> {
                                                                      -  serialize(routerState: RouterStateSnapshot): RouterStateData {
                                                                      -    const {
                                                                      -      url,
                                                                      -      root: { queryParams },
                                                                      -    } = routerState;
                                                                      -    let { root: route } = routerState;
                                                                      -
                                                                      -    const breadcrumbs = new Map();
                                                                      -    while (route.firstChild) {
                                                                      -      route = route.firstChild;
                                                                      -      if (route.data['title']) {
                                                                      -        breadcrumbs.set(route.data['title'],  route.pathFromRoot.flatMap(segment => segment.url).join('/'));
                                                                      -      }
                                                                      -    }
                                                                      -    const { params } = route;
                                                                      -    const { data } = route;
                                                                      -    return { url, params, queryParams, breadcrumbs, data };
                                                                      -  }
                                                                      -}
                                                                      -
                                                                      -
                                                                      -
                                                                      - - - - - - - -
                                                                      -
                                                                      -

                                                                      result-matching ""

                                                                      -
                                                                        -
                                                                        -
                                                                        -

                                                                        No results matching ""

                                                                        -
                                                                        -
                                                                        -
                                                                        - -
                                                                        -
                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/DeleteNotification-1.html b/docs/classes/DeleteNotification-1.html deleted file mode 100644 index 7e4ed207e..000000000 --- a/docs/classes/DeleteNotification-1.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                        -
                                                                        - - -
                                                                        -
                                                                        - - - - - - - - - - - - - - - -
                                                                        -
                                                                        -

                                                                        -

                                                                        File

                                                                        -

                                                                        -

                                                                        - apps/api/src/notifications/interfaces/notification.actions.ts -

                                                                        - - - - - -
                                                                        -

                                                                        Index

                                                                        - - - - - - - - - - - - - - - -
                                                                        -
                                                                        Properties
                                                                        -
                                                                        -
                                                                          -
                                                                        • - Public - Readonly - payload -
                                                                        • -
                                                                        • - Static - Readonly - type -
                                                                        • -
                                                                        -
                                                                        -
                                                                        - -
                                                                        -

                                                                        Constructor

                                                                        - - - - - - - - - - - - - -
                                                                        -constructor(payload: any) -
                                                                        - -
                                                                        -
                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                        NameTypeOptional
                                                                        payload - any - - No -
                                                                        -
                                                                        -
                                                                        -
                                                                        - -
                                                                        - -

                                                                        - Properties -

                                                                        - - - - - - - - - - - - - - - - - -
                                                                        - - - - Public - Readonly - payload - - - -
                                                                        - payload: any - -
                                                                        - Type : any - -
                                                                        - -
                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                        - - - - Static - Readonly - type - - - -
                                                                        - type: string - -
                                                                        - Type : string - -
                                                                        - Default value : '[Notifications] Delete' -
                                                                        - -
                                                                        -
                                                                        - - - - - - - -
                                                                        - - -
                                                                        -
                                                                        export class AddNotification {
                                                                        -  static readonly type = '[Notifications] Add';
                                                                        -  constructor(public readonly payload: any) {}
                                                                        -}
                                                                        -
                                                                        -export class DeleteNotification {
                                                                        -  static readonly type = '[Notifications] Delete';
                                                                        -  constructor(public readonly payload: any) {}
                                                                        -}
                                                                        -
                                                                        -
                                                                        -
                                                                        - - - - - - - -
                                                                        -
                                                                        -

                                                                        result-matching ""

                                                                        -
                                                                          -
                                                                          -
                                                                          -

                                                                          No results matching ""

                                                                          -
                                                                          -
                                                                          -
                                                                          - -
                                                                          -
                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/DeleteNotification.html b/docs/classes/DeleteNotification.html deleted file mode 100644 index 1dbd7db99..000000000 --- a/docs/classes/DeleteNotification.html +++ /dev/null @@ -1,332 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                          -
                                                                          - - -
                                                                          -
                                                                          - - - - - - - - - - - - - - - -
                                                                          -
                                                                          -

                                                                          -

                                                                          File

                                                                          -

                                                                          -

                                                                          - libs/notifications/src/lib/notifications.actions.ts -

                                                                          - - - - - -
                                                                          -

                                                                          Index

                                                                          - - - - - - - - - - - - - - - -
                                                                          -
                                                                          Properties
                                                                          -
                                                                          -
                                                                            -
                                                                          • - Public - Readonly - payload -
                                                                          • -
                                                                          • - Static - Readonly - type -
                                                                          • -
                                                                          -
                                                                          -
                                                                          - -
                                                                          -

                                                                          Constructor

                                                                          - - - - - - - - - - - - - -
                                                                          -constructor(payload: Notification) -
                                                                          - -
                                                                          -
                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                          NameTypeOptional
                                                                          payload - Notification - - No -
                                                                          -
                                                                          -
                                                                          -
                                                                          - -
                                                                          - -

                                                                          - Properties -

                                                                          - - - - - - - - - - - - - - - - - -
                                                                          - - - - Public - Readonly - payload - - - -
                                                                          - payload: Notification - -
                                                                          - Type : Notification - -
                                                                          - -
                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                          - - - - Static - Readonly - type - - - -
                                                                          - type: string - -
                                                                          - Type : string - -
                                                                          - Default value : '[Notifications] Delete' -
                                                                          - -
                                                                          -
                                                                          - - - - - - - -
                                                                          - - -
                                                                          -
                                                                          import { Notification } from './notification.model';
                                                                          -
                                                                          -// Actions
                                                                          -export class FetchNotifications {
                                                                          -  static readonly type = '[Notifications] Fetch';
                                                                          -}
                                                                          -
                                                                          -export class AddNotification {
                                                                          -  static readonly type = '[Notifications] Add';
                                                                          -  constructor(public readonly payload: Notification) {}
                                                                          -}
                                                                          -
                                                                          -export class DeleteNotification {
                                                                          -  static readonly type = '[Notifications] Delete';
                                                                          -
                                                                          -  constructor(public readonly payload: Notification) {}
                                                                          -}
                                                                          -
                                                                          -export class MarkAsRead {
                                                                          -  static readonly type = '[Notifications] MarkAsRead';
                                                                          -  constructor(public readonly payload: Notification) {}
                                                                          -}
                                                                          -
                                                                          -export class MarkAllAsRead {
                                                                          -  static readonly type = '[Notifications] MarkAllAsRead';
                                                                          -}
                                                                          -
                                                                          -
                                                                          -
                                                                          - - - - - - - -
                                                                          -
                                                                          -

                                                                          result-matching ""

                                                                          -
                                                                            -
                                                                            -
                                                                            -

                                                                            No results matching ""

                                                                            -
                                                                            -
                                                                            -
                                                                            - -
                                                                            -
                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/DisconnectWebSocket.html b/docs/classes/DisconnectWebSocket.html deleted file mode 100644 index c1ecbfad8..000000000 --- a/docs/classes/DisconnectWebSocket.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                            -
                                                                            - - -
                                                                            -
                                                                            - - - - - - - - - - - - - - - -
                                                                            -
                                                                            -

                                                                            -

                                                                            File

                                                                            -

                                                                            -

                                                                            - libs/socketio-plugin/src/lib/symbols.ts -

                                                                            - -

                                                                            -

                                                                            Description

                                                                            -

                                                                            -

                                                                            -

                                                                            Action to disconnect the websocket.

                                                                            - -

                                                                            - - - - -
                                                                            -

                                                                            Index

                                                                            - - - - - - - - - - - - - - - -
                                                                            -
                                                                            Properties
                                                                            -
                                                                            -
                                                                              -
                                                                            • - Static - Readonly - type -
                                                                            • -
                                                                            -
                                                                            -
                                                                            - - -
                                                                            - -

                                                                            - Properties -

                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                            - - - - Static - Readonly - type - - - -
                                                                            - type: string - -
                                                                            - Type : string - -
                                                                            - Default value : '[Websocket] Disconnect' -
                                                                            - -
                                                                            -
                                                                            - - - - - - - -
                                                                            - - -
                                                                            -
                                                                            import { InjectionToken } from '@angular/core';
                                                                            -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                                            -
                                                                            -export const NGXS_WEBSOCKET_OPTIONS = new InjectionToken('NGXS_WEBSOCKET_OPTIONS');
                                                                            -
                                                                            -export interface NgxsWebsocketPluginOptions {
                                                                            -  /**
                                                                            -   * URL of the websocket.
                                                                            -   */
                                                                            -  url?: string;
                                                                            -
                                                                            -  connectOpts?: ConnectOpts;
                                                                            -
                                                                            -  tokenFn?: () => string;
                                                                            -
                                                                            -  /**
                                                                            -   * The property name to distigunish this type for the store.
                                                                            -   * Default: 'type'
                                                                            -   */
                                                                            -  typeKey?: string;
                                                                            -
                                                                            -  /**
                                                                            -   * Interval to try and reconnect.
                                                                            -   * Default: 5000
                                                                            -   */
                                                                            -  reconnectInterval?: number;
                                                                            -
                                                                            -  /**
                                                                            -   * Number of reconnect attemps.
                                                                            -   * Default: 10
                                                                            -   */
                                                                            -  reconnectAttempts?: number;
                                                                            -
                                                                            -  /**
                                                                            -   * Serializer to call before sending messages
                                                                            -   * Default: `json.stringify`
                                                                            -   */
                                                                            -  serializer?: (data: any) => string;
                                                                            -
                                                                            -  /**
                                                                            -   * Deseralizer before publishing the message.
                                                                            -   */
                                                                            -  deserializer?: (e: MessageEvent) => any;
                                                                            -}
                                                                            -
                                                                            -export function noop(arg) {
                                                                            -  return function() {};
                                                                            -}
                                                                            -
                                                                            -/**
                                                                            - * Action to connect to the websocket. Optionally pass a URL.
                                                                            - */
                                                                            -export class ConnectWebSocket {
                                                                            -  static readonly type = '[Websocket] Connect';
                                                                            -  constructor(public payload?: NgxsWebsocketPluginOptions) {}
                                                                            -}
                                                                            -
                                                                            -/**
                                                                            - * Action triggered when a error ocurrs
                                                                            - */
                                                                            -export class WebsocketMessageError {
                                                                            -  static readonly type = '[Websocket] Message Error';
                                                                            -  constructor(public payload: any) {}
                                                                            -}
                                                                            -
                                                                            -/**
                                                                            - * Action to disconnect the websocket.
                                                                            - */
                                                                            -export class DisconnectWebSocket {
                                                                            -  static readonly type = '[Websocket] Disconnect';
                                                                            -}
                                                                            -
                                                                            -/**
                                                                            - * Action to send to the server.
                                                                            - */
                                                                            -export class SendWebSocketAction {
                                                                            -  static readonly type = '[Websocket] Send Action';
                                                                            -  constructor(public payload: any) {}
                                                                            -}
                                                                            -
                                                                            -export class WebSocketConnected {
                                                                            -  static readonly type = '[Websocket] Connected';
                                                                            -}
                                                                            -
                                                                            -export class WebSocketDisconnected {
                                                                            -  static readonly type = '[Websocket] Disconnected';
                                                                            -}
                                                                            -
                                                                            -export class AuthenticateWebSocket {
                                                                            -  static readonly type = '[Websocket] authenticate';
                                                                            -}
                                                                            -
                                                                            -
                                                                            -
                                                                            - - - - - - - -
                                                                            -
                                                                            -

                                                                            result-matching ""

                                                                            -
                                                                              -
                                                                              -
                                                                              -

                                                                              No results matching ""

                                                                              -
                                                                              -
                                                                              -
                                                                              - -
                                                                              -
                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/DonutChartWidgetOptions.html b/docs/classes/DonutChartWidgetOptions.html deleted file mode 100644 index 797699c25..000000000 --- a/docs/classes/DonutChartWidgetOptions.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                              -
                                                                              - - -
                                                                              -
                                                                              - - - - - - - - - - - - - - - -
                                                                              -
                                                                              -

                                                                              -

                                                                              File

                                                                              -

                                                                              -

                                                                              - libs/widgets/src/lib/components/donut-chart-widget/donut-chart-widget-options.interface.ts -

                                                                              - - - - - -
                                                                              -

                                                                              Index

                                                                              - - - - - - - - - - - - - - - -
                                                                              -
                                                                              Properties
                                                                              -
                                                                              - -
                                                                              -
                                                                              - - -
                                                                              - -

                                                                              - Properties -

                                                                              - - - - - - - - - - - - - - - - - -
                                                                              - - - - Optional - subTitle - - - -
                                                                              - subTitle: string - -
                                                                              - Type : string - -
                                                                              - -
                                                                              - - - - - - - - - - - - - - - - - -
                                                                              - - - - title - - - -
                                                                              - title: string - -
                                                                              - Type : string - -
                                                                              - -
                                                                              -
                                                                              - - - - - - - -
                                                                              - - -
                                                                              -
                                                                              export class DonutChartWidgetOptions {
                                                                              -  title: string;
                                                                              -  subTitle?: string;
                                                                              -}
                                                                              -
                                                                              -
                                                                              -
                                                                              - - - - - - - -
                                                                              -
                                                                              -

                                                                              result-matching ""

                                                                              -
                                                                                -
                                                                                -
                                                                                -

                                                                                No results matching ""

                                                                                -
                                                                                -
                                                                                -
                                                                                - -
                                                                                -
                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EmailDto.html b/docs/classes/EmailDto.html deleted file mode 100644 index 092658d69..000000000 --- a/docs/classes/EmailDto.html +++ /dev/null @@ -1,335 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                -
                                                                                - - -
                                                                                -
                                                                                - - - - - - - - - - - - - - - -
                                                                                -
                                                                                -

                                                                                -

                                                                                File

                                                                                -

                                                                                -

                                                                                - apps/api/src/user/email/dto/email.dto.ts -

                                                                                - - - - - -
                                                                                -

                                                                                Index

                                                                                - - - - - - - - - - - - - - - -
                                                                                -
                                                                                Properties
                                                                                -
                                                                                -
                                                                                  -
                                                                                • - Readonly - Optional - comments -
                                                                                • -
                                                                                • - Readonly - Optional - name -
                                                                                • -
                                                                                • - Readonly - title -
                                                                                • -
                                                                                -
                                                                                -
                                                                                - - -
                                                                                - -

                                                                                - Properties -

                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                - - - - Readonly - Optional - comments - - - -
                                                                                - comments: string - -
                                                                                - Type : string - -
                                                                                - Decorators : -
                                                                                - - @ApiModelPropertyOptional({type: String})
                                                                                @IsString()
                                                                                -
                                                                                -
                                                                                - -
                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                - - - - Readonly - Optional - name - - - -
                                                                                - name: string - -
                                                                                - Type : string - -
                                                                                - Decorators : -
                                                                                - - @ApiModelPropertyOptional({type: String})
                                                                                @IsString()
                                                                                -
                                                                                -
                                                                                - -
                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                - - - - Readonly - title - - - -
                                                                                - title: string - -
                                                                                - Type : string - -
                                                                                - Decorators : -
                                                                                - - @ApiModelProperty({type: String})
                                                                                @IsString()
                                                                                -
                                                                                -
                                                                                - -
                                                                                -
                                                                                - - - - - - - -
                                                                                - - -
                                                                                -
                                                                                import { IsString, IsEmail, IsNotEmpty, Length } from 'class-validator';
                                                                                -import { ApiModelProperty, ApiModelPropertyOptional } from '@nestjs/swagger';
                                                                                -
                                                                                -export class EmailDto {
                                                                                -  @ApiModelProperty({ type: String })
                                                                                -  @IsString()
                                                                                -  readonly title: string;
                                                                                -
                                                                                -  @ApiModelPropertyOptional({ type: String })
                                                                                -  @IsString()
                                                                                -  readonly name?: string;
                                                                                -
                                                                                -  @ApiModelPropertyOptional({ type: String })
                                                                                -  @IsString()
                                                                                -  readonly comments?: string;
                                                                                -}
                                                                                -
                                                                                -
                                                                                -
                                                                                - - - - - - - -
                                                                                -
                                                                                -

                                                                                result-matching ""

                                                                                -
                                                                                  -
                                                                                  -
                                                                                  -

                                                                                  No results matching ""

                                                                                  -
                                                                                  -
                                                                                  -
                                                                                  - -
                                                                                  -
                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EmailModuleOptions.html b/docs/classes/EmailModuleOptions.html deleted file mode 100644 index 01cd358e0..000000000 --- a/docs/classes/EmailModuleOptions.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                  -
                                                                                  - - -
                                                                                  -
                                                                                  - - - - - - - - - - - - - - - -
                                                                                  -
                                                                                  -

                                                                                  -

                                                                                  File

                                                                                  -

                                                                                  -

                                                                                  - apps/api/src/email/interfaces/email-options.interface.ts -

                                                                                  - - - - - -
                                                                                  -

                                                                                  Index

                                                                                  - - - - - - - - - - - - - - - -
                                                                                  -
                                                                                  Properties
                                                                                  -
                                                                                  - -
                                                                                  -
                                                                                  - - -
                                                                                  - -

                                                                                  - Properties -

                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                  - - - - defaults - - - -
                                                                                  - defaults: literal type - -
                                                                                  - Type : literal type - -
                                                                                  - -
                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                  - - - - Optional - templateDir - - - -
                                                                                  - templateDir: string - -
                                                                                  - Type : string - -
                                                                                  - -
                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                  - - - - transport - - - -
                                                                                  - transport: literal type - -
                                                                                  - Type : literal type - -
                                                                                  - -
                                                                                  -
                                                                                  - - - - - - - -
                                                                                  - - -
                                                                                  -
                                                                                  export class EmailModuleOptions {
                                                                                  -  transport: {
                                                                                  -    host: string;
                                                                                  -    port?: number;
                                                                                  -    secure?: boolean;
                                                                                  -    auth?: {
                                                                                  -      user: string;
                                                                                  -      pass: string;
                                                                                  -    };
                                                                                  -  };
                                                                                  -  defaults: {
                                                                                  -    forceEmbeddedImages?: boolean;
                                                                                  -    from: string;
                                                                                  -  };
                                                                                  -  templateDir?: string;
                                                                                  -}
                                                                                  -
                                                                                  -
                                                                                  -
                                                                                  - - - - - - - -
                                                                                  -
                                                                                  -

                                                                                  result-matching ""

                                                                                  -
                                                                                    -
                                                                                    -
                                                                                    -

                                                                                    No results matching ""

                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EntitiesComponent.html b/docs/classes/EntitiesComponent.html deleted file mode 100644 index 99d1414a3..000000000 --- a/docs/classes/EntitiesComponent.html +++ /dev/null @@ -1,2237 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                    -
                                                                                    - - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - -
                                                                                    -
                                                                                    -

                                                                                    -

                                                                                    File

                                                                                    -

                                                                                    -

                                                                                    - libs/shared/src/lib/containers/entity/entity.component.ts -

                                                                                    - - - -

                                                                                    -

                                                                                    Implements

                                                                                    -

                                                                                    -

                                                                                    - OnInit - OnDestroy - AfterViewInit -

                                                                                    - - -
                                                                                    -

                                                                                    Index

                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                    -
                                                                                    Properties
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    Methods
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    Accessors
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - -
                                                                                    -

                                                                                    Constructor

                                                                                    - - - - - - - - - - - - - -
                                                                                    -constructor(entityService: TService) -
                                                                                    - -
                                                                                    -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                    NameTypeOptional
                                                                                    entityService - TService - - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - -
                                                                                    - -

                                                                                    - Properties -

                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - Optional - actionColumn - - - -
                                                                                    - actionColumn: string - -
                                                                                    - Type : string - -
                                                                                    - Default value : 'Actions' -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - columns - - - -
                                                                                    - columns: Array<EntityColumnDef<TEntity>> - -
                                                                                    - Type : Array<EntityColumnDef<TEntity>> - -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                    - - - - dataSource - - - -
                                                                                    - dataSource: - -
                                                                                    - Default value : new MatTableDataSource<TEntity>([]) -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - filterRef - - - -
                                                                                    - filterRef: ElementRef - -
                                                                                    - Type : ElementRef - -
                                                                                    - Decorators : -
                                                                                    - - @ViewChild('filter')
                                                                                    -
                                                                                    -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - Optional - formRef - - - -
                                                                                    - formRef: ComponentType<EntityFormComponent<TEntity>> - -
                                                                                    - Type : ComponentType<EntityFormComponent<TEntity>> - -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - loading$ - - - -
                                                                                    - loading$: - -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - Optional - maxSelectable - - - -
                                                                                    - maxSelectable: number - -
                                                                                    - Type : number - -
                                                                                    - Default value : 1 -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - paginator - - - -
                                                                                    - paginator: MatPaginator - -
                                                                                    - Type : MatPaginator - -
                                                                                    - Decorators : -
                                                                                    - - @ViewChild(MatPaginator)
                                                                                    -
                                                                                    -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - Optional - selectColumn - - - -
                                                                                    - selectColumn: string - -
                                                                                    - Type : string - -
                                                                                    - Default value : 'select' -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                    - - - - selection - - - -
                                                                                    - selection: - -
                                                                                    - Default value : new SelectionModel<TEntity>(false, []) -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - Optional - showActionColumn - - - -
                                                                                    - showActionColumn: boolean - -
                                                                                    - Type : boolean - -
                                                                                    - Default value : false -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - Optional - showColumnFilter - - - -
                                                                                    - showColumnFilter: boolean - -
                                                                                    - Type : boolean - -
                                                                                    - Default value : false -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - Optional - showToolbar - - - -
                                                                                    - showToolbar: boolean - -
                                                                                    - Type : boolean - -
                                                                                    - Default value : false -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - sort - - - -
                                                                                    - sort: MatSort - -
                                                                                    - Type : MatSort - -
                                                                                    - Decorators : -
                                                                                    - - @ViewChild(MatSort)
                                                                                    -
                                                                                    -
                                                                                    - -
                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Readonly - Optional - title - - - -
                                                                                    - title: string - -
                                                                                    - Type : string - -
                                                                                    - Default value : null -
                                                                                    - -
                                                                                    -
                                                                                    - -
                                                                                    - -

                                                                                    - Methods -

                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - applyFilter - - - -
                                                                                    -applyFilter(filterValue: string) -
                                                                                    - -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                    NameTypeOptional
                                                                                    filterValue - string - - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : void - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - delete - - - -
                                                                                    -delete(item: TEntity) -
                                                                                    - -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                    NameTypeOptional
                                                                                    item - TEntity - - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : any - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Optional - filterPredicate - - - -
                                                                                    -filterPredicate(entity: TEntity, filter: string) -
                                                                                    - -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                    NameTypeOptional
                                                                                    entity - TEntity - - No -
                                                                                    filter - string - - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : boolean - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - getById - - - -
                                                                                    -getById(id: number) -
                                                                                    - -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                    NameTypeOptional
                                                                                    id - number - - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : any - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - getData - - - -
                                                                                    -getData() -
                                                                                    - -
                                                                                    -

                                                                                    Overwrite this method, to get the data your way.

                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    -
                                                                                    - Returns : Observable<TEntity[]> - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Optional - getNewEntity - - - -
                                                                                    -getNewEntity() -
                                                                                    - -
                                                                                    - -
                                                                                    - Returns : TEntity - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - getRouteAnimation - - - -
                                                                                    -getRouteAnimation(outlet) -
                                                                                    - -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - -
                                                                                    NameOptional
                                                                                    outlet - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : any - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - isAllFilteredRowsSelected - - - -
                                                                                    -isAllFilteredRowsSelected() -
                                                                                    - -
                                                                                    -

                                                                                    Whether all filtered rows are selected.

                                                                                    -
                                                                                    - -
                                                                                    - Returns : any - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - isMasterToggleChecked - - - -
                                                                                    -isMasterToggleChecked() -
                                                                                    - -
                                                                                    -

                                                                                    Whether the selection it totally matches the filtered rows.

                                                                                    -
                                                                                    - -
                                                                                    - Returns : boolean - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - isMasterToggleIndeterminate - - - -
                                                                                    -isMasterToggleIndeterminate() -
                                                                                    - -
                                                                                    -

                                                                                    Whether there is a selection that doesn't capture all the -filtered rows there are no filtered rows displayed.

                                                                                    -
                                                                                    - -
                                                                                    - Returns : boolean - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - masterToggle - - - -
                                                                                    -masterToggle() -
                                                                                    - -
                                                                                    -

                                                                                    Selects all filtered rows if they are not all selected; otherwise clear selection.

                                                                                    -
                                                                                    - -
                                                                                    - Returns : void - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - ngAfterViewInit - - - -
                                                                                    -ngAfterViewInit() -
                                                                                    - -
                                                                                    - -
                                                                                    - Returns : void - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - ngOnDestroy - - - -
                                                                                    -ngOnDestroy() -
                                                                                    - -
                                                                                    - -
                                                                                    - Returns : void - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - ngOnInit - - - -
                                                                                    -ngOnInit() -
                                                                                    - -
                                                                                    - -
                                                                                    - Returns : void - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - selectRow - - - -
                                                                                    -selectRow(entity: TEntity) -
                                                                                    - -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                    NameTypeOptional
                                                                                    entity - TEntity - - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : void - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - showDetails - - - -
                                                                                    -showDetails(entity: TEntity) -
                                                                                    - -
                                                                                    -

                                                                                    will be called with entity or undefined

                                                                                    -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                    NameTypeOptional
                                                                                    entity - TEntity - - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : void - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - toggleColumnVisibility - - - -
                                                                                    -toggleColumnVisibility(column, event) -
                                                                                    - -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                    NameOptional
                                                                                    column - No -
                                                                                    event - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : void - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - Protected - update - - - -
                                                                                    - - update() -
                                                                                    - -
                                                                                    - -
                                                                                    - Returns : any - -
                                                                                    -
                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                    - - - - updateOrCreate - - - -
                                                                                    -updateOrCreate(entity: TEntity, isNew: boolean) -
                                                                                    - -
                                                                                    - -
                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                    NameTypeOptional
                                                                                    entity - TEntity - - No -
                                                                                    isNew - boolean - - No -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - Returns : any - -
                                                                                    -
                                                                                    - -
                                                                                    -
                                                                                    -
                                                                                    - - - - - - -
                                                                                    -

                                                                                    - Accessors -

                                                                                    - - - - - - - - - - - - - - -
                                                                                    - - displayedColumns -
                                                                                    - getdisplayedColumns() -
                                                                                    - -
                                                                                    -
                                                                                    -
                                                                                    - - -
                                                                                    -
                                                                                    import { AfterViewInit, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core';
                                                                                    -import { MatPaginator, MatSort, MatTableDataSource } from '@angular/material';
                                                                                    -
                                                                                    -import { EntityService } from './entity.service';
                                                                                    -import { Entity, EntityColumnDef } from './entity.model';
                                                                                    -import { concatMap, filter, map } from 'rxjs/operators';
                                                                                    -import { Observable } from 'rxjs';
                                                                                    -import { EntityFormComponent } from './entity-form.component';
                                                                                    -import { ComponentType } from '@angular/cdk/portal/typings/portal';
                                                                                    -import { SelectionChange, SelectionModel } from '@angular/cdk/collections';
                                                                                    -import { untilDestroy } from '@ngx-starter-kit/ngx-utils';
                                                                                    -
                                                                                    -export abstract class EntitiesComponent<TEntity extends Entity, TService extends EntityService<TEntity>>
                                                                                    -  implements OnInit, OnDestroy, AfterViewInit {
                                                                                    -  dataSource = new MatTableDataSource<TEntity>([]);
                                                                                    -  selection = new SelectionModel<TEntity>(false, []);
                                                                                    -
                                                                                    -  @ViewChild(MatPaginator)
                                                                                    -  paginator: MatPaginator;
                                                                                    -  @ViewChild(MatSort)
                                                                                    -  sort: MatSort;
                                                                                    -  @ViewChild('filter')
                                                                                    -  filterRef: ElementRef;
                                                                                    -
                                                                                    -  readonly loading$;
                                                                                    -  readonly columns: Array<EntityColumnDef<TEntity>>;
                                                                                    -  readonly title?: string = null;
                                                                                    -  readonly showToolbar?: boolean = false;
                                                                                    -  readonly showColumnFilter?: boolean = false;
                                                                                    -  readonly showActionColumn?: boolean = false;
                                                                                    -  readonly maxSelectable?: number = 1;
                                                                                    -  readonly actionColumn?: string = 'Actions';
                                                                                    -  readonly selectColumn?: string = 'select';
                                                                                    -  // TODO: make them optional abstract
                                                                                    -  readonly formRef?: ComponentType<EntityFormComponent<TEntity>>;
                                                                                    -  getNewEntity?(): TEntity;
                                                                                    -  filterPredicate?(entity: TEntity, filter: string): boolean;
                                                                                    -  // TODO: make them optional abstract end
                                                                                    -
                                                                                    -  constructor(protected entityService: TService) {
                                                                                    -    this.loading$ = entityService.loading$;
                                                                                    -  }
                                                                                    -
                                                                                    -  ngOnInit() {
                                                                                    -    this.selection = new SelectionModel<TEntity>(this.maxSelectable > 1, []);
                                                                                    -
                                                                                    -    this.update().subscribe();
                                                                                    -    if (this.filterPredicate) {
                                                                                    -      this.dataSource.filterPredicate = this.filterPredicate;
                                                                                    -    }
                                                                                    -
                                                                                    -    // remove first selected entity if more then max selected.
                                                                                    -    if (this.maxSelectable > 1) {
                                                                                    -      // is multi select mode?
                                                                                    -      this.selection.changed
                                                                                    -        .pipe(
                                                                                    -          // tap(console.log),
                                                                                    -          filter((sc: SelectionChange<TEntity>) => sc.added.length > 0),
                                                                                    -          filter(_ => this.selection.selected.length > this.maxSelectable),
                                                                                    -          untilDestroy(this),
                                                                                    -        )
                                                                                    -        .subscribe(_ => this.selection.deselect(this.selection.selected.shift()));
                                                                                    -    }
                                                                                    -
                                                                                    -    // fromEvent(this.filterRef.nativeElement, 'keyup')
                                                                                    -    //   .pipe(
                                                                                    -    //     debounceTime(150),
                                                                                    -    //     distinctUntilChanged()
                                                                                    -    //   ).subscribe(() => {
                                                                                    -    //   this.paginator.pageIndex = 0;
                                                                                    -    //   this.applyFilter(this.filterRef.nativeElement.value)
                                                                                    -    // });
                                                                                    -  }
                                                                                    -
                                                                                    -  ngOnDestroy() {}
                                                                                    -
                                                                                    -  ngAfterViewInit() {
                                                                                    -    // Needs to be set up after the view is initialized since the data source will look at the sort
                                                                                    -    // and paginator's initial values to know what data should be rendered.
                                                                                    -    this.dataSource.sort = this.sort;
                                                                                    -    this.dataSource.paginator = this.paginator;
                                                                                    -  }
                                                                                    -
                                                                                    -  getById(id: number) {
                                                                                    -    return this.entityService.getById(id);
                                                                                    -  }
                                                                                    -
                                                                                    -  delete(item: TEntity) {
                                                                                    -    return this.entityService.delete(item.id).pipe(concatMap(_ => this.update()));
                                                                                    -  }
                                                                                    -
                                                                                    -  updateOrCreate(entity: TEntity, isNew: boolean) {
                                                                                    -    if (isNew) {
                                                                                    -      return this.entityService.post(entity).pipe(concatMap(_ => this.update()));
                                                                                    -    } else {
                                                                                    -      return this.entityService.put(entity).pipe(concatMap(_ => this.update()));
                                                                                    -    }
                                                                                    -  }
                                                                                    -
                                                                                    -  /**
                                                                                    -   * Overwrite this method, to get the data your way.
                                                                                    -   * @returns {Observable<TEntity[]>}
                                                                                    -   */
                                                                                    -  getData(): Observable<TEntity[]> {
                                                                                    -    return this.entityService.getAll();
                                                                                    -  }
                                                                                    -
                                                                                    -  protected update() {
                                                                                    -    return this.getData().pipe(
                                                                                    -      map(result => {
                                                                                    -        this.dataSource = new MatTableDataSource<TEntity>(result);
                                                                                    -        this.dataSource.sort = this.sort;
                                                                                    -        this.dataSource.paginator = this.paginator;
                                                                                    -        // return nothing as we don't need.
                                                                                    -        // return result
                                                                                    -      }),
                                                                                    -    );
                                                                                    -  }
                                                                                    -
                                                                                    -  /** Whether all filtered rows are selected. */
                                                                                    -  isAllFilteredRowsSelected() {
                                                                                    -    return this.dataSource.filteredData.every(data => this.selection.isSelected(data));
                                                                                    -  }
                                                                                    -
                                                                                    -  /** Whether the selection it totally matches the filtered rows. */
                                                                                    -  isMasterToggleChecked() {
                                                                                    -    return (
                                                                                    -      this.selection.hasValue() &&
                                                                                    -      this.isAllFilteredRowsSelected() &&
                                                                                    -      this.selection.selected.length >= this.dataSource.filteredData.length
                                                                                    -    );
                                                                                    -  }
                                                                                    -
                                                                                    -  /**
                                                                                    -   * Whether there is a selection that doesn't capture all the
                                                                                    -   * filtered rows there are no filtered rows displayed.
                                                                                    -   */
                                                                                    -  isMasterToggleIndeterminate() {
                                                                                    -    return this.selection.hasValue() && (!this.isAllFilteredRowsSelected() || !this.dataSource.filteredData.length);
                                                                                    -  }
                                                                                    -
                                                                                    -  /** Selects all filtered rows if they are not all selected; otherwise clear selection. */
                                                                                    -  masterToggle() {
                                                                                    -    if (this.isMasterToggleChecked()) {
                                                                                    -      this.selection.clear();
                                                                                    -    } else {
                                                                                    -      this.dataSource.filteredData.forEach(data => this.selection.select(data));
                                                                                    -    }
                                                                                    -  }
                                                                                    -
                                                                                    -  applyFilter(filterValue: string) {
                                                                                    -    filterValue = filterValue.trim(); // Remove whitespace
                                                                                    -    filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
                                                                                    -    this.dataSource.filter = filterValue;
                                                                                    -  }
                                                                                    -
                                                                                    -  get displayedColumns(): string[] {
                                                                                    -    // prettier-ignore
                                                                                    -    let _displayedColumns = this.columns
                                                                                    -      .filter(column => column.visible)
                                                                                    -      .map(x => x.property);
                                                                                    -
                                                                                    -    if (this.maxSelectable > 0) {
                                                                                    -      _displayedColumns.unshift(this.selectColumn);
                                                                                    -    }
                                                                                    -    if (this.showActionColumn) {
                                                                                    -      _displayedColumns = _displayedColumns.concat(this.actionColumn);
                                                                                    -    }
                                                                                    -    return _displayedColumns;
                                                                                    -  }
                                                                                    -
                                                                                    -  selectRow(entity: TEntity) {
                                                                                    -    if (this.maxSelectable > 0) {
                                                                                    -      this.selection.toggle(entity);
                                                                                    -      if (this.selection.isSelected(entity)) {
                                                                                    -        this.showDetails(entity);
                                                                                    -      } else {
                                                                                    -        this.showDetails(undefined);
                                                                                    -      }
                                                                                    -    }
                                                                                    -  }
                                                                                    -
                                                                                    -  getRouteAnimation(outlet) {
                                                                                    -    return outlet.activatedRouteData['depth'] || 5;
                                                                                    -    // return outlet.isActivated ? outlet.activatedRoute : ''
                                                                                    -  }
                                                                                    -
                                                                                    -  /**
                                                                                    -   * will be called with entity or undefined
                                                                                    -   * @param {TEntity} entity
                                                                                    -   */
                                                                                    -  showDetails(entity: TEntity) {}
                                                                                    -
                                                                                    -  toggleColumnVisibility(column, event) {
                                                                                    -    event.stopPropagation();
                                                                                    -    event.stopImmediatePropagation();
                                                                                    -    column.visible = !column.visible;
                                                                                    -  }
                                                                                    -}
                                                                                    -
                                                                                    -
                                                                                    -
                                                                                    - - - - - - - -
                                                                                    -
                                                                                    -

                                                                                    result-matching ""

                                                                                    -
                                                                                      -
                                                                                      -
                                                                                      -

                                                                                      No results matching ""

                                                                                      -
                                                                                      -
                                                                                      -
                                                                                      - -
                                                                                      -
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Entity.html b/docs/classes/Entity.html deleted file mode 100644 index d4f8b9032..000000000 --- a/docs/classes/Entity.html +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                      -
                                                                                      - - -
                                                                                      -
                                                                                      - - - - - - - - - - - - - - - -
                                                                                      -
                                                                                      -

                                                                                      -

                                                                                      File

                                                                                      -

                                                                                      -

                                                                                      - libs/shared/src/lib/containers/entity/entity.model.ts -

                                                                                      - - - - - -
                                                                                      -

                                                                                      Index

                                                                                      - - - - - - - - - - - - - - - -
                                                                                      -
                                                                                      Accessors
                                                                                      -
                                                                                      -
                                                                                        -
                                                                                      • - id -
                                                                                      • -
                                                                                      -
                                                                                      -
                                                                                      - -
                                                                                      -

                                                                                      Constructor

                                                                                      - - - - - - - - - - - - - -
                                                                                      -constructor(init?: Partial) -
                                                                                      - -
                                                                                      -
                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                      NameTypeOptional
                                                                                      init - Partial<Entity> - - Yes -
                                                                                      -
                                                                                      -
                                                                                      -
                                                                                      - - - -
                                                                                      -

                                                                                      Indexable

                                                                                      - - - - - - - - - -
                                                                                      - [key: string]: any - -
                                                                                      - -
                                                                                      -
                                                                                      - - - - - -
                                                                                      -

                                                                                      - Accessors -

                                                                                      - - - - - - - - - - - - - - -
                                                                                      - - id -
                                                                                      - getid() -
                                                                                      - -
                                                                                      -
                                                                                      -
                                                                                      - - -
                                                                                      -
                                                                                      export abstract class Entity {
                                                                                      -  abstract get id(): number | string;
                                                                                      -  [key: string]: any;
                                                                                      -  constructor(init?: Partial<Entity>) {
                                                                                      -    Object.assign(this, init);
                                                                                      -  }
                                                                                      -}
                                                                                      -
                                                                                      -export class EntityColumnDef<T> {
                                                                                      -  readonly property: string;
                                                                                      -  readonly header = this.property;
                                                                                      -  public visible = true;
                                                                                      -  readonly displayFn = (entity: T) => entity[this.property];
                                                                                      -
                                                                                      -  public constructor(init?: Partial<EntityColumnDef<T>>) {
                                                                                      -    Object.assign(this, init);
                                                                                      -  }
                                                                                      -}
                                                                                      -
                                                                                      -
                                                                                      -
                                                                                      - - - - - - - -
                                                                                      -
                                                                                      -

                                                                                      result-matching ""

                                                                                      -
                                                                                        -
                                                                                        -
                                                                                        -

                                                                                        No results matching ""

                                                                                        -
                                                                                        -
                                                                                        -
                                                                                        - -
                                                                                        -
                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EntityColumnDef.html b/docs/classes/EntityColumnDef.html deleted file mode 100644 index 3793d575d..000000000 --- a/docs/classes/EntityColumnDef.html +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                        -
                                                                                        - - -
                                                                                        -
                                                                                        - - - - - - - - - - - - - - - -
                                                                                        -
                                                                                        -

                                                                                        -

                                                                                        File

                                                                                        -

                                                                                        -

                                                                                        - libs/shared/src/lib/containers/entity/entity.model.ts -

                                                                                        - - - - - -
                                                                                        -

                                                                                        Index

                                                                                        - - - - - - - - - - - - - - - -
                                                                                        -
                                                                                        Properties
                                                                                        -
                                                                                        - -
                                                                                        -
                                                                                        - -
                                                                                        -

                                                                                        Constructor

                                                                                        - - - - - - - - - - - - - -
                                                                                        - Public - constructor(init?: Partial>) -
                                                                                        - -
                                                                                        -
                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                        NameTypeOptional
                                                                                        init - Partial<EntityColumnDef<T>> - - Yes -
                                                                                        -
                                                                                        -
                                                                                        -
                                                                                        - -
                                                                                        - -

                                                                                        - Properties -

                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                        - - - - Readonly - displayFn - - - -
                                                                                        - displayFn: - -
                                                                                        - Default value : (entity: T) => entity[this.property] -
                                                                                        - -
                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                        - - - - Readonly - header - - - -
                                                                                        - header: - -
                                                                                        - Default value : this.property -
                                                                                        - -
                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                        - - - - Readonly - property - - - -
                                                                                        - property: string - -
                                                                                        - Type : string - -
                                                                                        - -
                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                        - - - - Public - visible - - - -
                                                                                        - visible: - -
                                                                                        - Default value : true -
                                                                                        - -
                                                                                        -
                                                                                        - - - - - - - -
                                                                                        - - -
                                                                                        -
                                                                                        export abstract class Entity {
                                                                                        -  abstract get id(): number | string;
                                                                                        -  [key: string]: any;
                                                                                        -  constructor(init?: Partial<Entity>) {
                                                                                        -    Object.assign(this, init);
                                                                                        -  }
                                                                                        -}
                                                                                        -
                                                                                        -export class EntityColumnDef<T> {
                                                                                        -  readonly property: string;
                                                                                        -  readonly header = this.property;
                                                                                        -  public visible = true;
                                                                                        -  readonly displayFn = (entity: T) => entity[this.property];
                                                                                        -
                                                                                        -  public constructor(init?: Partial<EntityColumnDef<T>>) {
                                                                                        -    Object.assign(this, init);
                                                                                        -  }
                                                                                        -}
                                                                                        -
                                                                                        -
                                                                                        -
                                                                                        - - - - - - - -
                                                                                        -
                                                                                        -

                                                                                        result-matching ""

                                                                                        -
                                                                                          -
                                                                                          -
                                                                                          -

                                                                                          No results matching ""

                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          - -
                                                                                          -
                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EntityDataSource.html b/docs/classes/EntityDataSource.html deleted file mode 100644 index bc566f397..000000000 --- a/docs/classes/EntityDataSource.html +++ /dev/null @@ -1,567 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                          -
                                                                                          - - -
                                                                                          -
                                                                                          - - - - - - - - - - - - - - - -
                                                                                          -
                                                                                          -

                                                                                          -

                                                                                          File

                                                                                          -

                                                                                          -

                                                                                          - libs/shared/src/lib/containers/entity/entity.datasource.ts -

                                                                                          - - - -

                                                                                          -

                                                                                          Implements

                                                                                          -

                                                                                          -

                                                                                          - DataSource -

                                                                                          - - -
                                                                                          -

                                                                                          Index

                                                                                          - - - - - - - - - - - - - - - - - - - - - -
                                                                                          -
                                                                                          Properties
                                                                                          -
                                                                                          - -
                                                                                          -
                                                                                          Methods
                                                                                          -
                                                                                          - -
                                                                                          -
                                                                                          - -
                                                                                          -

                                                                                          Constructor

                                                                                          - - - - - - - - - - - - - -
                                                                                          -constructor(entityService: TService) -
                                                                                          - -
                                                                                          -
                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                          NameTypeOptional
                                                                                          entityService - TService - - No -
                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          - -
                                                                                          - -

                                                                                          - Properties -

                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                          - - - - Private - entitiesSubject - - - -
                                                                                          - entitiesSubject: BehaviorSubject<Array<TEntity>> - -
                                                                                          - Type : BehaviorSubject<Array<TEntity>> - -
                                                                                          - Default value : new BehaviorSubject([]) -
                                                                                          - -
                                                                                          -
                                                                                          - -
                                                                                          - -

                                                                                          - Methods -

                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                          - - - - connect - - - -
                                                                                          -connect(collectionViewer: CollectionViewer) -
                                                                                          - -
                                                                                          - -
                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                          NameTypeOptional
                                                                                          collectionViewer - CollectionViewer - - No -
                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          - Returns : Observable<TEntity[]> - -
                                                                                          -
                                                                                          - -
                                                                                          -
                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                          - - - - disconnect - - - -
                                                                                          -disconnect(collectionViewer: CollectionViewer) -
                                                                                          - -
                                                                                          - -
                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                          NameTypeOptional
                                                                                          collectionViewer - CollectionViewer - - No -
                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          - Returns : void - -
                                                                                          -
                                                                                          - -
                                                                                          -
                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                          - - - - load - - - -
                                                                                          -load(filter: Filter, sortDirection: string, pageIndex: number, pageSize: number) -
                                                                                          - -
                                                                                          - -
                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                          NameTypeOptional
                                                                                          filter - Filter - - No -
                                                                                          sortDirection - string - - No -
                                                                                          pageIndex - number - - No -
                                                                                          pageSize - number - - No -
                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          - Returns : void - -
                                                                                          -
                                                                                          - -
                                                                                          -
                                                                                          -
                                                                                          - - - - - - -
                                                                                          - - -
                                                                                          -
                                                                                          import { of, Observable, BehaviorSubject } from 'rxjs';
                                                                                          -import { Entity } from './entity.model';
                                                                                          -import { catchError } from 'rxjs/operators';
                                                                                          -import { EntityService } from './entity.service';
                                                                                          -import { CollectionViewer, DataSource } from '@angular/cdk/collections';
                                                                                          -import { Filter } from './entity.service';
                                                                                          -
                                                                                          -export abstract class EntityDataSource<TEntity extends Entity, TService extends EntityService<TEntity>>
                                                                                          -  implements DataSource<TEntity> {
                                                                                          -  private entitiesSubject: BehaviorSubject<Array<TEntity>> = new BehaviorSubject([]);
                                                                                          -
                                                                                          -  constructor(protected entityService: TService) {}
                                                                                          -
                                                                                          -  load(filter: Filter, sortDirection: string, pageIndex: number, pageSize: number) {
                                                                                          -    this.entityService
                                                                                          -      .findAll(filter, sortDirection, pageIndex, pageSize)
                                                                                          -      .pipe(catchError(() => of([])))
                                                                                          -      .subscribe(entities => this.entitiesSubject.next(entities));
                                                                                          -  }
                                                                                          -
                                                                                          -  connect(collectionViewer: CollectionViewer): Observable<TEntity[]> {
                                                                                          -    console.log('Connecting data source');
                                                                                          -    return this.entitiesSubject.asObservable();
                                                                                          -  }
                                                                                          -
                                                                                          -  disconnect(collectionViewer: CollectionViewer): void {
                                                                                          -    this.entitiesSubject.complete();
                                                                                          -  }
                                                                                          -}
                                                                                          -
                                                                                          -
                                                                                          -
                                                                                          - - - - - - - -
                                                                                          -
                                                                                          -

                                                                                          result-matching ""

                                                                                          -
                                                                                            -
                                                                                            -
                                                                                            -

                                                                                            No results matching ""

                                                                                            -
                                                                                            -
                                                                                            -
                                                                                            - -
                                                                                            -
                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EntityFormComponent.html b/docs/classes/EntityFormComponent.html deleted file mode 100644 index 8d92b86fd..000000000 --- a/docs/classes/EntityFormComponent.html +++ /dev/null @@ -1,550 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                            -
                                                                                            - - -
                                                                                            -
                                                                                            - - - - - - - - - - - - - - - -
                                                                                            -
                                                                                            -

                                                                                            -

                                                                                            File

                                                                                            -

                                                                                            -

                                                                                            - libs/shared/src/lib/containers/entity/entity-form.component.ts -

                                                                                            - - - -

                                                                                            -

                                                                                            Implements

                                                                                            -

                                                                                            -

                                                                                            - OnInit -

                                                                                            - - -
                                                                                            -

                                                                                            Index

                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                            -
                                                                                            Properties
                                                                                            -
                                                                                            - -
                                                                                            -
                                                                                            Methods
                                                                                            -
                                                                                            - -
                                                                                            -
                                                                                            - -
                                                                                            -

                                                                                            Constructor

                                                                                            - - - - - - - - - - - - - -
                                                                                            -constructor(data: literal type, dialogRef: MatDialogRef>) -
                                                                                            - -
                                                                                            -
                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                            NameTypeOptional
                                                                                            data - literal type - - No -
                                                                                            dialogRef - MatDialogRef<EntityFormComponent<TEntity>> - - No -
                                                                                            -
                                                                                            -
                                                                                            -
                                                                                            - -
                                                                                            - -

                                                                                            - Properties -

                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                            - - - - entity - - - -
                                                                                            - entity: TEntity - -
                                                                                            - Type : TEntity - -
                                                                                            - -
                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                            - - - - entityForm - - - -
                                                                                            - entityForm: FormGroup - -
                                                                                            - Type : FormGroup - -
                                                                                            - -
                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                            - - - - title - - - -
                                                                                            - title: string - -
                                                                                            - Type : string - -
                                                                                            - -
                                                                                            -
                                                                                            - -
                                                                                            - -

                                                                                            - Methods -

                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                            - - - - Abstract - buildForm - - - -
                                                                                            - - buildForm(entity: TEntity) -
                                                                                            - -
                                                                                            - -
                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                            NameTypeOptional
                                                                                            entity - TEntity - - No -
                                                                                            -
                                                                                            -
                                                                                            -
                                                                                            -
                                                                                            - Returns : any - -
                                                                                            -
                                                                                            - -
                                                                                            -
                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                            - - - - ngOnInit - - - -
                                                                                            -ngOnInit() -
                                                                                            - -
                                                                                            - -
                                                                                            - Returns : void - -
                                                                                            -
                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                            - - - - submit - - - -
                                                                                            -submit() -
                                                                                            - -
                                                                                            - -
                                                                                            - Returns : void - -
                                                                                            -
                                                                                            -
                                                                                            - - - - - - -
                                                                                            - - -
                                                                                            -
                                                                                            import { Inject, OnInit } from '@angular/core';
                                                                                            -import { Entity } from './entity.model';
                                                                                            -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
                                                                                            -import { FormGroup } from '@angular/forms';
                                                                                            -
                                                                                            -export abstract class EntityFormComponent<TEntity extends Entity> implements OnInit {
                                                                                            -  title: string;
                                                                                            -  entity: TEntity;
                                                                                            -  entityForm: FormGroup;
                                                                                            -
                                                                                            -  constructor(
                                                                                            -    @Inject(MAT_DIALOG_DATA) protected data: { title: string; payload: TEntity },
                                                                                            -    protected dialogRef: MatDialogRef<EntityFormComponent<TEntity>>,
                                                                                            -  ) {
                                                                                            -    this.title = data.title;
                                                                                            -    this.entity = data.payload;
                                                                                            -  }
                                                                                            -
                                                                                            -  abstract buildForm(entity: TEntity);
                                                                                            -
                                                                                            -  ngOnInit() {
                                                                                            -    this.buildForm(this.entity);
                                                                                            -  }
                                                                                            -
                                                                                            -  submit() {
                                                                                            -    this.dialogRef.close(this.entityForm.value as Partial<TEntity>);
                                                                                            -  }
                                                                                            -}
                                                                                            -
                                                                                            -
                                                                                            -
                                                                                            - - - - - - - -
                                                                                            -
                                                                                            -

                                                                                            result-matching ""

                                                                                            -
                                                                                              -
                                                                                              -
                                                                                              -

                                                                                              No results matching ""

                                                                                              -
                                                                                              -
                                                                                              -
                                                                                              - -
                                                                                              -
                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EntityNotFoundFilter.html b/docs/classes/EntityNotFoundFilter.html deleted file mode 100644 index 86eae6d3c..000000000 --- a/docs/classes/EntityNotFoundFilter.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                              -
                                                                                              - - -
                                                                                              -
                                                                                              - - - - - - - - - - - - - - - -
                                                                                              -
                                                                                              -

                                                                                              -

                                                                                              File

                                                                                              -

                                                                                              -

                                                                                              - apps/api/src/core/filters/entity-not-found.filter.ts -

                                                                                              - - - -

                                                                                              -

                                                                                              Implements

                                                                                              -

                                                                                              -

                                                                                              - ExceptionFilter -

                                                                                              - - -
                                                                                              -

                                                                                              Index

                                                                                              - - - - - - - - - - - - - - - -
                                                                                              -
                                                                                              Methods
                                                                                              -
                                                                                              - -
                                                                                              -
                                                                                              - - - -
                                                                                              - -

                                                                                              - Methods -

                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                              - - - - catch - - - -
                                                                                              -catch(exception: EntityNotFoundError, _host: ArgumentsHost) -
                                                                                              - -
                                                                                              - -
                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                              NameTypeOptional
                                                                                              exception - EntityNotFoundError - - No -
                                                                                              _host - ArgumentsHost - - No -
                                                                                              -
                                                                                              -
                                                                                              -
                                                                                              -
                                                                                              - Returns : void - -
                                                                                              -
                                                                                              - -
                                                                                              -
                                                                                              -
                                                                                              - - - - - - -
                                                                                              - - -
                                                                                              -
                                                                                              import { EntityNotFoundError } from 'typeorm/error/EntityNotFoundError';
                                                                                              -import { ArgumentsHost, Catch, ExceptionFilter, NotFoundException } from '@nestjs/common';
                                                                                              -
                                                                                              -@Catch(EntityNotFoundError)
                                                                                              -export class EntityNotFoundFilter implements ExceptionFilter {
                                                                                              -  catch(exception: EntityNotFoundError, _host: ArgumentsHost) {
                                                                                              -    throw new NotFoundException(exception.message);
                                                                                              -  }
                                                                                              -}
                                                                                              -
                                                                                              -
                                                                                              -
                                                                                              - - - - - - - -
                                                                                              -
                                                                                              -

                                                                                              result-matching ""

                                                                                              -
                                                                                                -
                                                                                                -
                                                                                                -

                                                                                                No results matching ""

                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EntityService.html b/docs/classes/EntityService.html deleted file mode 100644 index 7428cf75f..000000000 --- a/docs/classes/EntityService.html +++ /dev/null @@ -1,1096 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                -
                                                                                                - - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - -
                                                                                                -
                                                                                                -

                                                                                                -

                                                                                                File

                                                                                                -

                                                                                                -

                                                                                                - libs/shared/src/lib/containers/entity/entity.service.ts -

                                                                                                - - - - - -
                                                                                                -

                                                                                                Index

                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                -
                                                                                                Properties
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                Methods
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                - -
                                                                                                -

                                                                                                Constructor

                                                                                                - - - - - - - - - - - - - -
                                                                                                -constructor(httpClient: HttpClient) -
                                                                                                - -
                                                                                                -
                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                NameTypeOptional
                                                                                                httpClient - HttpClient - - No -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - -
                                                                                                - -

                                                                                                - Properties -

                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                - - - - Protected - Readonly - baseUrl - - - -
                                                                                                - baseUrl: - -
                                                                                                - Default value : environment.API_BASE_URL -
                                                                                                - -
                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                - - - - Protected - Abstract - entityPath - - - -
                                                                                                - entityPath: string - -
                                                                                                - Type : string - -
                                                                                                - -
                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                - - - - Public - loading$ - - - -
                                                                                                - loading$: - -
                                                                                                - Default value : this.loadingSubject.asObservable() -
                                                                                                - -
                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                - - - - Protected - loadingSubject - - - -
                                                                                                - loadingSubject: - -
                                                                                                - Default value : new BehaviorSubject<boolean>(false) -
                                                                                                - -
                                                                                                -
                                                                                                - -
                                                                                                - -

                                                                                                - Methods -

                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                - - - - Protected - convertToJson - - - -
                                                                                                - - convertToJson(body: any) -
                                                                                                - -
                                                                                                - -
                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                NameTypeOptional
                                                                                                body - any - - No -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - Returns : any - -
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                - - - - delete - - - -
                                                                                                -delete(id: number | string) -
                                                                                                - -
                                                                                                - -
                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                NameTypeOptional
                                                                                                id - number | string - - No -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - Returns : any - -
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                - - - - findAll - - - -
                                                                                                -findAll(filter: Filter, sortOrder: string, pageNumber: number, pageSize: number) -
                                                                                                - -
                                                                                                - -
                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                NameTypeOptionalDefault value
                                                                                                filter - Filter - - No - -
                                                                                                sortOrder - string - - No - - 'asc' -
                                                                                                pageNumber - number - - No - - 0 -
                                                                                                pageSize - number - - No - - 100 -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - Returns : Observable | Observable - -
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                - - - - getAll - - - -
                                                                                                -getAll() -
                                                                                                - -
                                                                                                - -
                                                                                                - Returns : Observable<T[]> - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                - - - - getById - - - -
                                                                                                -getById(id: number | string) -
                                                                                                - -
                                                                                                - -
                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                NameTypeOptional
                                                                                                id - number | string - - No -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - Returns : any - -
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                - - - - Protected - handleError - - - -
                                                                                                - - handleError(error: HttpErrorResponse) -
                                                                                                - -
                                                                                                - -
                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                NameTypeOptional
                                                                                                error - HttpErrorResponse - - No -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - Returns : any - -
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                - - - - post - - - -
                                                                                                -post(entity: T) -
                                                                                                - -
                                                                                                - -
                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                NameTypeOptional
                                                                                                entity - T - - No -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - Returns : any - -
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                - - - - put - - - -
                                                                                                -put(entity: T) -
                                                                                                - -
                                                                                                - -
                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                NameTypeOptional
                                                                                                entity - T - - No -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - Returns : any - -
                                                                                                -
                                                                                                - -
                                                                                                -
                                                                                                -
                                                                                                - - - - - - -
                                                                                                - - -
                                                                                                -
                                                                                                import { HttpClient, HttpErrorResponse, HttpParams } from '@angular/common/http';
                                                                                                -import { Observable, BehaviorSubject, throwError } from 'rxjs';
                                                                                                -import { environment } from '@env/environment';
                                                                                                -import { Entity } from './entity.model';
                                                                                                -import { map, retry, catchError, finalize } from 'rxjs/operators';
                                                                                                -import * as moment from 'moment';
                                                                                                -
                                                                                                -export interface Filter {
                                                                                                -  [name: string]: string | string[];
                                                                                                -}
                                                                                                -
                                                                                                -export abstract class EntityService<T extends Entity> {
                                                                                                -  protected readonly baseUrl = environment.API_BASE_URL;
                                                                                                -  protected loadingSubject = new BehaviorSubject<boolean>(false);
                                                                                                -  public loading$ = this.loadingSubject.asObservable();
                                                                                                -
                                                                                                -  protected abstract entityPath: string;
                                                                                                -
                                                                                                -  constructor(protected httpClient: HttpClient) {}
                                                                                                -
                                                                                                -  getById(id: number | string) {
                                                                                                -    // this.loadingSubject.next(true);
                                                                                                -    return this.httpClient.get<T>(`${this.baseUrl}/${this.entityPath}/${id}`).pipe(
                                                                                                -      catchError(this.handleError),
                                                                                                -      // finalize(() => this.loadingSubject.next(false))
                                                                                                -    );
                                                                                                -  }
                                                                                                -
                                                                                                -  findAll(filter: Filter, sortOrder = 'asc', pageNumber = 0, pageSize = 100): Observable<T[]> | Observable<never> {
                                                                                                -    this.loadingSubject.next(true);
                                                                                                -    return this.httpClient
                                                                                                -      .get<T[]>(`${this.baseUrl}/${this.entityPath}`, {
                                                                                                -        params: new HttpParams()
                                                                                                -          .set('filter', 'filter TODO')
                                                                                                -          .set('sortOrder', sortOrder)
                                                                                                -          .set('pageNumber', pageNumber.toString())
                                                                                                -          .set('pageSize', pageSize.toString()),
                                                                                                -      })
                                                                                                -      .pipe(
                                                                                                -        retry(3), // retry a failed request up to 3 times
                                                                                                -        catchError(this.handleError),
                                                                                                -        finalize(() => this.loadingSubject.next(false)),
                                                                                                -      );
                                                                                                -  }
                                                                                                -
                                                                                                -  getAll(): Observable<T[]> {
                                                                                                -    this.loadingSubject.next(true);
                                                                                                -    return this.httpClient.get<T[]>(`${this.baseUrl}/${this.entityPath}`).pipe(
                                                                                                -      retry(3), // retry a failed request up to 3 times
                                                                                                -      catchError(this.handleError),
                                                                                                -      finalize(() => this.loadingSubject.next(false)),
                                                                                                -    );
                                                                                                -  }
                                                                                                -
                                                                                                -  delete(id: number | string) {
                                                                                                -    this.loadingSubject.next(true);
                                                                                                -    return this.httpClient.delete(`${this.baseUrl}/${this.entityPath}/${id}`).pipe(
                                                                                                -      catchError(this.handleError),
                                                                                                -      finalize(() => this.loadingSubject.next(false)),
                                                                                                -    );
                                                                                                -  }
                                                                                                -
                                                                                                -  post(entity: T) {
                                                                                                -    this.loadingSubject.next(true);
                                                                                                -    return this.httpClient.post(`${this.baseUrl}/${this.entityPath}`, entity).pipe(
                                                                                                -      catchError(this.handleError),
                                                                                                -      finalize(() => this.loadingSubject.next(false)),
                                                                                                -    );
                                                                                                -  }
                                                                                                -
                                                                                                -  put(entity: T) {
                                                                                                -    console.log(entity);
                                                                                                -    this.loadingSubject.next(true);
                                                                                                -    return this.httpClient.put(`${this.baseUrl}/${this.entityPath}`, entity).pipe(
                                                                                                -      catchError(this.handleError),
                                                                                                -      finalize(() => this.loadingSubject.next(false)),
                                                                                                -    );
                                                                                                -  }
                                                                                                -
                                                                                                -  protected handleError(error: HttpErrorResponse) {
                                                                                                -    if (error.error instanceof ErrorEvent) {
                                                                                                -      // A client-side or network error occurred. Handle it accordingly.
                                                                                                -      console.error('An error occurred:', error.error.message);
                                                                                                -    } else {
                                                                                                -      // The backend returned an unsuccessful response code.
                                                                                                -      // The response body may contain clues as to what went wrong,
                                                                                                -      console.error(`Backend returned code ${error.status}, ` + `body was: ${error.error}`);
                                                                                                -    }
                                                                                                -    // return an ErrorObservable with a user-facing error message
                                                                                                -    return throwError('Something bad happened; please try again later.');
                                                                                                -  }
                                                                                                -
                                                                                                -  protected convertToJson(body: any) {
                                                                                                -    const temporalFunctionToJson = Date.prototype.toJSON;
                                                                                                -    Date.prototype.toJSON = function() {
                                                                                                -      return moment(this).format('YYYY-MM-DD');
                                                                                                -    };
                                                                                                -
                                                                                                -    const jsonBody = JSON.stringify(body);
                                                                                                -
                                                                                                -    Date.prototype.toJSON = temporalFunctionToJson;
                                                                                                -    return jsonBody;
                                                                                                -  }
                                                                                                -}
                                                                                                -
                                                                                                -
                                                                                                -
                                                                                                - - - - - - - -
                                                                                                -
                                                                                                -

                                                                                                result-matching ""

                                                                                                -
                                                                                                  -
                                                                                                  -
                                                                                                  -

                                                                                                  No results matching ""

                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/EventBusGateway.html b/docs/classes/EventBusGateway.html deleted file mode 100644 index bec13a966..000000000 --- a/docs/classes/EventBusGateway.html +++ /dev/null @@ -1,1276 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                  -
                                                                                                  - - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                  -
                                                                                                  -

                                                                                                  -

                                                                                                  File

                                                                                                  -

                                                                                                  -

                                                                                                  - apps/api/src/shared/eventbus.gateway.ts -

                                                                                                  - - -

                                                                                                  -

                                                                                                  Extends

                                                                                                  -

                                                                                                  -

                                                                                                  - EventEmitter -

                                                                                                  - -

                                                                                                  -

                                                                                                  Implements

                                                                                                  -

                                                                                                  -

                                                                                                  - OnGatewayInit - OnGatewayConnection - OnGatewayDisconnect -

                                                                                                  - - -
                                                                                                  -

                                                                                                  Index

                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  -
                                                                                                  Properties
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  Methods
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -

                                                                                                  Constructor

                                                                                                  - - - - - - - - - - -
                                                                                                  -constructor() -
                                                                                                  - -
                                                                                                  -
                                                                                                  - -
                                                                                                  - -

                                                                                                  - Properties -

                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Static - ACTIONS - - - -
                                                                                                  - ACTIONS: string - -
                                                                                                  - Type : string - -
                                                                                                  - Default value : 'actions' -
                                                                                                  - -
                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - clients - - - -
                                                                                                  - clients: ISocket[] - -
                                                                                                  - Type : ISocket[] - -
                                                                                                  - Default value : [] -
                                                                                                  - -
                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Static - EVENTS - - - -
                                                                                                  - EVENTS: string - -
                                                                                                  - Type : string - -
                                                                                                  - Default value : 'events' -
                                                                                                  - -
                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Private - Readonly - logger - - - -
                                                                                                  - logger: - -
                                                                                                  - Default value : new Logger(EventBusGateway.name) -
                                                                                                  - -
                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - server - - - -
                                                                                                  - server: Server - -
                                                                                                  - Type : Server - -
                                                                                                  - Decorators : -
                                                                                                  - - @WebSocketServer()
                                                                                                  -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - -
                                                                                                  - -

                                                                                                  - Methods -

                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Public - afterInit - - - -
                                                                                                  - - afterInit(server) -
                                                                                                  - -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                  NameOptional
                                                                                                  server - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : void - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Private - getSocketsForUser - - - -
                                                                                                  - - getSocketsForUser(user: User) -
                                                                                                  - -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                  NameTypeOptional
                                                                                                  user - User - - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : ISocket[] - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Public - handleConnection - - - -
                                                                                                  - - handleConnection(client: ISocket) -
                                                                                                  - -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                  NameTypeOptional
                                                                                                  client - ISocket - - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : void - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Public - handleDisconnect - - - -
                                                                                                  - - handleDisconnect(client: ISocket) -
                                                                                                  - -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                  NameTypeOptional
                                                                                                  client - ISocket - - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : void - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - onActions - - - -
                                                                                                  -onActions(client: ISocket, action: any) -
                                                                                                  - Decorators : -
                                                                                                  - - @SubscribeMessage('actions')
                                                                                                  -
                                                                                                  -
                                                                                                  - -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  NameTypeOptional
                                                                                                  client - ISocket - - No -
                                                                                                  action - any - - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : void - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - onAuthenticate - - - -
                                                                                                  -onAuthenticate(client: ISocket, data: any) -
                                                                                                  - Decorators : -
                                                                                                  - - @UseGuards(WsAuthGuard)
                                                                                                  @SubscribeMessage('auth')
                                                                                                  -
                                                                                                  -
                                                                                                  - -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  NameTypeOptional
                                                                                                  client - ISocket - - No -
                                                                                                  data - any - - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : { event: string; status: string; } - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - onTest - - - -
                                                                                                  -onTest(client: ISocket, data: any) -
                                                                                                  - Decorators : -
                                                                                                  - - @SubscribeMessage('test')
                                                                                                  -
                                                                                                  -
                                                                                                  - -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  NameTypeOptional
                                                                                                  client - ISocket - - No -
                                                                                                  data - any - - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : Observable<WsResponse<any>> - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Public - sendActionToAll - - - -
                                                                                                  - - sendActionToAll(action: any) -
                                                                                                  - -
                                                                                                  - Type parameters : -
                                                                                                    -
                                                                                                  • T
                                                                                                  • -
                                                                                                  -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                  NameTypeOptional
                                                                                                  action - any - - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : void - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  - - - - Public - sendActionToUser - - - -
                                                                                                  - - sendActionToUser(user: User, action: any) -
                                                                                                  - -
                                                                                                  - Type parameters : -
                                                                                                    -
                                                                                                  • T
                                                                                                  • -
                                                                                                  -
                                                                                                  - -
                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                  NameTypeOptional
                                                                                                  user - User - - No -
                                                                                                  action - any - - No -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - Returns : void - -
                                                                                                  -
                                                                                                  - -
                                                                                                  -
                                                                                                  -
                                                                                                  - - - - - - -
                                                                                                  - - -
                                                                                                  -
                                                                                                  import {
                                                                                                  -  OnGatewayConnection,
                                                                                                  -  OnGatewayDisconnect,
                                                                                                  -  OnGatewayInit,
                                                                                                  -  SubscribeMessage,
                                                                                                  -  WebSocketGateway,
                                                                                                  -  WebSocketServer,
                                                                                                  -  WsResponse,
                                                                                                  -} from '@nestjs/websockets';
                                                                                                  -import { Observable, of } from 'rxjs';
                                                                                                  -import { EventEmitter } from 'events';
                                                                                                  -import { Logger, UseGuards } from '@nestjs/common';
                                                                                                  -import { delay } from 'rxjs/operators';
                                                                                                  -import { ISocket } from './interfaces/socket.interface';
                                                                                                  -import { Server } from 'socket.io';
                                                                                                  -import { getActionTypeFromInstance, actionMatcher } from '@ngxs/store';
                                                                                                  -import { AuthService, User, WsAuthGuard } from '../auth';
                                                                                                  -
                                                                                                  -@WebSocketGateway({ namespace: 'eventbus' })
                                                                                                  -export class EventBusGateway extends EventEmitter implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
                                                                                                  -  private readonly logger = new Logger(EventBusGateway.name);
                                                                                                  -  static EVENTS = 'events';
                                                                                                  -  static ACTIONS = 'actions';
                                                                                                  -
                                                                                                  -  @WebSocketServer()
                                                                                                  -  server: Server;
                                                                                                  -  clients: ISocket[] = [];
                                                                                                  -
                                                                                                  -  constructor(/*private authService: AuthService*/) {
                                                                                                  -    super();
                                                                                                  -  }
                                                                                                  -
                                                                                                  -  public afterInit(server) {}
                                                                                                  -
                                                                                                  -  public handleConnection(client: ISocket) {
                                                                                                  -    // this.logger.log(`Client connected => ${client.id}  ${client.handshake.query.token}`);
                                                                                                  -    // TODO do auth here
                                                                                                  -    this.clients.push(client);
                                                                                                  -  }
                                                                                                  -
                                                                                                  -  public handleDisconnect(client: ISocket) {
                                                                                                  -    // this.logger.log(`Client disconnected => ${client.id}`);
                                                                                                  -    // FIXME: remove any. only needed for docker build
                                                                                                  -    this.clients = this.clients.filter(c => (c as any).id !== (client as any).id);
                                                                                                  -  }
                                                                                                  -
                                                                                                  -  @UseGuards(WsAuthGuard)
                                                                                                  -  @SubscribeMessage('auth')
                                                                                                  -  onAuthenticate(client: ISocket, data: any) {
                                                                                                  -    // this.logger.log(`auth  => ${client.id}  ${client.user.userId}`);
                                                                                                  -    const event = 'auth';
                                                                                                  -    return { event, status: 'success' };
                                                                                                  -  }
                                                                                                  -
                                                                                                  -  @SubscribeMessage('test')
                                                                                                  -  onTest(client: ISocket, data: any): Observable<WsResponse<any>> {
                                                                                                  -    // this.logger.log(`test  => ${client.id}  ${client.user.userId}`);
                                                                                                  -    const event = 'test';
                                                                                                  -    // client.broadcast.emit({event, data});
                                                                                                  -    return of({ event, data }).pipe(delay(1000));
                                                                                                  -  }
                                                                                                  -
                                                                                                  -  @SubscribeMessage('actions')
                                                                                                  -  onActions(client: ISocket, action: any) {
                                                                                                  -    // this.logger.log(`actions  => ${client.id}  ${client.user.userId} ${action.type} ${action.payload}`);
                                                                                                  -    this.emit(action.type, action);
                                                                                                  -  }
                                                                                                  -
                                                                                                  -  public sendActionToUser<T>(user: User, action: any): void {
                                                                                                  -    const clients = this.getSocketsForUser(user);
                                                                                                  -    const type = getActionTypeFromInstance(action);
                                                                                                  -    // FIXME: remove any. only needed for docker build
                                                                                                  -    clients.forEach(socket => (socket as any).emit(EventBusGateway.ACTIONS, { ...action, type }));
                                                                                                  -  }
                                                                                                  -
                                                                                                  -  public sendActionToAll<T>(action: any): void {
                                                                                                  -    const type = getActionTypeFromInstance(action);
                                                                                                  -    // FIXME: remove any. only needed for docker build
                                                                                                  -    this.clients.forEach(socket => (socket as any).emit(EventBusGateway.ACTIONS, { ...action, type }));
                                                                                                  -  }
                                                                                                  -
                                                                                                  -  private getSocketsForUser(user: User): ISocket[] {
                                                                                                  -    return this.clients.filter(c => c.user && c.user.userId === user.userId);
                                                                                                  -  }
                                                                                                  -}
                                                                                                  -
                                                                                                  -// https://github.com/evebook/api/blob/master/src/modules/websocket/websocket.gateway.ts
                                                                                                  -
                                                                                                  -
                                                                                                  -
                                                                                                  - - - - - - - -
                                                                                                  -
                                                                                                  -

                                                                                                  result-matching ""

                                                                                                  -
                                                                                                    -
                                                                                                    -
                                                                                                    -

                                                                                                    No results matching ""

                                                                                                    -
                                                                                                    -
                                                                                                    -
                                                                                                    - -
                                                                                                    -
                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/FetchConversations.html b/docs/classes/FetchConversations.html deleted file mode 100644 index 671121a79..000000000 --- a/docs/classes/FetchConversations.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                    -
                                                                                                    - - -
                                                                                                    -
                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                    -
                                                                                                    -

                                                                                                    -

                                                                                                    File

                                                                                                    -

                                                                                                    -

                                                                                                    - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                                                                    - - - - - -
                                                                                                    -

                                                                                                    Index

                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                    -
                                                                                                    Properties
                                                                                                    -
                                                                                                    -
                                                                                                      -
                                                                                                    • - Static - Readonly - type -
                                                                                                    • -
                                                                                                    -
                                                                                                    -
                                                                                                    - - -
                                                                                                    - -

                                                                                                    - Properties -

                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                    - - - - Static - Readonly - type - - - -
                                                                                                    - type: string - -
                                                                                                    - Type : string - -
                                                                                                    - Default value : '[ChatBox] FetchConversations' -
                                                                                                    - -
                                                                                                    -
                                                                                                    - - - - - - - -
                                                                                                    - - -
                                                                                                    -
                                                                                                    import { ChatMessage, Subject } from '../chat-message.model';
                                                                                                    -
                                                                                                    -export interface SynthesisVoice {
                                                                                                    -  voice: SpeechSynthesisVoice;
                                                                                                    -  volume: number;
                                                                                                    -  rate: number;
                                                                                                    -  pitch: number;
                                                                                                    -}
                                                                                                    -
                                                                                                    -// Actions
                                                                                                    -export class FetchConversations {
                                                                                                    -  static readonly type = '[ChatBox] FetchConversations';
                                                                                                    -}
                                                                                                    -
                                                                                                    -export class CreateNewConversation {
                                                                                                    -  static readonly type = '[ChatBox] CreateNewConversation';
                                                                                                    -}
                                                                                                    -
                                                                                                    -export class SwitchConversation {
                                                                                                    -  static readonly type = '[ChatBox] SwitchConversation';
                                                                                                    -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                    -}
                                                                                                    -
                                                                                                    -export class SaveConversation {
                                                                                                    -  static readonly type = '[ChatBox] SaveConversation';
                                                                                                    -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                    -}
                                                                                                    -
                                                                                                    -export class CloseConversation {
                                                                                                    -  static readonly type = '[ChatBox] CloseConversation';
                                                                                                    -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                    -}
                                                                                                    -
                                                                                                    -export class AddMessage {
                                                                                                    -  static readonly type = '[ChatBox] AddMessage';
                                                                                                    -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                                                                    -}
                                                                                                    -
                                                                                                    -export class StartVoiceCommand {
                                                                                                    -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                                                                    -}
                                                                                                    -export class SendMessage {
                                                                                                    -  static readonly type = '[ChatBox] SendMessage';
                                                                                                    -  constructor(public readonly payload: { message: string }) {}
                                                                                                    -}
                                                                                                    -export class SendTyping {
                                                                                                    -  static readonly type = '[ChatBox] Typing';
                                                                                                    -  constructor(public readonly payload: Subject) {}
                                                                                                    -}
                                                                                                    -
                                                                                                    -export class MarkAsRead {
                                                                                                    -  static readonly type = '[ChatBox] MarkAsRead';
                                                                                                    -}
                                                                                                    -
                                                                                                    -
                                                                                                    -
                                                                                                    - - - - - - - -
                                                                                                    -
                                                                                                    -

                                                                                                    result-matching ""

                                                                                                    -
                                                                                                      -
                                                                                                      -
                                                                                                      -

                                                                                                      No results matching ""

                                                                                                      -
                                                                                                      -
                                                                                                      -
                                                                                                      - -
                                                                                                      -
                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/FetchNotifications.html b/docs/classes/FetchNotifications.html deleted file mode 100644 index d3ba42a5b..000000000 --- a/docs/classes/FetchNotifications.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                      -
                                                                                                      - - -
                                                                                                      -
                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                      -
                                                                                                      -

                                                                                                      -

                                                                                                      File

                                                                                                      -

                                                                                                      -

                                                                                                      - libs/notifications/src/lib/notifications.actions.ts -

                                                                                                      - - - - - -
                                                                                                      -

                                                                                                      Index

                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                      -
                                                                                                      Properties
                                                                                                      -
                                                                                                      -
                                                                                                        -
                                                                                                      • - Static - Readonly - type -
                                                                                                      • -
                                                                                                      -
                                                                                                      -
                                                                                                      - - -
                                                                                                      - -

                                                                                                      - Properties -

                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                      - - - - Static - Readonly - type - - - -
                                                                                                      - type: string - -
                                                                                                      - Type : string - -
                                                                                                      - Default value : '[Notifications] Fetch' -
                                                                                                      - -
                                                                                                      -
                                                                                                      - - - - - - - -
                                                                                                      - - -
                                                                                                      -
                                                                                                      import { Notification } from './notification.model';
                                                                                                      -
                                                                                                      -// Actions
                                                                                                      -export class FetchNotifications {
                                                                                                      -  static readonly type = '[Notifications] Fetch';
                                                                                                      -}
                                                                                                      -
                                                                                                      -export class AddNotification {
                                                                                                      -  static readonly type = '[Notifications] Add';
                                                                                                      -  constructor(public readonly payload: Notification) {}
                                                                                                      -}
                                                                                                      -
                                                                                                      -export class DeleteNotification {
                                                                                                      -  static readonly type = '[Notifications] Delete';
                                                                                                      -
                                                                                                      -  constructor(public readonly payload: Notification) {}
                                                                                                      -}
                                                                                                      -
                                                                                                      -export class MarkAsRead {
                                                                                                      -  static readonly type = '[Notifications] MarkAsRead';
                                                                                                      -  constructor(public readonly payload: Notification) {}
                                                                                                      -}
                                                                                                      -
                                                                                                      -export class MarkAllAsRead {
                                                                                                      -  static readonly type = '[Notifications] MarkAllAsRead';
                                                                                                      -}
                                                                                                      -
                                                                                                      -
                                                                                                      -
                                                                                                      - - - - - - - -
                                                                                                      -
                                                                                                      -

                                                                                                      result-matching ""

                                                                                                      -
                                                                                                        -
                                                                                                        -
                                                                                                        -

                                                                                                        No results matching ""

                                                                                                        -
                                                                                                        -
                                                                                                        -
                                                                                                        - -
                                                                                                        -
                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/HttpAuthException.html b/docs/classes/HttpAuthException.html deleted file mode 100644 index 0e7c0d7d2..000000000 --- a/docs/classes/HttpAuthException.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                        -
                                                                                                        - - -
                                                                                                        -
                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                        -
                                                                                                        -

                                                                                                        -

                                                                                                        File

                                                                                                        -

                                                                                                        -

                                                                                                        - apps/api/src/auth/auth.exception.ts -

                                                                                                        - - -

                                                                                                        -

                                                                                                        Extends

                                                                                                        -

                                                                                                        -

                                                                                                        - HttpException -

                                                                                                        - - - - -
                                                                                                        -

                                                                                                        Constructor

                                                                                                        - - - - - - - - - - - - - -
                                                                                                        -constructor(message, error) -
                                                                                                        - -
                                                                                                        -
                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                        NameOptional
                                                                                                        message - No -
                                                                                                        error - No -
                                                                                                        -
                                                                                                        -
                                                                                                        -
                                                                                                        - - - - - - - - -
                                                                                                        - - -
                                                                                                        -
                                                                                                        import { HttpException, HttpStatus } from '@nestjs/common';
                                                                                                        -import { WsException } from '@nestjs/websockets';
                                                                                                        -
                                                                                                        -export const createExceptionBody = (message: any, error: string, statusCode: number) =>
                                                                                                        -  message ? { statusCode, error, message } : { statusCode, error };
                                                                                                        -
                                                                                                        -export class HttpAuthException extends HttpException {
                                                                                                        -  constructor(message, error) {
                                                                                                        -    super(createExceptionBody(message, error, HttpStatus.UNAUTHORIZED), HttpStatus.UNAUTHORIZED);
                                                                                                        -  }
                                                                                                        -}
                                                                                                        -
                                                                                                        -export class WsAuthException extends WsException {
                                                                                                        -  constructor(message, error) {
                                                                                                        -    super(createExceptionBody(message, error, HttpStatus.UNAUTHORIZED));
                                                                                                        -  }
                                                                                                        -}
                                                                                                        -
                                                                                                        -
                                                                                                        -
                                                                                                        - - - - - - - -
                                                                                                        -
                                                                                                        -

                                                                                                        result-matching ""

                                                                                                        -
                                                                                                          -
                                                                                                          -
                                                                                                          -

                                                                                                          No results matching ""

                                                                                                          -
                                                                                                          -
                                                                                                          -
                                                                                                          - -
                                                                                                          -
                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Image.html b/docs/classes/Image.html deleted file mode 100644 index fe33ddf88..000000000 --- a/docs/classes/Image.html +++ /dev/null @@ -1,384 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                          -
                                                                                                          - - -
                                                                                                          -
                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                          -
                                                                                                          -

                                                                                                          -

                                                                                                          File

                                                                                                          -

                                                                                                          -

                                                                                                          - apps/api/src/user/profile/Image.entity.ts -

                                                                                                          - - - - - -
                                                                                                          -

                                                                                                          Index

                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                          -
                                                                                                          Properties
                                                                                                          -
                                                                                                          - -
                                                                                                          -
                                                                                                          - - -
                                                                                                          - -

                                                                                                          - Properties -

                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                          - - - - id - - - -
                                                                                                          - id: number - -
                                                                                                          - Type : number - -
                                                                                                          - Decorators : -
                                                                                                          - - @PrimaryGeneratedColumn()
                                                                                                          -
                                                                                                          -
                                                                                                          - -
                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                          - - - - image - - - -
                                                                                                          - image: any - -
                                                                                                          - Type : any - -
                                                                                                          - Decorators : -
                                                                                                          - - @Column('bytea')
                                                                                                          -
                                                                                                          -
                                                                                                          - -
                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                          - - - - title - - - -
                                                                                                          - title: string - -
                                                                                                          - Type : string - -
                                                                                                          - Decorators : -
                                                                                                          - - @Column({length: 200})
                                                                                                          -
                                                                                                          -
                                                                                                          - -
                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                          - - - - type - - - -
                                                                                                          - type: ImageType - -
                                                                                                          - Type : ImageType - -
                                                                                                          - Decorators : -
                                                                                                          - - @Column()
                                                                                                          -
                                                                                                          -
                                                                                                          - -
                                                                                                          -
                                                                                                          - - - - - - - -
                                                                                                          - - -
                                                                                                          -
                                                                                                          import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
                                                                                                          -
                                                                                                          -// TODO: https://github.com/nicolaspearson/salespal/blob/master/backend/src/controllers/StockImageController.ts
                                                                                                          -// TODO: https://github.com/mkatrenik/assignar
                                                                                                          -// TODO: https://steemit.com/utopian-io/@morningtundra/storing-and-retreiving-images-in-mongodb-with-nodejs
                                                                                                          -
                                                                                                          -@Entity('image')
                                                                                                          -export class Image {
                                                                                                          -  @PrimaryGeneratedColumn()
                                                                                                          -  id: number;
                                                                                                          -
                                                                                                          -  @Column({ length: 200 })
                                                                                                          -  title: string;
                                                                                                          -
                                                                                                          -  @Column('bytea')
                                                                                                          -  image: any;
                                                                                                          -
                                                                                                          -  @Column()
                                                                                                          -  type: ImageType;
                                                                                                          -
                                                                                                          -  // contentType?
                                                                                                          -  // size?
                                                                                                          -}
                                                                                                          -
                                                                                                          -export enum ImageType {
                                                                                                          -  Profile,
                                                                                                          -  Icon,
                                                                                                          -  Avatar,
                                                                                                          -}
                                                                                                          -
                                                                                                          -
                                                                                                          -
                                                                                                          - - - - - - - -
                                                                                                          -
                                                                                                          -

                                                                                                          result-matching ""

                                                                                                          -
                                                                                                            -
                                                                                                            -
                                                                                                            -

                                                                                                            No results matching ""

                                                                                                            -
                                                                                                            -
                                                                                                            -
                                                                                                            - -
                                                                                                            -
                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/LineChartWidgetOptions.html b/docs/classes/LineChartWidgetOptions.html deleted file mode 100644 index 21dd12484..000000000 --- a/docs/classes/LineChartWidgetOptions.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                            -
                                                                                                            - - -
                                                                                                            -
                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                            -
                                                                                                            -

                                                                                                            -

                                                                                                            File

                                                                                                            -

                                                                                                            -

                                                                                                            - libs/widgets/src/lib/components/line-chart-widget/line-chart-widget-options.interface.ts -

                                                                                                            - - -

                                                                                                            -

                                                                                                            Extends

                                                                                                            -

                                                                                                            -

                                                                                                            - ChartWidgetOptions -

                                                                                                            - - - -
                                                                                                            -

                                                                                                            Index

                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                            -
                                                                                                            Properties
                                                                                                            -
                                                                                                            - -
                                                                                                            -
                                                                                                            - - -
                                                                                                            - -

                                                                                                            - Properties -

                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                            - - - - Optional - gradientFill - - - -
                                                                                                            - gradientFill: literal type - -
                                                                                                            - Type : literal type - -
                                                                                                            - -
                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                            - - - - Optional - background - - - -
                                                                                                            - background: string - -
                                                                                                            - Type : string - -
                                                                                                            -
                                                                                                            Inherited from ChartWidgetOptions -
                                                                                                            -
                                                                                                            -
                                                                                                            Defined in ChartWidgetOptions:5
                                                                                                            -
                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                            - - - - Optional - color - - - -
                                                                                                            - color: string - -
                                                                                                            - Type : string - -
                                                                                                            -
                                                                                                            Inherited from ChartWidgetOptions -
                                                                                                            -
                                                                                                            -
                                                                                                            Defined in ChartWidgetOptions:6
                                                                                                            -
                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                            - - - - Optional - gain - - - -
                                                                                                            - gain: number | string - -
                                                                                                            - Type : number | string - -
                                                                                                            -
                                                                                                            Inherited from ChartWidgetOptions -
                                                                                                            -
                                                                                                            -
                                                                                                            Defined in ChartWidgetOptions:3
                                                                                                            -
                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                            - - - - Optional - subTitle - - - -
                                                                                                            - subTitle: string - -
                                                                                                            - Type : string - -
                                                                                                            -
                                                                                                            Inherited from ChartWidgetOptions -
                                                                                                            -
                                                                                                            -
                                                                                                            Defined in ChartWidgetOptions:4
                                                                                                            -
                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                            - - - - title - - - -
                                                                                                            - title: string - -
                                                                                                            - Type : string - -
                                                                                                            -
                                                                                                            Inherited from ChartWidgetOptions -
                                                                                                            -
                                                                                                            -
                                                                                                            Defined in ChartWidgetOptions:2
                                                                                                            -
                                                                                                            -
                                                                                                            - - - - - - - -
                                                                                                            - - -
                                                                                                            -
                                                                                                            import { ChartWidgetOptions } from '../chart-widget/chart-widget-options.interface';
                                                                                                            -
                                                                                                            -export class LineChartWidgetOptions extends ChartWidgetOptions {
                                                                                                            -  gradientFill?: {
                                                                                                            -    from: string;
                                                                                                            -    to: string;
                                                                                                            -  };
                                                                                                            -}
                                                                                                            -
                                                                                                            -
                                                                                                            -
                                                                                                            - - - - - - - -
                                                                                                            -
                                                                                                            -

                                                                                                            result-matching ""

                                                                                                            -
                                                                                                              -
                                                                                                              -
                                                                                                              -

                                                                                                              No results matching ""

                                                                                                              -
                                                                                                              -
                                                                                                              -
                                                                                                              - -
                                                                                                              -
                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ListColumn.html b/docs/classes/ListColumn.html deleted file mode 100644 index 781f7a94b..000000000 --- a/docs/classes/ListColumn.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                              -
                                                                                                              - - -
                                                                                                              -
                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                              -
                                                                                                              -

                                                                                                              -

                                                                                                              File

                                                                                                              -

                                                                                                              -

                                                                                                              - libs/widgets/src/lib/components/list/list-column.model.ts -

                                                                                                              - - - - - -
                                                                                                              -

                                                                                                              Index

                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                              -
                                                                                                              Properties
                                                                                                              -
                                                                                                              - -
                                                                                                              -
                                                                                                              - - -
                                                                                                              - -

                                                                                                              - Properties -

                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                              - - - - displayFn - - - -
                                                                                                              - displayFn: any - -
                                                                                                              - Type : any - -
                                                                                                              - -
                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                              - - - - Optional - isModelProperty - - - -
                                                                                                              - isModelProperty: boolean - -
                                                                                                              - Type : boolean - -
                                                                                                              - -
                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                              - - - - Optional - name - - - -
                                                                                                              - name: string - -
                                                                                                              - Type : string - -
                                                                                                              - -
                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                              - - - - Optional - property - - - -
                                                                                                              - property: string - -
                                                                                                              - Type : string - -
                                                                                                              - -
                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                              - - - - Optional - visible - - - -
                                                                                                              - visible: boolean - -
                                                                                                              - Type : boolean - -
                                                                                                              - -
                                                                                                              -
                                                                                                              - - - - - - - -
                                                                                                              - - -
                                                                                                              -
                                                                                                              export class ListColumn {
                                                                                                              -  name?: string;
                                                                                                              -  property?: string;
                                                                                                              -  visible?: boolean;
                                                                                                              -  isModelProperty?: boolean;
                                                                                                              -  displayFn: any;
                                                                                                              -}
                                                                                                              -
                                                                                                              -
                                                                                                              -
                                                                                                              - - - - - - - -
                                                                                                              -
                                                                                                              -

                                                                                                              result-matching ""

                                                                                                              -
                                                                                                                -
                                                                                                                -
                                                                                                                -

                                                                                                                No results matching ""

                                                                                                                -
                                                                                                                -
                                                                                                                -
                                                                                                                - -
                                                                                                                -
                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/LoadProfile.html b/docs/classes/LoadProfile.html deleted file mode 100644 index be73d54b3..000000000 --- a/docs/classes/LoadProfile.html +++ /dev/null @@ -1,345 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                -
                                                                                                                - - -
                                                                                                                -
                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                -
                                                                                                                -

                                                                                                                -

                                                                                                                File

                                                                                                                -

                                                                                                                -

                                                                                                                - libs/auth/src/lib/auth.actions.ts -

                                                                                                                - - - - - -
                                                                                                                -

                                                                                                                Index

                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                -
                                                                                                                Properties
                                                                                                                -
                                                                                                                -
                                                                                                                  -
                                                                                                                • - Public - payload -
                                                                                                                • -
                                                                                                                • - Static - Readonly - type -
                                                                                                                • -
                                                                                                                -
                                                                                                                -
                                                                                                                - -
                                                                                                                -

                                                                                                                Constructor

                                                                                                                - - - - - - - - - - - - - -
                                                                                                                -constructor(payload: any) -
                                                                                                                - -
                                                                                                                -
                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                NameTypeOptional
                                                                                                                payload - any - - No -
                                                                                                                -
                                                                                                                -
                                                                                                                -
                                                                                                                - -
                                                                                                                - -

                                                                                                                - Properties -

                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                - - - - Public - payload - - - -
                                                                                                                - payload: any - -
                                                                                                                - Type : any - -
                                                                                                                - -
                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                - - - - Static - Readonly - type - - - -
                                                                                                                - type: string - -
                                                                                                                - Type : string - -
                                                                                                                - Default value : '[Auth] Load Profile' -
                                                                                                                - -
                                                                                                                -
                                                                                                                - - - - - - - -
                                                                                                                - - -
                                                                                                                -
                                                                                                                export enum AuthMode {
                                                                                                                -  ImplicitFLow = 'ImplicitFLow',
                                                                                                                -  PasswordFlow = 'ROPCFlow',
                                                                                                                -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                                                                                                                -}
                                                                                                                -
                                                                                                                -//  Actions
                                                                                                                -export class Login {
                                                                                                                -  static readonly type = '[Auth] Login';
                                                                                                                -  constructor(public readonly payload?: { infoMsg?: string }) {}
                                                                                                                -}
                                                                                                                -export class Logout {
                                                                                                                -  static readonly type = '[Auth] Logout';
                                                                                                                -}
                                                                                                                -export class LoadProfile {
                                                                                                                -  static readonly type = '[Auth] Load Profile';
                                                                                                                -  constructor(public payload: any) {}
                                                                                                                -}
                                                                                                                -export class ChangeAuthMode {
                                                                                                                -  static readonly type = '[Auth] Change Auth Mode';
                                                                                                                -  constructor(public readonly payload: AuthMode) {}
                                                                                                                -}
                                                                                                                -
                                                                                                                -// Mutation Actions
                                                                                                                -export class LoginSuccess {
                                                                                                                -  static readonly type = '[Auth] Login Success';
                                                                                                                -  constructor(public readonly payload: any) {}
                                                                                                                -}
                                                                                                                -export class LoginCanceled {
                                                                                                                -  static readonly type = '[Auth] Login Canceled';
                                                                                                                -}
                                                                                                                -export class LogoutSuccess {
                                                                                                                -  static readonly type = '[Auth] Logout Success';
                                                                                                                -}
                                                                                                                -export class ProfileLoaded {
                                                                                                                -  static readonly type = '[Auth] Profile Loaded';
                                                                                                                -}
                                                                                                                -export class AuthModeChanged {
                                                                                                                -  static readonly type = '[Auth] Auth Mode Changed';
                                                                                                                -  constructor(public readonly payload: AuthMode) {}
                                                                                                                -}
                                                                                                                -
                                                                                                                -
                                                                                                                -
                                                                                                                - - - - - - - -
                                                                                                                -
                                                                                                                -

                                                                                                                result-matching ""

                                                                                                                -
                                                                                                                  -
                                                                                                                  -
                                                                                                                  -

                                                                                                                  No results matching ""

                                                                                                                  -
                                                                                                                  -
                                                                                                                  -
                                                                                                                  - -
                                                                                                                  -
                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Login.html b/docs/classes/Login.html deleted file mode 100644 index e73d2ef46..000000000 --- a/docs/classes/Login.html +++ /dev/null @@ -1,349 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                  -
                                                                                                                  - - -
                                                                                                                  -
                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                  -
                                                                                                                  -

                                                                                                                  -

                                                                                                                  File

                                                                                                                  -

                                                                                                                  -

                                                                                                                  - libs/auth/src/lib/auth.actions.ts -

                                                                                                                  - - - - - -
                                                                                                                  -

                                                                                                                  Index

                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                  -
                                                                                                                  Properties
                                                                                                                  -
                                                                                                                  -
                                                                                                                    -
                                                                                                                  • - Public - Readonly - Optional - payload -
                                                                                                                  • -
                                                                                                                  • - Static - Readonly - type -
                                                                                                                  • -
                                                                                                                  -
                                                                                                                  -
                                                                                                                  - -
                                                                                                                  -

                                                                                                                  Constructor

                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                  -constructor(payload?: literal type) -
                                                                                                                  - -
                                                                                                                  -
                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                  NameTypeOptional
                                                                                                                  payload - literal type - - Yes -
                                                                                                                  -
                                                                                                                  -
                                                                                                                  -
                                                                                                                  - -
                                                                                                                  - -

                                                                                                                  - Properties -

                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                  - - - - Public - Readonly - Optional - payload - - - -
                                                                                                                  - payload: literal type - -
                                                                                                                  - Type : literal type - -
                                                                                                                  - -
                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                  - - - - Static - Readonly - type - - - -
                                                                                                                  - type: string - -
                                                                                                                  - Type : string - -
                                                                                                                  - Default value : '[Auth] Login' -
                                                                                                                  - -
                                                                                                                  -
                                                                                                                  - - - - - - - -
                                                                                                                  - - -
                                                                                                                  -
                                                                                                                  export enum AuthMode {
                                                                                                                  -  ImplicitFLow = 'ImplicitFLow',
                                                                                                                  -  PasswordFlow = 'ROPCFlow',
                                                                                                                  -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                                                                                                                  -}
                                                                                                                  -
                                                                                                                  -//  Actions
                                                                                                                  -export class Login {
                                                                                                                  -  static readonly type = '[Auth] Login';
                                                                                                                  -  constructor(public readonly payload?: { infoMsg?: string }) {}
                                                                                                                  -}
                                                                                                                  -export class Logout {
                                                                                                                  -  static readonly type = '[Auth] Logout';
                                                                                                                  -}
                                                                                                                  -export class LoadProfile {
                                                                                                                  -  static readonly type = '[Auth] Load Profile';
                                                                                                                  -  constructor(public payload: any) {}
                                                                                                                  -}
                                                                                                                  -export class ChangeAuthMode {
                                                                                                                  -  static readonly type = '[Auth] Change Auth Mode';
                                                                                                                  -  constructor(public readonly payload: AuthMode) {}
                                                                                                                  -}
                                                                                                                  -
                                                                                                                  -// Mutation Actions
                                                                                                                  -export class LoginSuccess {
                                                                                                                  -  static readonly type = '[Auth] Login Success';
                                                                                                                  -  constructor(public readonly payload: any) {}
                                                                                                                  -}
                                                                                                                  -export class LoginCanceled {
                                                                                                                  -  static readonly type = '[Auth] Login Canceled';
                                                                                                                  -}
                                                                                                                  -export class LogoutSuccess {
                                                                                                                  -  static readonly type = '[Auth] Logout Success';
                                                                                                                  -}
                                                                                                                  -export class ProfileLoaded {
                                                                                                                  -  static readonly type = '[Auth] Profile Loaded';
                                                                                                                  -}
                                                                                                                  -export class AuthModeChanged {
                                                                                                                  -  static readonly type = '[Auth] Auth Mode Changed';
                                                                                                                  -  constructor(public readonly payload: AuthMode) {}
                                                                                                                  -}
                                                                                                                  -
                                                                                                                  -
                                                                                                                  -
                                                                                                                  - - - - - - - -
                                                                                                                  -
                                                                                                                  -

                                                                                                                  result-matching ""

                                                                                                                  -
                                                                                                                    -
                                                                                                                    -
                                                                                                                    -

                                                                                                                    No results matching ""

                                                                                                                    -
                                                                                                                    -
                                                                                                                    -
                                                                                                                    - -
                                                                                                                    -
                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/LoginCanceled.html b/docs/classes/LoginCanceled.html deleted file mode 100644 index 26859be45..000000000 --- a/docs/classes/LoginCanceled.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                    -
                                                                                                                    - - -
                                                                                                                    -
                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                    -
                                                                                                                    -

                                                                                                                    -

                                                                                                                    File

                                                                                                                    -

                                                                                                                    -

                                                                                                                    - libs/auth/src/lib/auth.actions.ts -

                                                                                                                    - - - - - -
                                                                                                                    -

                                                                                                                    Index

                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                    -
                                                                                                                    Properties
                                                                                                                    -
                                                                                                                    -
                                                                                                                      -
                                                                                                                    • - Static - Readonly - type -
                                                                                                                    • -
                                                                                                                    -
                                                                                                                    -
                                                                                                                    - - -
                                                                                                                    - -

                                                                                                                    - Properties -

                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                    - - - - Static - Readonly - type - - - -
                                                                                                                    - type: string - -
                                                                                                                    - Type : string - -
                                                                                                                    - Default value : '[Auth] Login Canceled' -
                                                                                                                    - -
                                                                                                                    -
                                                                                                                    - - - - - - - -
                                                                                                                    - - -
                                                                                                                    -
                                                                                                                    export enum AuthMode {
                                                                                                                    -  ImplicitFLow = 'ImplicitFLow',
                                                                                                                    -  PasswordFlow = 'ROPCFlow',
                                                                                                                    -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                                                                                                                    -}
                                                                                                                    -
                                                                                                                    -//  Actions
                                                                                                                    -export class Login {
                                                                                                                    -  static readonly type = '[Auth] Login';
                                                                                                                    -  constructor(public readonly payload?: { infoMsg?: string }) {}
                                                                                                                    -}
                                                                                                                    -export class Logout {
                                                                                                                    -  static readonly type = '[Auth] Logout';
                                                                                                                    -}
                                                                                                                    -export class LoadProfile {
                                                                                                                    -  static readonly type = '[Auth] Load Profile';
                                                                                                                    -  constructor(public payload: any) {}
                                                                                                                    -}
                                                                                                                    -export class ChangeAuthMode {
                                                                                                                    -  static readonly type = '[Auth] Change Auth Mode';
                                                                                                                    -  constructor(public readonly payload: AuthMode) {}
                                                                                                                    -}
                                                                                                                    -
                                                                                                                    -// Mutation Actions
                                                                                                                    -export class LoginSuccess {
                                                                                                                    -  static readonly type = '[Auth] Login Success';
                                                                                                                    -  constructor(public readonly payload: any) {}
                                                                                                                    -}
                                                                                                                    -export class LoginCanceled {
                                                                                                                    -  static readonly type = '[Auth] Login Canceled';
                                                                                                                    -}
                                                                                                                    -export class LogoutSuccess {
                                                                                                                    -  static readonly type = '[Auth] Logout Success';
                                                                                                                    -}
                                                                                                                    -export class ProfileLoaded {
                                                                                                                    -  static readonly type = '[Auth] Profile Loaded';
                                                                                                                    -}
                                                                                                                    -export class AuthModeChanged {
                                                                                                                    -  static readonly type = '[Auth] Auth Mode Changed';
                                                                                                                    -  constructor(public readonly payload: AuthMode) {}
                                                                                                                    -}
                                                                                                                    -
                                                                                                                    -
                                                                                                                    -
                                                                                                                    - - - - - - - -
                                                                                                                    -
                                                                                                                    -

                                                                                                                    result-matching ""

                                                                                                                    -
                                                                                                                      -
                                                                                                                      -
                                                                                                                      -

                                                                                                                      No results matching ""

                                                                                                                      -
                                                                                                                      -
                                                                                                                      -
                                                                                                                      - -
                                                                                                                      -
                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/LoginPage.html b/docs/classes/LoginPage.html deleted file mode 100644 index 8fa448dda..000000000 --- a/docs/classes/LoginPage.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                      -
                                                                                                                      - - -
                                                                                                                      -
                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                      -
                                                                                                                      -

                                                                                                                      -

                                                                                                                      File

                                                                                                                      -

                                                                                                                      -

                                                                                                                      - apps/webapp-e2e/src/po/login.po.ts -

                                                                                                                      - - - - - -
                                                                                                                      -

                                                                                                                      Index

                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                      -
                                                                                                                      Properties
                                                                                                                      -
                                                                                                                      - -
                                                                                                                      -
                                                                                                                      - -
                                                                                                                      -

                                                                                                                      Constructor

                                                                                                                      - - - - - - - - - - -
                                                                                                                      -constructor() -
                                                                                                                      - -
                                                                                                                      -
                                                                                                                      - -
                                                                                                                      - -

                                                                                                                      - Properties -

                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                      - - - - loginButton - - - -
                                                                                                                      - loginButton: Selector - -
                                                                                                                      - Type : Selector - -
                                                                                                                      - -
                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                      - - - - passwordField - - - -
                                                                                                                      - passwordField: Selector - -
                                                                                                                      - Type : Selector - -
                                                                                                                      - -
                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                      - - - - useranmeField - - - -
                                                                                                                      - useranmeField: Selector - -
                                                                                                                      - Type : Selector - -
                                                                                                                      - -
                                                                                                                      -
                                                                                                                      - - - - - - - -
                                                                                                                      - - -
                                                                                                                      -
                                                                                                                      import { Selector } from 'testcafe';
                                                                                                                      -import { AngularSelector } from 'testcafe-angular-selectors';
                                                                                                                      -
                                                                                                                      -export default class LoginPage {
                                                                                                                      -  useranmeField: Selector;
                                                                                                                      -  passwordField: Selector;
                                                                                                                      -  loginButton: Selector;
                                                                                                                      -  constructor() {
                                                                                                                      -    const loginForm = AngularSelector('ngx-login');
                                                                                                                      -
                                                                                                                      -    this.useranmeField = loginForm.find('#mat-input-0');
                                                                                                                      -    this.passwordField = loginForm.find('#mat-input-1');
                                                                                                                      -    this.loginButton = loginForm.find('.mat-raised-button mat-primary');
                                                                                                                      -  }
                                                                                                                      -}
                                                                                                                      -
                                                                                                                      -
                                                                                                                      -
                                                                                                                      - - - - - - - -
                                                                                                                      -
                                                                                                                      -

                                                                                                                      result-matching ""

                                                                                                                      -
                                                                                                                        -
                                                                                                                        -
                                                                                                                        -

                                                                                                                        No results matching ""

                                                                                                                        -
                                                                                                                        -
                                                                                                                        -
                                                                                                                        - -
                                                                                                                        -
                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/LoginSuccess.html b/docs/classes/LoginSuccess.html deleted file mode 100644 index c71411d12..000000000 --- a/docs/classes/LoginSuccess.html +++ /dev/null @@ -1,347 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                        -
                                                                                                                        - - -
                                                                                                                        -
                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                        -
                                                                                                                        -

                                                                                                                        -

                                                                                                                        File

                                                                                                                        -

                                                                                                                        -

                                                                                                                        - libs/auth/src/lib/auth.actions.ts -

                                                                                                                        - - - - - -
                                                                                                                        -

                                                                                                                        Index

                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                        -
                                                                                                                        Properties
                                                                                                                        -
                                                                                                                        -
                                                                                                                          -
                                                                                                                        • - Public - Readonly - payload -
                                                                                                                        • -
                                                                                                                        • - Static - Readonly - type -
                                                                                                                        • -
                                                                                                                        -
                                                                                                                        -
                                                                                                                        - -
                                                                                                                        -

                                                                                                                        Constructor

                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                        -constructor(payload: any) -
                                                                                                                        - -
                                                                                                                        -
                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                        NameTypeOptional
                                                                                                                        payload - any - - No -
                                                                                                                        -
                                                                                                                        -
                                                                                                                        -
                                                                                                                        - -
                                                                                                                        - -

                                                                                                                        - Properties -

                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                        - - - - Public - Readonly - payload - - - -
                                                                                                                        - payload: any - -
                                                                                                                        - Type : any - -
                                                                                                                        - -
                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                        - - - - Static - Readonly - type - - - -
                                                                                                                        - type: string - -
                                                                                                                        - Type : string - -
                                                                                                                        - Default value : '[Auth] Login Success' -
                                                                                                                        - -
                                                                                                                        -
                                                                                                                        - - - - - - - -
                                                                                                                        - - -
                                                                                                                        -
                                                                                                                        export enum AuthMode {
                                                                                                                        -  ImplicitFLow = 'ImplicitFLow',
                                                                                                                        -  PasswordFlow = 'ROPCFlow',
                                                                                                                        -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                                                                                                                        -}
                                                                                                                        -
                                                                                                                        -//  Actions
                                                                                                                        -export class Login {
                                                                                                                        -  static readonly type = '[Auth] Login';
                                                                                                                        -  constructor(public readonly payload?: { infoMsg?: string }) {}
                                                                                                                        -}
                                                                                                                        -export class Logout {
                                                                                                                        -  static readonly type = '[Auth] Logout';
                                                                                                                        -}
                                                                                                                        -export class LoadProfile {
                                                                                                                        -  static readonly type = '[Auth] Load Profile';
                                                                                                                        -  constructor(public payload: any) {}
                                                                                                                        -}
                                                                                                                        -export class ChangeAuthMode {
                                                                                                                        -  static readonly type = '[Auth] Change Auth Mode';
                                                                                                                        -  constructor(public readonly payload: AuthMode) {}
                                                                                                                        -}
                                                                                                                        -
                                                                                                                        -// Mutation Actions
                                                                                                                        -export class LoginSuccess {
                                                                                                                        -  static readonly type = '[Auth] Login Success';
                                                                                                                        -  constructor(public readonly payload: any) {}
                                                                                                                        -}
                                                                                                                        -export class LoginCanceled {
                                                                                                                        -  static readonly type = '[Auth] Login Canceled';
                                                                                                                        -}
                                                                                                                        -export class LogoutSuccess {
                                                                                                                        -  static readonly type = '[Auth] Logout Success';
                                                                                                                        -}
                                                                                                                        -export class ProfileLoaded {
                                                                                                                        -  static readonly type = '[Auth] Profile Loaded';
                                                                                                                        -}
                                                                                                                        -export class AuthModeChanged {
                                                                                                                        -  static readonly type = '[Auth] Auth Mode Changed';
                                                                                                                        -  constructor(public readonly payload: AuthMode) {}
                                                                                                                        -}
                                                                                                                        -
                                                                                                                        -
                                                                                                                        -
                                                                                                                        - - - - - - - -
                                                                                                                        -
                                                                                                                        -

                                                                                                                        result-matching ""

                                                                                                                        -
                                                                                                                          -
                                                                                                                          -
                                                                                                                          -

                                                                                                                          No results matching ""

                                                                                                                          -
                                                                                                                          -
                                                                                                                          -
                                                                                                                          - -
                                                                                                                          -
                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Logout.html b/docs/classes/Logout.html deleted file mode 100644 index 5c8269c12..000000000 --- a/docs/classes/Logout.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                          -
                                                                                                                          - - -
                                                                                                                          -
                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                          -
                                                                                                                          -

                                                                                                                          -

                                                                                                                          File

                                                                                                                          -

                                                                                                                          -

                                                                                                                          - libs/auth/src/lib/auth.actions.ts -

                                                                                                                          - - - - - -
                                                                                                                          -

                                                                                                                          Index

                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                          -
                                                                                                                          Properties
                                                                                                                          -
                                                                                                                          -
                                                                                                                            -
                                                                                                                          • - Static - Readonly - type -
                                                                                                                          • -
                                                                                                                          -
                                                                                                                          -
                                                                                                                          - - -
                                                                                                                          - -

                                                                                                                          - Properties -

                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                          - - - - Static - Readonly - type - - - -
                                                                                                                          - type: string - -
                                                                                                                          - Type : string - -
                                                                                                                          - Default value : '[Auth] Logout' -
                                                                                                                          - -
                                                                                                                          -
                                                                                                                          - - - - - - - -
                                                                                                                          - - -
                                                                                                                          -
                                                                                                                          export enum AuthMode {
                                                                                                                          -  ImplicitFLow = 'ImplicitFLow',
                                                                                                                          -  PasswordFlow = 'ROPCFlow',
                                                                                                                          -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                                                                                                                          -}
                                                                                                                          -
                                                                                                                          -//  Actions
                                                                                                                          -export class Login {
                                                                                                                          -  static readonly type = '[Auth] Login';
                                                                                                                          -  constructor(public readonly payload?: { infoMsg?: string }) {}
                                                                                                                          -}
                                                                                                                          -export class Logout {
                                                                                                                          -  static readonly type = '[Auth] Logout';
                                                                                                                          -}
                                                                                                                          -export class LoadProfile {
                                                                                                                          -  static readonly type = '[Auth] Load Profile';
                                                                                                                          -  constructor(public payload: any) {}
                                                                                                                          -}
                                                                                                                          -export class ChangeAuthMode {
                                                                                                                          -  static readonly type = '[Auth] Change Auth Mode';
                                                                                                                          -  constructor(public readonly payload: AuthMode) {}
                                                                                                                          -}
                                                                                                                          -
                                                                                                                          -// Mutation Actions
                                                                                                                          -export class LoginSuccess {
                                                                                                                          -  static readonly type = '[Auth] Login Success';
                                                                                                                          -  constructor(public readonly payload: any) {}
                                                                                                                          -}
                                                                                                                          -export class LoginCanceled {
                                                                                                                          -  static readonly type = '[Auth] Login Canceled';
                                                                                                                          -}
                                                                                                                          -export class LogoutSuccess {
                                                                                                                          -  static readonly type = '[Auth] Logout Success';
                                                                                                                          -}
                                                                                                                          -export class ProfileLoaded {
                                                                                                                          -  static readonly type = '[Auth] Profile Loaded';
                                                                                                                          -}
                                                                                                                          -export class AuthModeChanged {
                                                                                                                          -  static readonly type = '[Auth] Auth Mode Changed';
                                                                                                                          -  constructor(public readonly payload: AuthMode) {}
                                                                                                                          -}
                                                                                                                          -
                                                                                                                          -
                                                                                                                          -
                                                                                                                          - - - - - - - -
                                                                                                                          -
                                                                                                                          -

                                                                                                                          result-matching ""

                                                                                                                          -
                                                                                                                            -
                                                                                                                            -
                                                                                                                            -

                                                                                                                            No results matching ""

                                                                                                                            -
                                                                                                                            -
                                                                                                                            -
                                                                                                                            - -
                                                                                                                            -
                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/LogoutSuccess.html b/docs/classes/LogoutSuccess.html deleted file mode 100644 index 2be15da03..000000000 --- a/docs/classes/LogoutSuccess.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                            -
                                                                                                                            - - -
                                                                                                                            -
                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                            -
                                                                                                                            -

                                                                                                                            -

                                                                                                                            File

                                                                                                                            -

                                                                                                                            -

                                                                                                                            - libs/auth/src/lib/auth.actions.ts -

                                                                                                                            - - - - - -
                                                                                                                            -

                                                                                                                            Index

                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                            -
                                                                                                                            Properties
                                                                                                                            -
                                                                                                                            -
                                                                                                                              -
                                                                                                                            • - Static - Readonly - type -
                                                                                                                            • -
                                                                                                                            -
                                                                                                                            -
                                                                                                                            - - -
                                                                                                                            - -

                                                                                                                            - Properties -

                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                            - - - - Static - Readonly - type - - - -
                                                                                                                            - type: string - -
                                                                                                                            - Type : string - -
                                                                                                                            - Default value : '[Auth] Logout Success' -
                                                                                                                            - -
                                                                                                                            -
                                                                                                                            - - - - - - - -
                                                                                                                            - - -
                                                                                                                            -
                                                                                                                            export enum AuthMode {
                                                                                                                            -  ImplicitFLow = 'ImplicitFLow',
                                                                                                                            -  PasswordFlow = 'ROPCFlow',
                                                                                                                            -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                                                                                                                            -}
                                                                                                                            -
                                                                                                                            -//  Actions
                                                                                                                            -export class Login {
                                                                                                                            -  static readonly type = '[Auth] Login';
                                                                                                                            -  constructor(public readonly payload?: { infoMsg?: string }) {}
                                                                                                                            -}
                                                                                                                            -export class Logout {
                                                                                                                            -  static readonly type = '[Auth] Logout';
                                                                                                                            -}
                                                                                                                            -export class LoadProfile {
                                                                                                                            -  static readonly type = '[Auth] Load Profile';
                                                                                                                            -  constructor(public payload: any) {}
                                                                                                                            -}
                                                                                                                            -export class ChangeAuthMode {
                                                                                                                            -  static readonly type = '[Auth] Change Auth Mode';
                                                                                                                            -  constructor(public readonly payload: AuthMode) {}
                                                                                                                            -}
                                                                                                                            -
                                                                                                                            -// Mutation Actions
                                                                                                                            -export class LoginSuccess {
                                                                                                                            -  static readonly type = '[Auth] Login Success';
                                                                                                                            -  constructor(public readonly payload: any) {}
                                                                                                                            -}
                                                                                                                            -export class LoginCanceled {
                                                                                                                            -  static readonly type = '[Auth] Login Canceled';
                                                                                                                            -}
                                                                                                                            -export class LogoutSuccess {
                                                                                                                            -  static readonly type = '[Auth] Logout Success';
                                                                                                                            -}
                                                                                                                            -export class ProfileLoaded {
                                                                                                                            -  static readonly type = '[Auth] Profile Loaded';
                                                                                                                            -}
                                                                                                                            -export class AuthModeChanged {
                                                                                                                            -  static readonly type = '[Auth] Auth Mode Changed';
                                                                                                                            -  constructor(public readonly payload: AuthMode) {}
                                                                                                                            -}
                                                                                                                            -
                                                                                                                            -
                                                                                                                            -
                                                                                                                            - - - - - - - -
                                                                                                                            -
                                                                                                                            -

                                                                                                                            result-matching ""

                                                                                                                            -
                                                                                                                              -
                                                                                                                              -
                                                                                                                              -

                                                                                                                              No results matching ""

                                                                                                                              -
                                                                                                                              -
                                                                                                                              -
                                                                                                                              - -
                                                                                                                              -
                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Mail.html b/docs/classes/Mail.html deleted file mode 100644 index 07d5a5cf0..000000000 --- a/docs/classes/Mail.html +++ /dev/null @@ -1,668 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                              -
                                                                                                                              - - -
                                                                                                                              -
                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                              -
                                                                                                                              -

                                                                                                                              -

                                                                                                                              File

                                                                                                                              -

                                                                                                                              -

                                                                                                                              - libs/widgets/src/lib/demo-data/mail.interface.ts -

                                                                                                                              - - - - - -
                                                                                                                              -

                                                                                                                              Index

                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                              -
                                                                                                                              Properties
                                                                                                                              -
                                                                                                                              - -
                                                                                                                              -
                                                                                                                              - - -
                                                                                                                              - -

                                                                                                                              - Properties -

                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - attachments - - - -
                                                                                                                              - attachments: string[] - -
                                                                                                                              - Type : string[] - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - content - - - -
                                                                                                                              - content: string - -
                                                                                                                              - Type : string - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - from - - - -
                                                                                                                              - from: literal type - -
                                                                                                                              - Type : literal type - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - group - - - -
                                                                                                                              - group: InboxGroup - -
                                                                                                                              - Type : InboxGroup - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - id - - - -
                                                                                                                              - id: number | string - -
                                                                                                                              - Type : number | string - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - labels - - - -
                                                                                                                              - labels: literal type[] - -
                                                                                                                              - Type : literal type[] - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - read - - - -
                                                                                                                              - read: boolean - -
                                                                                                                              - Type : boolean - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - starred - - - -
                                                                                                                              - starred: boolean - -
                                                                                                                              - Type : boolean - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - subject - - - -
                                                                                                                              - subject: string - -
                                                                                                                              - Type : string - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - to - - - -
                                                                                                                              - to: literal type - -
                                                                                                                              - Type : literal type - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - type - - - -
                                                                                                                              - type: InboxType - -
                                                                                                                              - Type : InboxType - -
                                                                                                                              - -
                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                              - - - - Optional - when - - - -
                                                                                                                              - when: Moment - -
                                                                                                                              - Type : Moment - -
                                                                                                                              - -
                                                                                                                              -
                                                                                                                              - - - - - - - -
                                                                                                                              - - -
                                                                                                                              -
                                                                                                                              import { Moment } from 'moment';
                                                                                                                              -
                                                                                                                              -export type InboxGroup = 'primary' | 'social' | 'promotions';
                                                                                                                              -export type InboxType = 'draft' | 'sent' | 'spam' | 'trash' | 'none';
                                                                                                                              -
                                                                                                                              -export class Mail {
                                                                                                                              -  id?: number | string;
                                                                                                                              -  from?: {
                                                                                                                              -    picture?: string;
                                                                                                                              -    name?: string;
                                                                                                                              -    mail?: string;
                                                                                                                              -  };
                                                                                                                              -  to?: {
                                                                                                                              -    name?: string;
                                                                                                                              -    mail?: string;
                                                                                                                              -  };
                                                                                                                              -  subject?: string;
                                                                                                                              -  content?: string;
                                                                                                                              -  when?: Moment;
                                                                                                                              -  read?: boolean;
                                                                                                                              -  starred?: boolean;
                                                                                                                              -  labels?: {
                                                                                                                              -    name: string;
                                                                                                                              -    color: string;
                                                                                                                              -  }[];
                                                                                                                              -  group?: InboxGroup;
                                                                                                                              -  type?: InboxType;
                                                                                                                              -  attachments?: string[];
                                                                                                                              -}
                                                                                                                              -
                                                                                                                              -
                                                                                                                              -
                                                                                                                              - - - - - - - -
                                                                                                                              -
                                                                                                                              -

                                                                                                                              result-matching ""

                                                                                                                              -
                                                                                                                                -
                                                                                                                                -
                                                                                                                                -

                                                                                                                                No results matching ""

                                                                                                                                -
                                                                                                                                -
                                                                                                                                -
                                                                                                                                - -
                                                                                                                                -
                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/MarkAllAsRead.html b/docs/classes/MarkAllAsRead.html deleted file mode 100644 index f22f4f82b..000000000 --- a/docs/classes/MarkAllAsRead.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                -
                                                                                                                                - - -
                                                                                                                                -
                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                -
                                                                                                                                -

                                                                                                                                -

                                                                                                                                File

                                                                                                                                -

                                                                                                                                -

                                                                                                                                - libs/notifications/src/lib/notifications.actions.ts -

                                                                                                                                - - - - - -
                                                                                                                                -

                                                                                                                                Index

                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                -
                                                                                                                                Properties
                                                                                                                                -
                                                                                                                                -
                                                                                                                                  -
                                                                                                                                • - Static - Readonly - type -
                                                                                                                                • -
                                                                                                                                -
                                                                                                                                -
                                                                                                                                - - -
                                                                                                                                - -

                                                                                                                                - Properties -

                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                - - - - Static - Readonly - type - - - -
                                                                                                                                - type: string - -
                                                                                                                                - Type : string - -
                                                                                                                                - Default value : '[Notifications] MarkAllAsRead' -
                                                                                                                                - -
                                                                                                                                -
                                                                                                                                - - - - - - - -
                                                                                                                                - - -
                                                                                                                                -
                                                                                                                                import { Notification } from './notification.model';
                                                                                                                                -
                                                                                                                                -// Actions
                                                                                                                                -export class FetchNotifications {
                                                                                                                                -  static readonly type = '[Notifications] Fetch';
                                                                                                                                -}
                                                                                                                                -
                                                                                                                                -export class AddNotification {
                                                                                                                                -  static readonly type = '[Notifications] Add';
                                                                                                                                -  constructor(public readonly payload: Notification) {}
                                                                                                                                -}
                                                                                                                                -
                                                                                                                                -export class DeleteNotification {
                                                                                                                                -  static readonly type = '[Notifications] Delete';
                                                                                                                                -
                                                                                                                                -  constructor(public readonly payload: Notification) {}
                                                                                                                                -}
                                                                                                                                -
                                                                                                                                -export class MarkAsRead {
                                                                                                                                -  static readonly type = '[Notifications] MarkAsRead';
                                                                                                                                -  constructor(public readonly payload: Notification) {}
                                                                                                                                -}
                                                                                                                                -
                                                                                                                                -export class MarkAllAsRead {
                                                                                                                                -  static readonly type = '[Notifications] MarkAllAsRead';
                                                                                                                                -}
                                                                                                                                -
                                                                                                                                -
                                                                                                                                -
                                                                                                                                - - - - - - - -
                                                                                                                                -
                                                                                                                                -

                                                                                                                                result-matching ""

                                                                                                                                -
                                                                                                                                  -
                                                                                                                                  -
                                                                                                                                  -

                                                                                                                                  No results matching ""

                                                                                                                                  -
                                                                                                                                  -
                                                                                                                                  -
                                                                                                                                  - -
                                                                                                                                  -
                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/MarkAsRead-1.html b/docs/classes/MarkAsRead-1.html deleted file mode 100644 index 8ce4f1ef0..000000000 --- a/docs/classes/MarkAsRead-1.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                  -
                                                                                                                                  - - -
                                                                                                                                  -
                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                  -
                                                                                                                                  -

                                                                                                                                  -

                                                                                                                                  File

                                                                                                                                  -

                                                                                                                                  -

                                                                                                                                  - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                                                                                                  - - - - - -
                                                                                                                                  -

                                                                                                                                  Index

                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                  -
                                                                                                                                  Properties
                                                                                                                                  -
                                                                                                                                  -
                                                                                                                                    -
                                                                                                                                  • - Static - Readonly - type -
                                                                                                                                  • -
                                                                                                                                  -
                                                                                                                                  -
                                                                                                                                  - - -
                                                                                                                                  - -

                                                                                                                                  - Properties -

                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                  - - - - Static - Readonly - type - - - -
                                                                                                                                  - type: string - -
                                                                                                                                  - Type : string - -
                                                                                                                                  - Default value : '[ChatBox] MarkAsRead' -
                                                                                                                                  - -
                                                                                                                                  -
                                                                                                                                  - - - - - - - -
                                                                                                                                  - - -
                                                                                                                                  -
                                                                                                                                  import { ChatMessage, Subject } from '../chat-message.model';
                                                                                                                                  -
                                                                                                                                  -export interface SynthesisVoice {
                                                                                                                                  -  voice: SpeechSynthesisVoice;
                                                                                                                                  -  volume: number;
                                                                                                                                  -  rate: number;
                                                                                                                                  -  pitch: number;
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -// Actions
                                                                                                                                  -export class FetchConversations {
                                                                                                                                  -  static readonly type = '[ChatBox] FetchConversations';
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -export class CreateNewConversation {
                                                                                                                                  -  static readonly type = '[ChatBox] CreateNewConversation';
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -export class SwitchConversation {
                                                                                                                                  -  static readonly type = '[ChatBox] SwitchConversation';
                                                                                                                                  -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -export class SaveConversation {
                                                                                                                                  -  static readonly type = '[ChatBox] SaveConversation';
                                                                                                                                  -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -export class CloseConversation {
                                                                                                                                  -  static readonly type = '[ChatBox] CloseConversation';
                                                                                                                                  -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -export class AddMessage {
                                                                                                                                  -  static readonly type = '[ChatBox] AddMessage';
                                                                                                                                  -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -export class StartVoiceCommand {
                                                                                                                                  -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                                                                                                  -}
                                                                                                                                  -export class SendMessage {
                                                                                                                                  -  static readonly type = '[ChatBox] SendMessage';
                                                                                                                                  -  constructor(public readonly payload: { message: string }) {}
                                                                                                                                  -}
                                                                                                                                  -export class SendTyping {
                                                                                                                                  -  static readonly type = '[ChatBox] Typing';
                                                                                                                                  -  constructor(public readonly payload: Subject) {}
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -export class MarkAsRead {
                                                                                                                                  -  static readonly type = '[ChatBox] MarkAsRead';
                                                                                                                                  -}
                                                                                                                                  -
                                                                                                                                  -
                                                                                                                                  -
                                                                                                                                  - - - - - - - -
                                                                                                                                  -
                                                                                                                                  -

                                                                                                                                  result-matching ""

                                                                                                                                  -
                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                    -

                                                                                                                                    No results matching ""

                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                    - -
                                                                                                                                    -
                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/MarkAsRead.html b/docs/classes/MarkAsRead.html deleted file mode 100644 index c27e97e5c..000000000 --- a/docs/classes/MarkAsRead.html +++ /dev/null @@ -1,332 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                    -
                                                                                                                                    - - -
                                                                                                                                    -
                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                    -
                                                                                                                                    -

                                                                                                                                    -

                                                                                                                                    File

                                                                                                                                    -

                                                                                                                                    -

                                                                                                                                    - libs/notifications/src/lib/notifications.actions.ts -

                                                                                                                                    - - - - - -
                                                                                                                                    -

                                                                                                                                    Index

                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                    -
                                                                                                                                    Properties
                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                      -
                                                                                                                                    • - Public - Readonly - payload -
                                                                                                                                    • -
                                                                                                                                    • - Static - Readonly - type -
                                                                                                                                    • -
                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                    - -
                                                                                                                                    -

                                                                                                                                    Constructor

                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                    -constructor(payload: Notification) -
                                                                                                                                    - -
                                                                                                                                    -
                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                    NameTypeOptional
                                                                                                                                    payload - Notification - - No -
                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                    - -
                                                                                                                                    - -

                                                                                                                                    - Properties -

                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                    - - - - Public - Readonly - payload - - - -
                                                                                                                                    - payload: Notification - -
                                                                                                                                    - Type : Notification - -
                                                                                                                                    - -
                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                    - - - - Static - Readonly - type - - - -
                                                                                                                                    - type: string - -
                                                                                                                                    - Type : string - -
                                                                                                                                    - Default value : '[Notifications] MarkAsRead' -
                                                                                                                                    - -
                                                                                                                                    -
                                                                                                                                    - - - - - - - -
                                                                                                                                    - - -
                                                                                                                                    -
                                                                                                                                    import { Notification } from './notification.model';
                                                                                                                                    -
                                                                                                                                    -// Actions
                                                                                                                                    -export class FetchNotifications {
                                                                                                                                    -  static readonly type = '[Notifications] Fetch';
                                                                                                                                    -}
                                                                                                                                    -
                                                                                                                                    -export class AddNotification {
                                                                                                                                    -  static readonly type = '[Notifications] Add';
                                                                                                                                    -  constructor(public readonly payload: Notification) {}
                                                                                                                                    -}
                                                                                                                                    -
                                                                                                                                    -export class DeleteNotification {
                                                                                                                                    -  static readonly type = '[Notifications] Delete';
                                                                                                                                    -
                                                                                                                                    -  constructor(public readonly payload: Notification) {}
                                                                                                                                    -}
                                                                                                                                    -
                                                                                                                                    -export class MarkAsRead {
                                                                                                                                    -  static readonly type = '[Notifications] MarkAsRead';
                                                                                                                                    -  constructor(public readonly payload: Notification) {}
                                                                                                                                    -}
                                                                                                                                    -
                                                                                                                                    -export class MarkAllAsRead {
                                                                                                                                    -  static readonly type = '[Notifications] MarkAllAsRead';
                                                                                                                                    -}
                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                    -
                                                                                                                                    - - - - - - - -
                                                                                                                                    -
                                                                                                                                    -

                                                                                                                                    result-matching ""

                                                                                                                                    -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -

                                                                                                                                      No results matching ""

                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/MenuState.html b/docs/classes/MenuState.html deleted file mode 100644 index df9177be1..000000000 --- a/docs/classes/MenuState.html +++ /dev/null @@ -1,1042 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                      -
                                                                                                                                      - - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                      -
                                                                                                                                      -

                                                                                                                                      -

                                                                                                                                      File

                                                                                                                                      -

                                                                                                                                      -

                                                                                                                                      - libs/navigator/src/lib/state/menu.state.ts -

                                                                                                                                      - - - -

                                                                                                                                      -

                                                                                                                                      Implements

                                                                                                                                      -

                                                                                                                                      -

                                                                                                                                      - NgxsOnInit -

                                                                                                                                      - - -
                                                                                                                                      -

                                                                                                                                      Index

                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                      -
                                                                                                                                      Methods
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -

                                                                                                                                      Constructor

                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                      -constructor(menuService: MenuService) -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      menuService - MenuService - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - - -
                                                                                                                                      - -

                                                                                                                                      - Methods -

                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      - - - - Static - currentlyOpened - - - -
                                                                                                                                      - - currentlyOpened(state: MenuStateModel) -
                                                                                                                                      - Decorators : -
                                                                                                                                      - - @Selector()
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      - -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      state - MenuStateModel - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - Returns : {} - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      - - - - Private - getParents - - - -
                                                                                                                                      - - getParents(tree, item: MenuItem) -
                                                                                                                                      - -
                                                                                                                                      - -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      tree - - No -
                                                                                                                                      item - MenuItem - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - Returns : MenuItem[] - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      - - - - Static - menuItems - - - -
                                                                                                                                      - - menuItems(state: MenuStateModel) -
                                                                                                                                      - Decorators : -
                                                                                                                                      - - @Selector()
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      - -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      state - MenuStateModel - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - Returns : any - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      - - - - nextCurrentlyOpened - - - -
                                                                                                                                      -nextCurrentlyOpened(undefined: StateContext, undefined: NextCurrentlyOpened) -
                                                                                                                                      - Decorators : -
                                                                                                                                      - - @Action(NextCurrentlyOpened)
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      - -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      - StateContext<MenuStateModel> - - No -
                                                                                                                                      - NextCurrentlyOpened - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - Returns : void - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      - - - - ngxsOnInit - - - -
                                                                                                                                      -ngxsOnInit(undefined: StateContext) -
                                                                                                                                      - -
                                                                                                                                      - -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      - StateContext<MenuStateModel> - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - Returns : void - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      - - - - setIconMode - - - -
                                                                                                                                      -setIconMode(undefined: StateContext, undefined: SetIconMode) -
                                                                                                                                      - Decorators : -
                                                                                                                                      - - @Action(SetIconMode)
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      - -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      - StateContext<MenuStateModel> - - No -
                                                                                                                                      - SetIconMode - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - Returns : void - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      - - - - toggleCurrentlyOpened - - - -
                                                                                                                                      -toggleCurrentlyOpened(undefined: StateContext, undefined: ToggleCurrentlyOpened) -
                                                                                                                                      - Decorators : -
                                                                                                                                      - - @Action(ToggleCurrentlyOpened)
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      - -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      - StateContext<MenuStateModel> - - No -
                                                                                                                                      - ToggleCurrentlyOpened - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - Returns : void - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      - - - - toggleCurrentlyOpenedByRoute - - - -
                                                                                                                                      -toggleCurrentlyOpenedByRoute(undefined: StateContext, undefined: ToggleCurrentlyOpenedByRoute) -
                                                                                                                                      - Decorators : -
                                                                                                                                      - - @Action(ToggleCurrentlyOpenedByRoute)
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      - -
                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                      NameTypeOptional
                                                                                                                                      - StateContext<MenuStateModel> - - No -
                                                                                                                                      - ToggleCurrentlyOpenedByRoute - - No -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - Returns : void - -
                                                                                                                                      -
                                                                                                                                      - -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - - - - - - -
                                                                                                                                      - - -
                                                                                                                                      -
                                                                                                                                      import { Action, NgxsOnInit, Selector, State, StateContext, Store } from '@ngxs/store';
                                                                                                                                      -import { MenuItem } from '../models/menu-item.model';
                                                                                                                                      -import { MenuService } from '../services/menu.service';
                                                                                                                                      -import { Tree } from '@ngx-starter-kit/tree';
                                                                                                                                      -
                                                                                                                                      -export class NextCurrentlyOpened {
                                                                                                                                      -  static readonly type = '[Menu] Next Currently Opened';
                                                                                                                                      -  constructor(public readonly payload: MenuItem[]) {}
                                                                                                                                      -}
                                                                                                                                      -
                                                                                                                                      -export class SetIconMode {
                                                                                                                                      -  static readonly type = '[Menu] SetIconMode';
                                                                                                                                      -  constructor(public readonly payload: boolean) {}
                                                                                                                                      -}
                                                                                                                                      -
                                                                                                                                      -export class ToggleCurrentlyOpened {
                                                                                                                                      -  static readonly type = '[Menu] ToggleCurrentlyOpened';
                                                                                                                                      -  constructor(public readonly payload: MenuItem) {}
                                                                                                                                      -}
                                                                                                                                      -
                                                                                                                                      -export class ToggleCurrentlyOpenedByRoute {
                                                                                                                                      -  static readonly type = '[Menu] ToggleCurrentlyOpenedByRoute';
                                                                                                                                      -  constructor(public readonly payload: string) {}
                                                                                                                                      -}
                                                                                                                                      -
                                                                                                                                      -export interface MenuStateModel {
                                                                                                                                      -  tree: Tree<MenuItem>;
                                                                                                                                      -  currentlyOpened: MenuItem[];
                                                                                                                                      -  iconMode: boolean;
                                                                                                                                      -}
                                                                                                                                      -
                                                                                                                                      -@State<MenuStateModel>({
                                                                                                                                      -  name: 'menu',
                                                                                                                                      -  defaults: {
                                                                                                                                      -    tree: null,
                                                                                                                                      -    currentlyOpened: [],
                                                                                                                                      -    iconMode: false,
                                                                                                                                      -  },
                                                                                                                                      -})
                                                                                                                                      -export class MenuState implements NgxsOnInit {
                                                                                                                                      -  constructor(private menuService: MenuService) {}
                                                                                                                                      -
                                                                                                                                      -  @Selector()
                                                                                                                                      -  static menuItems(state: MenuStateModel) {
                                                                                                                                      -    return state.tree.root.children;
                                                                                                                                      -  }
                                                                                                                                      -
                                                                                                                                      -  @Selector()
                                                                                                                                      -  static currentlyOpened(state: MenuStateModel) {
                                                                                                                                      -    if (state.iconMode) {
                                                                                                                                      -      return [];
                                                                                                                                      -    } else {
                                                                                                                                      -      return state.currentlyOpened;
                                                                                                                                      -    }
                                                                                                                                      -  }
                                                                                                                                      -
                                                                                                                                      -  ngxsOnInit({ setState, getState }: StateContext<MenuStateModel>) {
                                                                                                                                      -    setState({
                                                                                                                                      -      tree: this.menuService.tree,
                                                                                                                                      -      currentlyOpened: [],
                                                                                                                                      -      iconMode: false,
                                                                                                                                      -    });
                                                                                                                                      -  }
                                                                                                                                      -
                                                                                                                                      -  private getParents(tree, item: MenuItem): MenuItem[] {
                                                                                                                                      -    const ancestors = tree.getAllParents(item);
                                                                                                                                      -    ancestors.shift();
                                                                                                                                      -    return ancestors;
                                                                                                                                      -  }
                                                                                                                                      -
                                                                                                                                      -  @Action(SetIconMode)
                                                                                                                                      -  setIconMode({ getState, patchState }: StateContext<MenuStateModel>, { payload }: SetIconMode) {
                                                                                                                                      -    patchState({
                                                                                                                                      -      iconMode: payload,
                                                                                                                                      -    });
                                                                                                                                      -  }
                                                                                                                                      -
                                                                                                                                      -  @Action(NextCurrentlyOpened)
                                                                                                                                      -  nextCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: NextCurrentlyOpened) {
                                                                                                                                      -    patchState({
                                                                                                                                      -      currentlyOpened: payload,
                                                                                                                                      -    });
                                                                                                                                      -  }
                                                                                                                                      -
                                                                                                                                      -  @Action(ToggleCurrentlyOpened)
                                                                                                                                      -  toggleCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: ToggleCurrentlyOpened) {
                                                                                                                                      -    // tslint:disable:prefer-const
                                                                                                                                      -    let { tree, currentlyOpened } = getState();
                                                                                                                                      -    const isOpen = currentlyOpened.indexOf(payload) !== -1;
                                                                                                                                      -
                                                                                                                                      -    if (isOpen) {
                                                                                                                                      -      if (currentlyOpened.length > 1) {
                                                                                                                                      -        currentlyOpened.length = currentlyOpened.indexOf(payload);
                                                                                                                                      -      } else {
                                                                                                                                      -        currentlyOpened = [];
                                                                                                                                      -      }
                                                                                                                                      -    } else {
                                                                                                                                      -      currentlyOpened = this.getParents(tree, payload);
                                                                                                                                      -    }
                                                                                                                                      -
                                                                                                                                      -    patchState({
                                                                                                                                      -      currentlyOpened: currentlyOpened,
                                                                                                                                      -    });
                                                                                                                                      -  }
                                                                                                                                      -
                                                                                                                                      -  @Action(ToggleCurrentlyOpenedByRoute)
                                                                                                                                      -  toggleCurrentlyOpenedByRoute(
                                                                                                                                      -    { getState, patchState }: StateContext<MenuStateModel>,
                                                                                                                                      -    { payload }: ToggleCurrentlyOpenedByRoute,
                                                                                                                                      -  ) {
                                                                                                                                      -    const { tree } = getState();
                                                                                                                                      -    let currentlyOpened: MenuItem[] = [];
                                                                                                                                      -
                                                                                                                                      -    const item = tree.findByPredicateBFS(node => {
                                                                                                                                      -      return node.link === payload;
                                                                                                                                      -    });
                                                                                                                                      -
                                                                                                                                      -    if (item && item.parent) {
                                                                                                                                      -      currentlyOpened = this.getParents(tree, item);
                                                                                                                                      -    } else if (item) {
                                                                                                                                      -      currentlyOpened = [item];
                                                                                                                                      -    }
                                                                                                                                      -
                                                                                                                                      -    patchState({
                                                                                                                                      -      currentlyOpened: currentlyOpened,
                                                                                                                                      -    });
                                                                                                                                      -  }
                                                                                                                                      -}
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      -
                                                                                                                                      - - - - - - - -
                                                                                                                                      -
                                                                                                                                      -

                                                                                                                                      result-matching ""

                                                                                                                                      -
                                                                                                                                        -
                                                                                                                                        -
                                                                                                                                        -

                                                                                                                                        No results matching ""

                                                                                                                                        -
                                                                                                                                        -
                                                                                                                                        -
                                                                                                                                        - -
                                                                                                                                        -
                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Message.html b/docs/classes/Message.html deleted file mode 100644 index d25476922..000000000 --- a/docs/classes/Message.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                        -
                                                                                                                                        - - -
                                                                                                                                        -
                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                        -
                                                                                                                                        -

                                                                                                                                        -

                                                                                                                                        File

                                                                                                                                        -

                                                                                                                                        -

                                                                                                                                        - apps/api/src/chat/interfaces/message.ts -

                                                                                                                                        - - - - - -
                                                                                                                                        -

                                                                                                                                        Index

                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                        -
                                                                                                                                        Properties
                                                                                                                                        -
                                                                                                                                        - -
                                                                                                                                        -
                                                                                                                                        - - -
                                                                                                                                        - -

                                                                                                                                        - Properties -

                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                        - - - - message - - - -
                                                                                                                                        - message: string - -
                                                                                                                                        - Type : string - -
                                                                                                                                        - -
                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                        - - - - user - - - -
                                                                                                                                        - user: User - -
                                                                                                                                        - Type : User - -
                                                                                                                                        - -
                                                                                                                                        -
                                                                                                                                        - - - - - - - -
                                                                                                                                        - - -
                                                                                                                                        -
                                                                                                                                        import { User } from './user';
                                                                                                                                        -
                                                                                                                                        -export class Message {
                                                                                                                                        -  message: string;
                                                                                                                                        -  user: User;
                                                                                                                                        -}
                                                                                                                                        -
                                                                                                                                        -
                                                                                                                                        -
                                                                                                                                        - - - - - - - -
                                                                                                                                        -
                                                                                                                                        -

                                                                                                                                        result-matching ""

                                                                                                                                        -
                                                                                                                                          -
                                                                                                                                          -
                                                                                                                                          -

                                                                                                                                          No results matching ""

                                                                                                                                          -
                                                                                                                                          -
                                                                                                                                          -
                                                                                                                                          - -
                                                                                                                                          -
                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/MyHammerConfig.html b/docs/classes/MyHammerConfig.html deleted file mode 100644 index 233a14cff..000000000 --- a/docs/classes/MyHammerConfig.html +++ /dev/null @@ -1,274 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                          -
                                                                                                                                          - - -
                                                                                                                                          -
                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                          -
                                                                                                                                          -

                                                                                                                                          -

                                                                                                                                          File

                                                                                                                                          -

                                                                                                                                          -

                                                                                                                                          - apps/webapp/src/app/app.module.ts -

                                                                                                                                          - - -

                                                                                                                                          -

                                                                                                                                          Extends

                                                                                                                                          -

                                                                                                                                          -

                                                                                                                                          - HammerGestureConfig -

                                                                                                                                          - - - -
                                                                                                                                          -

                                                                                                                                          Index

                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                          -
                                                                                                                                          Properties
                                                                                                                                          -
                                                                                                                                          - -
                                                                                                                                          -
                                                                                                                                          - - -
                                                                                                                                          - -

                                                                                                                                          - Properties -

                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                          - - - - overrides - - - -
                                                                                                                                          - overrides: - -
                                                                                                                                          - Default value : <any>{ - // override hammerjs default configuration - pan: { direction: Hammer.DIRECTION_ALL }, - swipe: { direction: Hammer.DIRECTION_ALL }, - } -
                                                                                                                                          - -
                                                                                                                                          -
                                                                                                                                          - - - - - - - -
                                                                                                                                          - - -
                                                                                                                                          -
                                                                                                                                          import { BrowserModule } from '@angular/platform-browser';
                                                                                                                                          -import { NgModule } from '@angular/core';
                                                                                                                                          -import * as Hammer from 'hammerjs';
                                                                                                                                          -import { HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
                                                                                                                                          -import { AppComponent } from './app.component';
                                                                                                                                          -import { PreloadAllModules, RouterModule } from '@angular/router';
                                                                                                                                          -import { ServiceWorkerModule } from '@angular/service-worker';
                                                                                                                                          -import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
                                                                                                                                          -import { CoreModule } from '@ngx-starter-kit/core';
                                                                                                                                          -
                                                                                                                                          -import { environment } from '@env/environment';
                                                                                                                                          -import { PreloadSelectedModulesList } from './preloading-strategy';
                                                                                                                                          -
                                                                                                                                          -export class MyHammerConfig extends HammerGestureConfig {
                                                                                                                                          -  overrides = <any>{
                                                                                                                                          -    // override hammerjs default configuration
                                                                                                                                          -    pan: { direction: Hammer.DIRECTION_ALL },
                                                                                                                                          -    swipe: { direction: Hammer.DIRECTION_ALL },
                                                                                                                                          -  };
                                                                                                                                          -}
                                                                                                                                          -
                                                                                                                                          -@NgModule({
                                                                                                                                          -  imports: [
                                                                                                                                          -    BrowserModule,
                                                                                                                                          -    BrowserAnimationsModule,
                                                                                                                                          -    RouterModule.forRoot(
                                                                                                                                          -      [
                                                                                                                                          -        { path: '', redirectTo: 'home', pathMatch: 'full' },
                                                                                                                                          -        { path: 'home', loadChildren: '@ngx-starter-kit/home#HomeModule', data: { preload: true } },
                                                                                                                                          -        { path: 'dashboard', loadChildren: '@ngx-starter-kit/dashboard#DashboardModule', data: { preload: true } },
                                                                                                                                          -        { path: '404', loadChildren: '@ngx-starter-kit/not-found#NotFoundModule', data: { title: '404', preload: false } },
                                                                                                                                          -        // 404 should be last
                                                                                                                                          -        { path: '**', redirectTo: '404', pathMatch: 'full' },
                                                                                                                                          -      ],
                                                                                                                                          -      {
                                                                                                                                          -        scrollPositionRestoration: 'enabled',
                                                                                                                                          -        anchorScrolling: 'enabled',
                                                                                                                                          -        initialNavigation: 'enabled',
                                                                                                                                          -        preloadingStrategy: PreloadAllModules, // TODO: PreloadSelectedModulesList
                                                                                                                                          -        paramsInheritanceStrategy: 'always',
                                                                                                                                          -        // onSameUrlNavigation: 'reload'
                                                                                                                                          -      },
                                                                                                                                          -    ),
                                                                                                                                          -    ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
                                                                                                                                          -    CoreModule, // IMP: Please keep CoreModule after RouterModule
                                                                                                                                          -  ],
                                                                                                                                          -  providers: [
                                                                                                                                          -    PreloadSelectedModulesList,
                                                                                                                                          -    {
                                                                                                                                          -      provide: HAMMER_GESTURE_CONFIG,
                                                                                                                                          -      useClass: MyHammerConfig,
                                                                                                                                          -    },
                                                                                                                                          -  ],
                                                                                                                                          -  declarations: [AppComponent],
                                                                                                                                          -  bootstrap: [AppComponent],
                                                                                                                                          -})
                                                                                                                                          -export class AppModule {}
                                                                                                                                          -
                                                                                                                                          -
                                                                                                                                          -
                                                                                                                                          - - - - - - - -
                                                                                                                                          -
                                                                                                                                          -

                                                                                                                                          result-matching ""

                                                                                                                                          -
                                                                                                                                            -
                                                                                                                                            -
                                                                                                                                            -

                                                                                                                                            No results matching ""

                                                                                                                                            -
                                                                                                                                            -
                                                                                                                                            -
                                                                                                                                            - -
                                                                                                                                            -
                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/NavbarPage.html b/docs/classes/NavbarPage.html deleted file mode 100644 index c69e0499d..000000000 --- a/docs/classes/NavbarPage.html +++ /dev/null @@ -1,585 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                            -
                                                                                                                                            - - -
                                                                                                                                            -
                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                            -
                                                                                                                                            -

                                                                                                                                            -

                                                                                                                                            File

                                                                                                                                            -

                                                                                                                                            -

                                                                                                                                            - apps/webapp-e2e/src/po/navbar.po.ts -

                                                                                                                                            - - - - - -
                                                                                                                                            -

                                                                                                                                            Index

                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                            -
                                                                                                                                            Properties
                                                                                                                                            -
                                                                                                                                            - -
                                                                                                                                            -
                                                                                                                                            - -
                                                                                                                                            -

                                                                                                                                            Constructor

                                                                                                                                            - - - - - - - - - - -
                                                                                                                                            -constructor() -
                                                                                                                                            - -
                                                                                                                                            -
                                                                                                                                            - -
                                                                                                                                            - -

                                                                                                                                            - Properties -

                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - logoutMenuItem - - - -
                                                                                                                                            - logoutMenuItem: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - menuDropDown - - - -
                                                                                                                                            - menuDropDown: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - menuDropDownClasses - - - -
                                                                                                                                            - menuDropDownClasses: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - menuDropDownLessons - - - -
                                                                                                                                            - menuDropDownLessons: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - menuDropDownMap - - - -
                                                                                                                                            - menuDropDownMap: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - menuDropDownStudents - - - -
                                                                                                                                            - menuDropDownStudents: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - menuDropDownUsers - - - -
                                                                                                                                            - menuDropDownUsers: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - toolsDropDown - - - -
                                                                                                                                            - toolsDropDown: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - url - - - -
                                                                                                                                            - url: string | null - -
                                                                                                                                            - Type : string | null - -
                                                                                                                                            - -
                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                            - - - - username - - - -
                                                                                                                                            - username: Selector - -
                                                                                                                                            - Type : Selector - -
                                                                                                                                            - -
                                                                                                                                            -
                                                                                                                                            - - - - - - - -
                                                                                                                                            - - -
                                                                                                                                            -
                                                                                                                                            import { Selector } from 'testcafe';
                                                                                                                                            -
                                                                                                                                            -export default class NavbarPage {
                                                                                                                                            -  toolsDropDown: Selector;
                                                                                                                                            -  menuDropDown: Selector;
                                                                                                                                            -  logoutMenuItem: Selector;
                                                                                                                                            -  menuDropDownStudents: Selector;
                                                                                                                                            -  menuDropDownClasses: Selector;
                                                                                                                                            -  menuDropDownLessons: Selector;
                                                                                                                                            -  menuDropDownMap: Selector;
                                                                                                                                            -  menuDropDownUsers: Selector;
                                                                                                                                            -  username: Selector;
                                                                                                                                            -  url: string | null;
                                                                                                                                            -  constructor() {
                                                                                                                                            -    this.toolsDropDown = Selector('[id$="navbarDropdownMenuLink"]');
                                                                                                                                            -    this.menuDropDown = Selector('[id$="navbarDropdownMenuLink0"]');
                                                                                                                                            -    this.logoutMenuItem = Selector('[id$="logout"]');
                                                                                                                                            -    this.menuDropDownStudents = Selector('.nb-student');
                                                                                                                                            -    this.menuDropDownClasses = Selector('.nb-class');
                                                                                                                                            -    this.menuDropDownLessons = Selector('.nb-lesson');
                                                                                                                                            -    this.menuDropDownMap = Selector('.nb-map');
                                                                                                                                            -    this.menuDropDownUsers = Selector('.nb-user');
                                                                                                                                            -    this.username = Selector('.msw-header-user-name');
                                                                                                                                            -    this.url = null;
                                                                                                                                            -  }
                                                                                                                                            -}
                                                                                                                                            -
                                                                                                                                            -
                                                                                                                                            -
                                                                                                                                            - - - - - - - -
                                                                                                                                            -
                                                                                                                                            -

                                                                                                                                            result-matching ""

                                                                                                                                            -
                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                              -

                                                                                                                                              No results matching ""

                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                              - -
                                                                                                                                              -
                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/NextCurrentlyOpened.html b/docs/classes/NextCurrentlyOpened.html deleted file mode 100644 index 5abf4ebb8..000000000 --- a/docs/classes/NextCurrentlyOpened.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                              -
                                                                                                                                              - - -
                                                                                                                                              -
                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                              -
                                                                                                                                              -

                                                                                                                                              -

                                                                                                                                              File

                                                                                                                                              -

                                                                                                                                              -

                                                                                                                                              - libs/navigator/src/lib/state/menu.state.ts -

                                                                                                                                              - - - - - -
                                                                                                                                              -

                                                                                                                                              Index

                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                              -
                                                                                                                                              Properties
                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                                -
                                                                                                                                              • - Public - Readonly - payload -
                                                                                                                                              • -
                                                                                                                                              • - Static - Readonly - type -
                                                                                                                                              • -
                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                              - -
                                                                                                                                              -

                                                                                                                                              Constructor

                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                              -constructor(payload: MenuItem[]) -
                                                                                                                                              - -
                                                                                                                                              -
                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                              NameTypeOptional
                                                                                                                                              payload - MenuItem[] - - No -
                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                              - -
                                                                                                                                              - -

                                                                                                                                              - Properties -

                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                              - - - - Public - Readonly - payload - - - -
                                                                                                                                              - payload: MenuItem[] - -
                                                                                                                                              - Type : MenuItem[] - -
                                                                                                                                              - -
                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                              - - - - Static - Readonly - type - - - -
                                                                                                                                              - type: string - -
                                                                                                                                              - Type : string - -
                                                                                                                                              - Default value : '[Menu] Next Currently Opened' -
                                                                                                                                              - -
                                                                                                                                              -
                                                                                                                                              - - - - - - - -
                                                                                                                                              - - -
                                                                                                                                              -
                                                                                                                                              import { Action, NgxsOnInit, Selector, State, StateContext, Store } from '@ngxs/store';
                                                                                                                                              -import { MenuItem } from '../models/menu-item.model';
                                                                                                                                              -import { MenuService } from '../services/menu.service';
                                                                                                                                              -import { Tree } from '@ngx-starter-kit/tree';
                                                                                                                                              -
                                                                                                                                              -export class NextCurrentlyOpened {
                                                                                                                                              -  static readonly type = '[Menu] Next Currently Opened';
                                                                                                                                              -  constructor(public readonly payload: MenuItem[]) {}
                                                                                                                                              -}
                                                                                                                                              -
                                                                                                                                              -export class SetIconMode {
                                                                                                                                              -  static readonly type = '[Menu] SetIconMode';
                                                                                                                                              -  constructor(public readonly payload: boolean) {}
                                                                                                                                              -}
                                                                                                                                              -
                                                                                                                                              -export class ToggleCurrentlyOpened {
                                                                                                                                              -  static readonly type = '[Menu] ToggleCurrentlyOpened';
                                                                                                                                              -  constructor(public readonly payload: MenuItem) {}
                                                                                                                                              -}
                                                                                                                                              -
                                                                                                                                              -export class ToggleCurrentlyOpenedByRoute {
                                                                                                                                              -  static readonly type = '[Menu] ToggleCurrentlyOpenedByRoute';
                                                                                                                                              -  constructor(public readonly payload: string) {}
                                                                                                                                              -}
                                                                                                                                              -
                                                                                                                                              -export interface MenuStateModel {
                                                                                                                                              -  tree: Tree<MenuItem>;
                                                                                                                                              -  currentlyOpened: MenuItem[];
                                                                                                                                              -  iconMode: boolean;
                                                                                                                                              -}
                                                                                                                                              -
                                                                                                                                              -@State<MenuStateModel>({
                                                                                                                                              -  name: 'menu',
                                                                                                                                              -  defaults: {
                                                                                                                                              -    tree: null,
                                                                                                                                              -    currentlyOpened: [],
                                                                                                                                              -    iconMode: false,
                                                                                                                                              -  },
                                                                                                                                              -})
                                                                                                                                              -export class MenuState implements NgxsOnInit {
                                                                                                                                              -  constructor(private menuService: MenuService) {}
                                                                                                                                              -
                                                                                                                                              -  @Selector()
                                                                                                                                              -  static menuItems(state: MenuStateModel) {
                                                                                                                                              -    return state.tree.root.children;
                                                                                                                                              -  }
                                                                                                                                              -
                                                                                                                                              -  @Selector()
                                                                                                                                              -  static currentlyOpened(state: MenuStateModel) {
                                                                                                                                              -    if (state.iconMode) {
                                                                                                                                              -      return [];
                                                                                                                                              -    } else {
                                                                                                                                              -      return state.currentlyOpened;
                                                                                                                                              -    }
                                                                                                                                              -  }
                                                                                                                                              -
                                                                                                                                              -  ngxsOnInit({ setState, getState }: StateContext<MenuStateModel>) {
                                                                                                                                              -    setState({
                                                                                                                                              -      tree: this.menuService.tree,
                                                                                                                                              -      currentlyOpened: [],
                                                                                                                                              -      iconMode: false,
                                                                                                                                              -    });
                                                                                                                                              -  }
                                                                                                                                              -
                                                                                                                                              -  private getParents(tree, item: MenuItem): MenuItem[] {
                                                                                                                                              -    const ancestors = tree.getAllParents(item);
                                                                                                                                              -    ancestors.shift();
                                                                                                                                              -    return ancestors;
                                                                                                                                              -  }
                                                                                                                                              -
                                                                                                                                              -  @Action(SetIconMode)
                                                                                                                                              -  setIconMode({ getState, patchState }: StateContext<MenuStateModel>, { payload }: SetIconMode) {
                                                                                                                                              -    patchState({
                                                                                                                                              -      iconMode: payload,
                                                                                                                                              -    });
                                                                                                                                              -  }
                                                                                                                                              -
                                                                                                                                              -  @Action(NextCurrentlyOpened)
                                                                                                                                              -  nextCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: NextCurrentlyOpened) {
                                                                                                                                              -    patchState({
                                                                                                                                              -      currentlyOpened: payload,
                                                                                                                                              -    });
                                                                                                                                              -  }
                                                                                                                                              -
                                                                                                                                              -  @Action(ToggleCurrentlyOpened)
                                                                                                                                              -  toggleCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: ToggleCurrentlyOpened) {
                                                                                                                                              -    // tslint:disable:prefer-const
                                                                                                                                              -    let { tree, currentlyOpened } = getState();
                                                                                                                                              -    const isOpen = currentlyOpened.indexOf(payload) !== -1;
                                                                                                                                              -
                                                                                                                                              -    if (isOpen) {
                                                                                                                                              -      if (currentlyOpened.length > 1) {
                                                                                                                                              -        currentlyOpened.length = currentlyOpened.indexOf(payload);
                                                                                                                                              -      } else {
                                                                                                                                              -        currentlyOpened = [];
                                                                                                                                              -      }
                                                                                                                                              -    } else {
                                                                                                                                              -      currentlyOpened = this.getParents(tree, payload);
                                                                                                                                              -    }
                                                                                                                                              -
                                                                                                                                              -    patchState({
                                                                                                                                              -      currentlyOpened: currentlyOpened,
                                                                                                                                              -    });
                                                                                                                                              -  }
                                                                                                                                              -
                                                                                                                                              -  @Action(ToggleCurrentlyOpenedByRoute)
                                                                                                                                              -  toggleCurrentlyOpenedByRoute(
                                                                                                                                              -    { getState, patchState }: StateContext<MenuStateModel>,
                                                                                                                                              -    { payload }: ToggleCurrentlyOpenedByRoute,
                                                                                                                                              -  ) {
                                                                                                                                              -    const { tree } = getState();
                                                                                                                                              -    let currentlyOpened: MenuItem[] = [];
                                                                                                                                              -
                                                                                                                                              -    const item = tree.findByPredicateBFS(node => {
                                                                                                                                              -      return node.link === payload;
                                                                                                                                              -    });
                                                                                                                                              -
                                                                                                                                              -    if (item && item.parent) {
                                                                                                                                              -      currentlyOpened = this.getParents(tree, item);
                                                                                                                                              -    } else if (item) {
                                                                                                                                              -      currentlyOpened = [item];
                                                                                                                                              -    }
                                                                                                                                              -
                                                                                                                                              -    patchState({
                                                                                                                                              -      currentlyOpened: currentlyOpened,
                                                                                                                                              -    });
                                                                                                                                              -  }
                                                                                                                                              -}
                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                              -
                                                                                                                                              - - - - - - - -
                                                                                                                                              -
                                                                                                                                              -

                                                                                                                                              result-matching ""

                                                                                                                                              -
                                                                                                                                                -
                                                                                                                                                -
                                                                                                                                                -

                                                                                                                                                No results matching ""

                                                                                                                                                -
                                                                                                                                                -
                                                                                                                                                -
                                                                                                                                                - -
                                                                                                                                                -
                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/NgLetContext.html b/docs/classes/NgLetContext.html deleted file mode 100644 index dce07fb76..000000000 --- a/docs/classes/NgLetContext.html +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                -
                                                                                                                                                - - -
                                                                                                                                                -
                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                -
                                                                                                                                                -

                                                                                                                                                -

                                                                                                                                                File

                                                                                                                                                -

                                                                                                                                                -

                                                                                                                                                - libs/ngx-utils/src/lib/directives/ng-let/ng-let.directive.ts -

                                                                                                                                                - - - - - -
                                                                                                                                                -

                                                                                                                                                Index

                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                -
                                                                                                                                                Properties
                                                                                                                                                -
                                                                                                                                                - -
                                                                                                                                                -
                                                                                                                                                - - -
                                                                                                                                                - -

                                                                                                                                                - Properties -

                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                - - - - $implicit - - - -
                                                                                                                                                - $implicit: any - -
                                                                                                                                                - Type : any - -
                                                                                                                                                - Default value : null -
                                                                                                                                                - -
                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                - - - - ngLet - - - -
                                                                                                                                                - ngLet: any - -
                                                                                                                                                - Type : any - -
                                                                                                                                                - Default value : null -
                                                                                                                                                - -
                                                                                                                                                -
                                                                                                                                                - - - - - - - -
                                                                                                                                                - - -
                                                                                                                                                -
                                                                                                                                                import { NgModule, Directive, Input, TemplateRef, ViewContainerRef, OnInit } from '@angular/core';
                                                                                                                                                -
                                                                                                                                                -export class NgLetContext {
                                                                                                                                                -  $implicit: any = null;
                                                                                                                                                -  ngLet: any = null;
                                                                                                                                                -}
                                                                                                                                                -
                                                                                                                                                -@Directive({
                                                                                                                                                -  selector: '[ngLet]',
                                                                                                                                                -})
                                                                                                                                                -export class NgLetDirective implements OnInit {
                                                                                                                                                -  private _context = new NgLetContext();
                                                                                                                                                -
                                                                                                                                                -  @Input()
                                                                                                                                                -  set ngLet(value: any) {
                                                                                                                                                -    this._context.$implicit = this._context.ngLet = value;
                                                                                                                                                -  }
                                                                                                                                                -
                                                                                                                                                -  constructor(private _vcr: ViewContainerRef, private _templateRef: TemplateRef<NgLetContext>) {}
                                                                                                                                                -
                                                                                                                                                -  ngOnInit() {
                                                                                                                                                -    this._vcr.createEmbeddedView(this._templateRef, this._context);
                                                                                                                                                -  }
                                                                                                                                                -}
                                                                                                                                                -
                                                                                                                                                -
                                                                                                                                                -
                                                                                                                                                - - - - - - - -
                                                                                                                                                -
                                                                                                                                                -

                                                                                                                                                result-matching ""

                                                                                                                                                -
                                                                                                                                                  -
                                                                                                                                                  -
                                                                                                                                                  -

                                                                                                                                                  No results matching ""

                                                                                                                                                  -
                                                                                                                                                  -
                                                                                                                                                  -
                                                                                                                                                  - -
                                                                                                                                                  -
                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Notification-1.html b/docs/classes/Notification-1.html deleted file mode 100644 index 7230be43a..000000000 --- a/docs/classes/Notification-1.html +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                  -
                                                                                                                                                  - - -
                                                                                                                                                  -
                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                  -
                                                                                                                                                  -

                                                                                                                                                  -

                                                                                                                                                  File

                                                                                                                                                  -

                                                                                                                                                  -

                                                                                                                                                  - libs/notifications/src/lib/notification.model.ts -

                                                                                                                                                  - - -

                                                                                                                                                  -

                                                                                                                                                  Extends

                                                                                                                                                  -

                                                                                                                                                  -

                                                                                                                                                  - Entity -

                                                                                                                                                  - - - -
                                                                                                                                                  -

                                                                                                                                                  Index

                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                  -
                                                                                                                                                  Properties
                                                                                                                                                  -
                                                                                                                                                  - -
                                                                                                                                                  -
                                                                                                                                                  - - -
                                                                                                                                                  - -

                                                                                                                                                  - Properties -

                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                  - - - - Public - color - - - -
                                                                                                                                                  - color: "warn" | "accent" | "primary" - -
                                                                                                                                                  - Type : "warn" | "accent" | "primary" - -
                                                                                                                                                  - -
                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                  - - - - Public - createdAt - - - -
                                                                                                                                                  - createdAt: Moment - -
                                                                                                                                                  - Type : Moment - -
                                                                                                                                                  - -
                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                  - - - - Public - icon - - - -
                                                                                                                                                  - icon: "notifications" | "notifications_active" | "shopping_basket" | "eject" | "cached" | "code" - -
                                                                                                                                                  - Type : "notifications" | "notifications_active" | "shopping_basket" | "eject" | "cached" | "code" - -
                                                                                                                                                  - -
                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                  - - - - Public - id - - - -
                                                                                                                                                  - id: string - -
                                                                                                                                                  - Type : string - -
                                                                                                                                                  - -
                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                  - - - - Public - message - - - -
                                                                                                                                                  - message: string - -
                                                                                                                                                  - Type : string - -
                                                                                                                                                  - -
                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                  - - - - Public - read - - - -
                                                                                                                                                  - read: boolean - -
                                                                                                                                                  - Type : boolean - -
                                                                                                                                                  - -
                                                                                                                                                  -
                                                                                                                                                  - - - - - - - -
                                                                                                                                                  - - -
                                                                                                                                                  -
                                                                                                                                                  import { Moment } from 'moment';
                                                                                                                                                  -import { Entity } from '@ngx-starter-kit/shared';
                                                                                                                                                  -
                                                                                                                                                  -export class Notification extends Entity {
                                                                                                                                                  -  public id: string;
                                                                                                                                                  -  public icon: 'notifications' | 'notifications_active' | 'shopping_basket' | 'eject' | 'cached' | 'code';
                                                                                                                                                  -  public message: string;
                                                                                                                                                  -  public createdAt: Moment;
                                                                                                                                                  -  public read: boolean;
                                                                                                                                                  -  public color: 'warn' | 'accent' | 'primary';
                                                                                                                                                  -}
                                                                                                                                                  -
                                                                                                                                                  -
                                                                                                                                                  -
                                                                                                                                                  - - - - - - - -
                                                                                                                                                  -
                                                                                                                                                  -

                                                                                                                                                  result-matching ""

                                                                                                                                                  -
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    -

                                                                                                                                                    No results matching ""

                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - -
                                                                                                                                                    -
                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Notification.html b/docs/classes/Notification.html deleted file mode 100644 index 445c73b99..000000000 --- a/docs/classes/Notification.html +++ /dev/null @@ -1,569 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                    -
                                                                                                                                                    - - -
                                                                                                                                                    -
                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                    -
                                                                                                                                                    -

                                                                                                                                                    -

                                                                                                                                                    File

                                                                                                                                                    -

                                                                                                                                                    -

                                                                                                                                                    - apps/api/src/notifications/notification.entity.ts -

                                                                                                                                                    - - -

                                                                                                                                                    -

                                                                                                                                                    Extends

                                                                                                                                                    -

                                                                                                                                                    -

                                                                                                                                                    - Base -

                                                                                                                                                    - - - -
                                                                                                                                                    -

                                                                                                                                                    Index

                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                    -
                                                                                                                                                    Properties
                                                                                                                                                    -
                                                                                                                                                    - -
                                                                                                                                                    -
                                                                                                                                                    - - -
                                                                                                                                                    - -

                                                                                                                                                    - Properties -

                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                    - - - - Optional - color - - - -
                                                                                                                                                    - color: NotificationColor - -
                                                                                                                                                    - Type : NotificationColor - -
                                                                                                                                                    - Decorators : -
                                                                                                                                                    - - @ApiModelProperty({type: String})
                                                                                                                                                    @IsString()
                                                                                                                                                    @IsNotEmpty()
                                                                                                                                                    @Column()
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - -
                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                    - - - - Optional - createdAt - - - -
                                                                                                                                                    - createdAt: Date - -
                                                                                                                                                    - Type : Date - -
                                                                                                                                                    - Decorators : -
                                                                                                                                                    - - @ApiModelProperty({type: Date})
                                                                                                                                                    @CreateDateColumn()
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - -
                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                    - - - - icon - - - -
                                                                                                                                                    - icon: NotificationIcon - -
                                                                                                                                                    - Type : NotificationIcon - -
                                                                                                                                                    - Decorators : -
                                                                                                                                                    - - @ApiModelProperty({type: String})
                                                                                                                                                    @IsString()
                                                                                                                                                    @IsNotEmpty()
                                                                                                                                                    @Column()
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - -
                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                    - - - - message - - - -
                                                                                                                                                    - message: string - -
                                                                                                                                                    - Type : string - -
                                                                                                                                                    - Decorators : -
                                                                                                                                                    - - @ApiModelProperty({type: String, minLength: 10, maxLength: 100})
                                                                                                                                                    @IsString()
                                                                                                                                                    @IsNotEmpty()
                                                                                                                                                    @Column()
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - -
                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                    - - - - read - - - -
                                                                                                                                                    - read: boolean - -
                                                                                                                                                    - Type : boolean - -
                                                                                                                                                    - Decorators : -
                                                                                                                                                    - - @ApiModelProperty({type: String})
                                                                                                                                                    @IsBoolean()
                                                                                                                                                    @IsNotEmpty()
                                                                                                                                                    @Index()
                                                                                                                                                    @Column()
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - -
                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                    - - - - userId - - - -
                                                                                                                                                    - userId: string - -
                                                                                                                                                    - Type : string - -
                                                                                                                                                    - Decorators : -
                                                                                                                                                    - - @ApiModelProperty({type: String, minLength: 8, maxLength: 20})
                                                                                                                                                    @IsAscii()
                                                                                                                                                    @IsNotEmpty()
                                                                                                                                                    @MinLength(8)
                                                                                                                                                    @MaxLength(20)
                                                                                                                                                    @Index()
                                                                                                                                                    @Column()
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - -
                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                    - - - - id - - - -
                                                                                                                                                    - id: number - -
                                                                                                                                                    - Type : number - -
                                                                                                                                                    - Decorators : -
                                                                                                                                                    - - @ApiModelPropertyOptional()
                                                                                                                                                    @PrimaryGeneratedColumn()
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    Inherited from Base -
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    Defined in Base:7
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - - - - - - - -
                                                                                                                                                    - - -
                                                                                                                                                    -
                                                                                                                                                    import { Column, CreateDateColumn, Entity, Index } from 'typeorm';
                                                                                                                                                    -import { Base } from '../core';
                                                                                                                                                    -import { ApiModelProperty } from '@nestjs/swagger';
                                                                                                                                                    -import { IsAscii, IsBoolean, IsNotEmpty, IsString, MaxLength, MinLength } from 'class-validator';
                                                                                                                                                    -
                                                                                                                                                    -export enum NotificationColor {
                                                                                                                                                    -  WARN = 'warn',
                                                                                                                                                    -  ACCENT = 'accent',
                                                                                                                                                    -  PRIMARY = 'primary',
                                                                                                                                                    -}
                                                                                                                                                    -
                                                                                                                                                    -export enum NotificationIcon {
                                                                                                                                                    -  notifications = 'notifications',
                                                                                                                                                    -  notifications_active = 'notifications_active',
                                                                                                                                                    -  shopping_basket = 'shopping_basket',
                                                                                                                                                    -  eject = 'eject',
                                                                                                                                                    -  cached = 'cached',
                                                                                                                                                    -  code = 'code',
                                                                                                                                                    -}
                                                                                                                                                    -
                                                                                                                                                    -@Entity('notification')
                                                                                                                                                    -export class Notification extends Base {
                                                                                                                                                    -  @ApiModelProperty({ type: String })
                                                                                                                                                    -  @IsString()
                                                                                                                                                    -  @IsNotEmpty()
                                                                                                                                                    -  @Column()
                                                                                                                                                    -  icon: NotificationIcon;
                                                                                                                                                    -
                                                                                                                                                    -  @ApiModelProperty({ type: String, minLength: 10, maxLength: 100 })
                                                                                                                                                    -  @IsString()
                                                                                                                                                    -  @IsNotEmpty()
                                                                                                                                                    -  @Column()
                                                                                                                                                    -  message: string;
                                                                                                                                                    -
                                                                                                                                                    -  @ApiModelProperty({ type: Date })
                                                                                                                                                    -  @CreateDateColumn()
                                                                                                                                                    -  createdAt?: Date;
                                                                                                                                                    -
                                                                                                                                                    -  @ApiModelProperty({ type: String })
                                                                                                                                                    -  @IsBoolean()
                                                                                                                                                    -  @IsNotEmpty()
                                                                                                                                                    -  @Index()
                                                                                                                                                    -  @Column()
                                                                                                                                                    -  read: boolean;
                                                                                                                                                    -
                                                                                                                                                    -  @ApiModelProperty({ type: String })
                                                                                                                                                    -  @IsString()
                                                                                                                                                    -  @IsNotEmpty()
                                                                                                                                                    -  @Column()
                                                                                                                                                    -  color?: NotificationColor;
                                                                                                                                                    -
                                                                                                                                                    -  @ApiModelProperty({ type: String, minLength: 8, maxLength: 20 })
                                                                                                                                                    -  @IsAscii()
                                                                                                                                                    -  @IsNotEmpty()
                                                                                                                                                    -  @MinLength(8)
                                                                                                                                                    -  @MaxLength(20)
                                                                                                                                                    -  @Index()
                                                                                                                                                    -  @Column()
                                                                                                                                                    -  userId: string;
                                                                                                                                                    -}
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    -
                                                                                                                                                    - - - - - - - -
                                                                                                                                                    -
                                                                                                                                                    -

                                                                                                                                                    result-matching ""

                                                                                                                                                    -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -

                                                                                                                                                      No results matching ""

                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/NotificationsState.html b/docs/classes/NotificationsState.html deleted file mode 100644 index fcfc51a33..000000000 --- a/docs/classes/NotificationsState.html +++ /dev/null @@ -1,881 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                      -
                                                                                                                                                      - - -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                      -
                                                                                                                                                      -

                                                                                                                                                      -

                                                                                                                                                      File

                                                                                                                                                      -

                                                                                                                                                      -

                                                                                                                                                      - libs/notifications/src/lib/notifications.state.ts -

                                                                                                                                                      - - - -

                                                                                                                                                      -

                                                                                                                                                      Implements

                                                                                                                                                      -

                                                                                                                                                      -

                                                                                                                                                      - NgxsOnInit -

                                                                                                                                                      - - -
                                                                                                                                                      -

                                                                                                                                                      Index

                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                      -
                                                                                                                                                      Methods
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -

                                                                                                                                                      Constructor

                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                      -constructor(notificationsService: NotificationsService) -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      NameTypeOptional
                                                                                                                                                      notificationsService - NotificationsService - - No -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - - -
                                                                                                                                                      - -

                                                                                                                                                      - Methods -

                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      - - - - add - - - -
                                                                                                                                                      -add(undefined: StateContext, undefined: AddNotification) -
                                                                                                                                                      - Decorators : -
                                                                                                                                                      - - @Action(AddNotification)
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      - -
                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      NameTypeOptional
                                                                                                                                                      - StateContext<Notification[]> - - No -
                                                                                                                                                      - AddNotification - - No -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - Returns : void - -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      - - - - delete - - - -
                                                                                                                                                      -delete(undefined: StateContext, undefined: AddNotification) -
                                                                                                                                                      - Decorators : -
                                                                                                                                                      - - @Action(DeleteNotification)
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      - -
                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      NameTypeOptional
                                                                                                                                                      - StateContext<Notification[]> - - No -
                                                                                                                                                      - AddNotification - - No -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - Returns : void - -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      - - - - fetchNotifications - - - -
                                                                                                                                                      -fetchNotifications(undefined: StateContext) -
                                                                                                                                                      - Decorators : -
                                                                                                                                                      - - @Action(FetchNotifications, {cancelUncompleted: undefined})
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      - -
                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - -
                                                                                                                                                      NameTypeOptional
                                                                                                                                                      - StateContext<Notification[]> - - No -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - Returns : any - -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      - - - - markAllAsRead - - - -
                                                                                                                                                      -markAllAsRead(undefined: StateContext) -
                                                                                                                                                      - Decorators : -
                                                                                                                                                      - - @Action(MarkAllAsRead)
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      - -
                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - -
                                                                                                                                                      NameTypeOptional
                                                                                                                                                      - StateContext<Notification[]> - - No -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - Returns : void - -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      - - - - markAsRead - - - -
                                                                                                                                                      -markAsRead(undefined: StateContext, undefined: MarkAsRead) -
                                                                                                                                                      - Decorators : -
                                                                                                                                                      - - @Action(MarkAsRead)
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      - -
                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      NameTypeOptional
                                                                                                                                                      - StateContext<Notification[]> - - No -
                                                                                                                                                      - MarkAsRead - - No -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - Returns : void - -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      - - - - ngxsOnInit - - - -
                                                                                                                                                      -ngxsOnInit(ctx: StateContext) -
                                                                                                                                                      - -
                                                                                                                                                      - -
                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      NameTypeOptional
                                                                                                                                                      ctx - StateContext<Notification[]> - - No -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - Returns : void - -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      - - - - Static - unReadCount - - - -
                                                                                                                                                      - - unReadCount(state: Notification[]) -
                                                                                                                                                      - Decorators : -
                                                                                                                                                      - - @Selector()
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      - -
                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                      NameTypeOptional
                                                                                                                                                      state - Notification[] - - No -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - Returns : any - -
                                                                                                                                                      -
                                                                                                                                                      - -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - -
                                                                                                                                                      - - -
                                                                                                                                                      -
                                                                                                                                                      import { Action, NgxsOnInit, Selector, State, StateContext } from '@ngxs/store';
                                                                                                                                                      -import { Notification } from './notification.model';
                                                                                                                                                      -import { tap } from 'rxjs/operators';
                                                                                                                                                      -import { NotificationsService } from './notifications.service';
                                                                                                                                                      -import {
                                                                                                                                                      -  FetchNotifications,
                                                                                                                                                      -  AddNotification,
                                                                                                                                                      -  DeleteNotification,
                                                                                                                                                      -  MarkAsRead,
                                                                                                                                                      -  MarkAllAsRead,
                                                                                                                                                      -} from './notifications.actions';
                                                                                                                                                      -
                                                                                                                                                      -@State<Notification[]>({
                                                                                                                                                      -  name: 'notifications',
                                                                                                                                                      -  defaults: [],
                                                                                                                                                      -})
                                                                                                                                                      -export class NotificationsState implements NgxsOnInit {
                                                                                                                                                      -  constructor(private notificationsService: NotificationsService) {}
                                                                                                                                                      -
                                                                                                                                                      -  @Selector()
                                                                                                                                                      -  static unReadCount(state: Notification[]) {
                                                                                                                                                      -    return state.filter(note => !note.read).length;
                                                                                                                                                      -  }
                                                                                                                                                      -
                                                                                                                                                      -  ngxsOnInit(ctx: StateContext<Notification[]>) {
                                                                                                                                                      -    console.log('State initialized, now getting Notifications.');
                                                                                                                                                      -    // well, this way be call be called before dashboard is routed due to preloadingStrategy. so lets use ngOnInit on component
                                                                                                                                                      -    // ctx.dispatch(new FetchNotifications())
                                                                                                                                                      -  }
                                                                                                                                                      -
                                                                                                                                                      -  @Action(AddNotification)
                                                                                                                                                      -  add({ getState, setState, patchState }: StateContext<Notification[]>, { payload }: AddNotification) {
                                                                                                                                                      -    setState([...getState(), payload]);
                                                                                                                                                      -  }
                                                                                                                                                      -
                                                                                                                                                      -  @Action(FetchNotifications, { cancelUncompleted: true })
                                                                                                                                                      -  fetchNotifications({ getState, patchState, setState }: StateContext<Notification[]>) {
                                                                                                                                                      -    return this.notificationsService.getAll().pipe(tap(res => setState(res)));
                                                                                                                                                      -  }
                                                                                                                                                      -
                                                                                                                                                      -  @Action(DeleteNotification)
                                                                                                                                                      -  delete({ getState, setState, patchState }: StateContext<Notification[]>, { payload }: AddNotification) {
                                                                                                                                                      -    setState(getState().filter(note => note !== payload));
                                                                                                                                                      -  }
                                                                                                                                                      -
                                                                                                                                                      -  @Action(MarkAsRead)
                                                                                                                                                      -  markAsRead({ getState, setState, patchState }: StateContext<Notification[]>, { payload }: MarkAsRead) {
                                                                                                                                                      -    setState(
                                                                                                                                                      -      getState().map(notification => {
                                                                                                                                                      -        if (notification === payload) {
                                                                                                                                                      -          notification.read = true;
                                                                                                                                                      -        }
                                                                                                                                                      -        return notification;
                                                                                                                                                      -      }),
                                                                                                                                                      -    );
                                                                                                                                                      -  }
                                                                                                                                                      -
                                                                                                                                                      -  @Action(MarkAllAsRead)
                                                                                                                                                      -  markAllAsRead({ getState, setState, patchState }: StateContext<Notification[]>) {
                                                                                                                                                      -    setState(
                                                                                                                                                      -      getState().map(notification => {
                                                                                                                                                      -        notification.read = true;
                                                                                                                                                      -        return notification;
                                                                                                                                                      -      }),
                                                                                                                                                      -    );
                                                                                                                                                      -  }
                                                                                                                                                      -}
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      -
                                                                                                                                                      - - - - - - - -
                                                                                                                                                      -
                                                                                                                                                      -

                                                                                                                                                      result-matching ""

                                                                                                                                                      -
                                                                                                                                                        -
                                                                                                                                                        -
                                                                                                                                                        -

                                                                                                                                                        No results matching ""

                                                                                                                                                        -
                                                                                                                                                        -
                                                                                                                                                        -
                                                                                                                                                        - -
                                                                                                                                                        -
                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/PreferenceState.html b/docs/classes/PreferenceState.html deleted file mode 100644 index a6916ba1f..000000000 --- a/docs/classes/PreferenceState.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                        -
                                                                                                                                                        - - -
                                                                                                                                                        -
                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                        -
                                                                                                                                                        -

                                                                                                                                                        -

                                                                                                                                                        File

                                                                                                                                                        -

                                                                                                                                                        -

                                                                                                                                                        - libs/core/src/lib/state/preference.state.ts -

                                                                                                                                                        - - - - - - -
                                                                                                                                                        -

                                                                                                                                                        Constructor

                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                        -constructor(store: Store) -
                                                                                                                                                        - -
                                                                                                                                                        -
                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                        NameTypeOptional
                                                                                                                                                        store - Store - - No -
                                                                                                                                                        -
                                                                                                                                                        -
                                                                                                                                                        -
                                                                                                                                                        - - - - - - - - -
                                                                                                                                                        - - -
                                                                                                                                                        -
                                                                                                                                                        import { State, Store } from '@ngxs/store';
                                                                                                                                                        -
                                                                                                                                                        -export interface PreferenceStateModel {
                                                                                                                                                        -  language?: string;
                                                                                                                                                        -  theme?: string;
                                                                                                                                                        -}
                                                                                                                                                        -
                                                                                                                                                        -@State<PreferenceStateModel>({
                                                                                                                                                        -  name: 'preference',
                                                                                                                                                        -  defaults: {
                                                                                                                                                        -    language: 'en',
                                                                                                                                                        -    theme: 'deeppurple-amber',
                                                                                                                                                        -  },
                                                                                                                                                        -})
                                                                                                                                                        -export class PreferenceState {
                                                                                                                                                        -  constructor(private store: Store) {}
                                                                                                                                                        -}
                                                                                                                                                        -
                                                                                                                                                        -
                                                                                                                                                        -
                                                                                                                                                        - - - - - - - -
                                                                                                                                                        -
                                                                                                                                                        -

                                                                                                                                                        result-matching ""

                                                                                                                                                        -
                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          -

                                                                                                                                                          No results matching ""

                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          - -
                                                                                                                                                          -
                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/PreloadSelectedModulesList.html b/docs/classes/PreloadSelectedModulesList.html deleted file mode 100644 index b8bab3d78..000000000 --- a/docs/classes/PreloadSelectedModulesList.html +++ /dev/null @@ -1,269 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                          -
                                                                                                                                                          - - -
                                                                                                                                                          -
                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                          -
                                                                                                                                                          -

                                                                                                                                                          -

                                                                                                                                                          File

                                                                                                                                                          -

                                                                                                                                                          -

                                                                                                                                                          - apps/webapp/src/app/preloading-strategy.ts -

                                                                                                                                                          - - - -

                                                                                                                                                          -

                                                                                                                                                          Implements

                                                                                                                                                          -

                                                                                                                                                          -

                                                                                                                                                          - PreloadingStrategy -

                                                                                                                                                          - - -
                                                                                                                                                          -

                                                                                                                                                          Index

                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                          -
                                                                                                                                                          Methods
                                                                                                                                                          -
                                                                                                                                                          - -
                                                                                                                                                          -
                                                                                                                                                          - - - -
                                                                                                                                                          - -

                                                                                                                                                          - Methods -

                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                          - - - - preload - - - -
                                                                                                                                                          -preload(route: Route, load: Function) -
                                                                                                                                                          - -
                                                                                                                                                          - -
                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                          NameTypeOptional
                                                                                                                                                          route - Route - - No -
                                                                                                                                                          load - Function - - No -
                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          - Returns : Observable<any> - -
                                                                                                                                                          -
                                                                                                                                                          - -
                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          - - - - - - -
                                                                                                                                                          - - -
                                                                                                                                                          -
                                                                                                                                                          import { RouterModule, Routes, Route, PreloadingStrategy } from '@angular/router';
                                                                                                                                                          -import { Observable, of } from 'rxjs';
                                                                                                                                                          -
                                                                                                                                                          -export class PreloadSelectedModulesList implements PreloadingStrategy {
                                                                                                                                                          -  preload(route: Route, load: Function): Observable<any> {
                                                                                                                                                          -    return route.data && route.data.preload ? load() : of(null);
                                                                                                                                                          -  }
                                                                                                                                                          -}
                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          -
                                                                                                                                                          - - - - - - - -
                                                                                                                                                          -
                                                                                                                                                          -

                                                                                                                                                          result-matching ""

                                                                                                                                                          -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -

                                                                                                                                                            No results matching ""

                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            - -
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Profile.html b/docs/classes/Profile.html deleted file mode 100644 index 02e12b340..000000000 --- a/docs/classes/Profile.html +++ /dev/null @@ -1,606 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                            -
                                                                                                                                                            - - -
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                            -
                                                                                                                                                            -

                                                                                                                                                            -

                                                                                                                                                            File

                                                                                                                                                            -

                                                                                                                                                            -

                                                                                                                                                            - apps/api/src/user/profile/profile.entity.ts -

                                                                                                                                                            - - -

                                                                                                                                                            -

                                                                                                                                                            Extends

                                                                                                                                                            -

                                                                                                                                                            -

                                                                                                                                                            - AuditBase -

                                                                                                                                                            - - - -
                                                                                                                                                            -

                                                                                                                                                            Index

                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                            -
                                                                                                                                                            Properties
                                                                                                                                                            -
                                                                                                                                                            - -
                                                                                                                                                            -
                                                                                                                                                            - - -
                                                                                                                                                            - -

                                                                                                                                                            - Properties -

                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                            - - - - profileImage - - - -
                                                                                                                                                            - profileImage: Image - -
                                                                                                                                                            - Type : Image - -
                                                                                                                                                            - Decorators : -
                                                                                                                                                            - - @OneToOne(undefined)
                                                                                                                                                            @JoinColumn()
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            - -
                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                            - - - - sex - - - -
                                                                                                                                                            - sex: Sex - -
                                                                                                                                                            - Type : Sex - -
                                                                                                                                                            - Decorators : -
                                                                                                                                                            - - @Column()
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            - -
                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                            - - - - Optional - createdAt - - - -
                                                                                                                                                            - createdAt: Date - -
                                                                                                                                                            - Type : Date - -
                                                                                                                                                            - Decorators : -
                                                                                                                                                            - - @CreateDateColumn()
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Inherited from AuditBase -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Defined in AuditBase:17
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                            - - - - createdBy - - - -
                                                                                                                                                            - createdBy: User - -
                                                                                                                                                            - Type : User - -
                                                                                                                                                            - Decorators : -
                                                                                                                                                            - - @ManyToOne(undefined, {onDelete: 'NO ACTION', onUpdate: 'CASCADE', nullable: undefined})
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Inherited from AuditBase -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Defined in AuditBase:29
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                            - - - - id - - - -
                                                                                                                                                            - id: number - -
                                                                                                                                                            - Type : number - -
                                                                                                                                                            - Decorators : -
                                                                                                                                                            - - @ApiModelProperty()
                                                                                                                                                            @PrimaryGeneratedColumn()
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Inherited from AuditBase -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Defined in AuditBase:13
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                            - - - - Optional - updatedAt - - - -
                                                                                                                                                            - updatedAt: Date - -
                                                                                                                                                            - Type : Date - -
                                                                                                                                                            - Decorators : -
                                                                                                                                                            - - @UpdateDateColumn()
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Inherited from AuditBase -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Defined in AuditBase:21
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                            - - - - updatedBy - - - -
                                                                                                                                                            - updatedBy: User - -
                                                                                                                                                            - Type : User - -
                                                                                                                                                            - Decorators : -
                                                                                                                                                            - - @ManyToOne(undefined, {onDelete: 'NO ACTION', onUpdate: 'CASCADE', nullable: undefined})
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Inherited from AuditBase -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Defined in AuditBase:37
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                            - - - - Optional - version - - - -
                                                                                                                                                            - version: number - -
                                                                                                                                                            - Type : number - -
                                                                                                                                                            - Decorators : -
                                                                                                                                                            - - @Exclude()
                                                                                                                                                            @VersionColumn()
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Inherited from AuditBase -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            Defined in AuditBase:41
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - -
                                                                                                                                                            - - -
                                                                                                                                                            -
                                                                                                                                                            import { Column, Entity, JoinColumn, OneToOne } from 'typeorm';
                                                                                                                                                            -import { AuditBase } from '../../core';
                                                                                                                                                            -import { Image } from './Image.entity';
                                                                                                                                                            -
                                                                                                                                                            -@Entity('profile')
                                                                                                                                                            -export class Profile extends AuditBase {
                                                                                                                                                            -  @OneToOne(type => Image)
                                                                                                                                                            -  @JoinColumn()
                                                                                                                                                            -  profileImage: Image;
                                                                                                                                                            -
                                                                                                                                                            -  @Column()
                                                                                                                                                            -  sex: Sex;
                                                                                                                                                            -}
                                                                                                                                                            -
                                                                                                                                                            -export enum Sex {
                                                                                                                                                            -  MALE,
                                                                                                                                                            -  FEMALE,
                                                                                                                                                            -  UNKNOW,
                                                                                                                                                            -}
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            -
                                                                                                                                                            - - - - - - - -
                                                                                                                                                            -
                                                                                                                                                            -

                                                                                                                                                            result-matching ""

                                                                                                                                                            -
                                                                                                                                                              -
                                                                                                                                                              -
                                                                                                                                                              -

                                                                                                                                                              No results matching ""

                                                                                                                                                              -
                                                                                                                                                              -
                                                                                                                                                              -
                                                                                                                                                              - -
                                                                                                                                                              -
                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ProfileLoaded.html b/docs/classes/ProfileLoaded.html deleted file mode 100644 index ab07a5ac0..000000000 --- a/docs/classes/ProfileLoaded.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                              -
                                                                                                                                                              - - -
                                                                                                                                                              -
                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                              -
                                                                                                                                                              -

                                                                                                                                                              -

                                                                                                                                                              File

                                                                                                                                                              -

                                                                                                                                                              -

                                                                                                                                                              - libs/auth/src/lib/auth.actions.ts -

                                                                                                                                                              - - - - - -
                                                                                                                                                              -

                                                                                                                                                              Index

                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                              -
                                                                                                                                                              Properties
                                                                                                                                                              -
                                                                                                                                                              -
                                                                                                                                                                -
                                                                                                                                                              • - Static - Readonly - type -
                                                                                                                                                              • -
                                                                                                                                                              -
                                                                                                                                                              -
                                                                                                                                                              - - -
                                                                                                                                                              - -

                                                                                                                                                              - Properties -

                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                              - - - - Static - Readonly - type - - - -
                                                                                                                                                              - type: string - -
                                                                                                                                                              - Type : string - -
                                                                                                                                                              - Default value : '[Auth] Profile Loaded' -
                                                                                                                                                              - -
                                                                                                                                                              -
                                                                                                                                                              - - - - - - - -
                                                                                                                                                              - - -
                                                                                                                                                              -
                                                                                                                                                              export enum AuthMode {
                                                                                                                                                              -  ImplicitFLow = 'ImplicitFLow',
                                                                                                                                                              -  PasswordFlow = 'ROPCFlow',
                                                                                                                                                              -  AuthorizationCodeFLow = 'AuthorizationCodeFLow',
                                                                                                                                                              -}
                                                                                                                                                              -
                                                                                                                                                              -//  Actions
                                                                                                                                                              -export class Login {
                                                                                                                                                              -  static readonly type = '[Auth] Login';
                                                                                                                                                              -  constructor(public readonly payload?: { infoMsg?: string }) {}
                                                                                                                                                              -}
                                                                                                                                                              -export class Logout {
                                                                                                                                                              -  static readonly type = '[Auth] Logout';
                                                                                                                                                              -}
                                                                                                                                                              -export class LoadProfile {
                                                                                                                                                              -  static readonly type = '[Auth] Load Profile';
                                                                                                                                                              -  constructor(public payload: any) {}
                                                                                                                                                              -}
                                                                                                                                                              -export class ChangeAuthMode {
                                                                                                                                                              -  static readonly type = '[Auth] Change Auth Mode';
                                                                                                                                                              -  constructor(public readonly payload: AuthMode) {}
                                                                                                                                                              -}
                                                                                                                                                              -
                                                                                                                                                              -// Mutation Actions
                                                                                                                                                              -export class LoginSuccess {
                                                                                                                                                              -  static readonly type = '[Auth] Login Success';
                                                                                                                                                              -  constructor(public readonly payload: any) {}
                                                                                                                                                              -}
                                                                                                                                                              -export class LoginCanceled {
                                                                                                                                                              -  static readonly type = '[Auth] Login Canceled';
                                                                                                                                                              -}
                                                                                                                                                              -export class LogoutSuccess {
                                                                                                                                                              -  static readonly type = '[Auth] Logout Success';
                                                                                                                                                              -}
                                                                                                                                                              -export class ProfileLoaded {
                                                                                                                                                              -  static readonly type = '[Auth] Profile Loaded';
                                                                                                                                                              -}
                                                                                                                                                              -export class AuthModeChanged {
                                                                                                                                                              -  static readonly type = '[Auth] Auth Mode Changed';
                                                                                                                                                              -  constructor(public readonly payload: AuthMode) {}
                                                                                                                                                              -}
                                                                                                                                                              -
                                                                                                                                                              -
                                                                                                                                                              -
                                                                                                                                                              - - - - - - - -
                                                                                                                                                              -
                                                                                                                                                              -

                                                                                                                                                              result-matching ""

                                                                                                                                                              -
                                                                                                                                                                -
                                                                                                                                                                -
                                                                                                                                                                -

                                                                                                                                                                No results matching ""

                                                                                                                                                                -
                                                                                                                                                                -
                                                                                                                                                                -
                                                                                                                                                                - -
                                                                                                                                                                -
                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/RealtimeUsersWidgetOptions.html b/docs/classes/RealtimeUsersWidgetOptions.html deleted file mode 100644 index ad1dfe2ed..000000000 --- a/docs/classes/RealtimeUsersWidgetOptions.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                -
                                                                                                                                                                - - -
                                                                                                                                                                -
                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                -
                                                                                                                                                                -

                                                                                                                                                                -

                                                                                                                                                                File

                                                                                                                                                                -

                                                                                                                                                                -

                                                                                                                                                                - libs/widgets/src/lib/components/realtime-users-widget/realtime-users-widget.interface.ts -

                                                                                                                                                                - - - - - -
                                                                                                                                                                -

                                                                                                                                                                Index

                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                -
                                                                                                                                                                Properties
                                                                                                                                                                -
                                                                                                                                                                - -
                                                                                                                                                                -
                                                                                                                                                                - - -
                                                                                                                                                                - -

                                                                                                                                                                - Properties -

                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                - - - - data - - - -
                                                                                                                                                                - data: literal type[] - -
                                                                                                                                                                - Type : literal type[] - -
                                                                                                                                                                - -
                                                                                                                                                                -
                                                                                                                                                                - - - - - - - -
                                                                                                                                                                - - -
                                                                                                                                                                -
                                                                                                                                                                export class RealtimeUsersWidgetOptions {
                                                                                                                                                                -  data: { page: string; views: string }[];
                                                                                                                                                                -}
                                                                                                                                                                -
                                                                                                                                                                -export interface RealtimeUsersWidgetPages {
                                                                                                                                                                -  id?: number;
                                                                                                                                                                -  page: string;
                                                                                                                                                                -  users: number;
                                                                                                                                                                -}
                                                                                                                                                                -export interface RealtimeUsersWidgetData {
                                                                                                                                                                -  id?: number;
                                                                                                                                                                -  label: string;
                                                                                                                                                                -  value: number;
                                                                                                                                                                -}
                                                                                                                                                                -
                                                                                                                                                                -
                                                                                                                                                                -
                                                                                                                                                                - - - - - - - -
                                                                                                                                                                -
                                                                                                                                                                -

                                                                                                                                                                result-matching ""

                                                                                                                                                                -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  -

                                                                                                                                                                  No results matching ""

                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  - -
                                                                                                                                                                  -
                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/RequestContext.html b/docs/classes/RequestContext.html deleted file mode 100644 index bdb8d0552..000000000 --- a/docs/classes/RequestContext.html +++ /dev/null @@ -1,672 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                  -
                                                                                                                                                                  - - -
                                                                                                                                                                  -
                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                  -
                                                                                                                                                                  -

                                                                                                                                                                  -

                                                                                                                                                                  File

                                                                                                                                                                  -

                                                                                                                                                                  -

                                                                                                                                                                  - apps/api/src/core/context/request-context.ts -

                                                                                                                                                                  - - - - - -
                                                                                                                                                                  -

                                                                                                                                                                  Index

                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  -
                                                                                                                                                                  Properties
                                                                                                                                                                  -
                                                                                                                                                                  - -
                                                                                                                                                                  -
                                                                                                                                                                  Methods
                                                                                                                                                                  -
                                                                                                                                                                  - -
                                                                                                                                                                  -
                                                                                                                                                                  - -
                                                                                                                                                                  -

                                                                                                                                                                  Constructor

                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                  -constructor(request: Request, response: Response) -
                                                                                                                                                                  - -
                                                                                                                                                                  -
                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                  request - Request - - No -
                                                                                                                                                                  response - Response - - No -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  - -
                                                                                                                                                                  - -

                                                                                                                                                                  - Properties -

                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  - - - - Public - Readonly - id - - - -
                                                                                                                                                                  - id: number - -
                                                                                                                                                                  - Type : number - -
                                                                                                                                                                  - -
                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  - - - - Public - request - - - -
                                                                                                                                                                  - request: Request - -
                                                                                                                                                                  - Type : Request - -
                                                                                                                                                                  - -
                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  - - - - Public - response - - - -
                                                                                                                                                                  - response: Response - -
                                                                                                                                                                  - Type : Response - -
                                                                                                                                                                  - -
                                                                                                                                                                  -
                                                                                                                                                                  - -
                                                                                                                                                                  - -

                                                                                                                                                                  - Methods -

                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  - - - - Static - currentRequest - - - -
                                                                                                                                                                  - - currentRequest() -
                                                                                                                                                                  - -
                                                                                                                                                                  - -
                                                                                                                                                                  - Returns : Request - -
                                                                                                                                                                  -
                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  - - - - Static - currentRequestContext - - - -
                                                                                                                                                                  - - currentRequestContext() -
                                                                                                                                                                  - -
                                                                                                                                                                  - -
                                                                                                                                                                  - Returns : RequestContext - -
                                                                                                                                                                  -
                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  - - - - Static - currentToken - - - -
                                                                                                                                                                  - - currentToken(throwError?: boolean) -
                                                                                                                                                                  - -
                                                                                                                                                                  - -
                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                  throwError - boolean - - Yes -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  - Returns : any - -
                                                                                                                                                                  -
                                                                                                                                                                  - -
                                                                                                                                                                  -
                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  - - - - Static - currentUser - - - -
                                                                                                                                                                  - - currentUser(throwError?: boolean) -
                                                                                                                                                                  - -
                                                                                                                                                                  - -
                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                  throwError - boolean - - Yes -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  - Returns : User - -
                                                                                                                                                                  -
                                                                                                                                                                  - -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  - - - - - - -
                                                                                                                                                                  - - -
                                                                                                                                                                  -
                                                                                                                                                                  import { HttpException, HttpStatus } from '@nestjs/common';
                                                                                                                                                                  -import * as cls from 'cls-hooked';
                                                                                                                                                                  -import uuid from 'uuid';
                                                                                                                                                                  -import { User } from '../../auth';
                                                                                                                                                                  -
                                                                                                                                                                  -export class RequestContext {
                                                                                                                                                                  -  public readonly id: number;
                                                                                                                                                                  -  public request: Request;
                                                                                                                                                                  -  public response: Response;
                                                                                                                                                                  -
                                                                                                                                                                  -  constructor(request: Request, response: Response) {
                                                                                                                                                                  -    this.id = Math.random();
                                                                                                                                                                  -    this.request = request;
                                                                                                                                                                  -    this.response = response;
                                                                                                                                                                  -  }
                                                                                                                                                                  -
                                                                                                                                                                  -  public static currentRequestContext(): RequestContext {
                                                                                                                                                                  -    const session = cls.getNamespace(RequestContext.name);
                                                                                                                                                                  -    if (session && session.active) {
                                                                                                                                                                  -      return session.get(RequestContext.name);
                                                                                                                                                                  -    }
                                                                                                                                                                  -
                                                                                                                                                                  -    return null;
                                                                                                                                                                  -  }
                                                                                                                                                                  -
                                                                                                                                                                  -  public static currentRequest(): Request {
                                                                                                                                                                  -    const requestContext = RequestContext.currentRequestContext();
                                                                                                                                                                  -
                                                                                                                                                                  -    if (requestContext) {
                                                                                                                                                                  -      return requestContext.request;
                                                                                                                                                                  -    }
                                                                                                                                                                  -
                                                                                                                                                                  -    return null;
                                                                                                                                                                  -  }
                                                                                                                                                                  -
                                                                                                                                                                  -  public static currentUser(throwError?: boolean): User {
                                                                                                                                                                  -    const requestContext = RequestContext.currentRequestContext();
                                                                                                                                                                  -
                                                                                                                                                                  -    if (requestContext) {
                                                                                                                                                                  -      // tslint:disable-next-line
                                                                                                                                                                  -      const user: any = requestContext.request['user'];
                                                                                                                                                                  -      if (user) {
                                                                                                                                                                  -        return user;
                                                                                                                                                                  -      }
                                                                                                                                                                  -    }
                                                                                                                                                                  -
                                                                                                                                                                  -    if (throwError) {
                                                                                                                                                                  -      throw new HttpException('Unauthorized', HttpStatus.UNAUTHORIZED);
                                                                                                                                                                  -    }
                                                                                                                                                                  -
                                                                                                                                                                  -    return null;
                                                                                                                                                                  -  }
                                                                                                                                                                  -
                                                                                                                                                                  -  public static currentToken(throwError?: boolean): any {
                                                                                                                                                                  -    const requestContext = RequestContext.currentRequestContext();
                                                                                                                                                                  -
                                                                                                                                                                  -    if (requestContext) {
                                                                                                                                                                  -      // tslint:disable-next-line
                                                                                                                                                                  -      return requestContext.request['token'];
                                                                                                                                                                  -    }
                                                                                                                                                                  -
                                                                                                                                                                  -    if (throwError) {
                                                                                                                                                                  -      throw new HttpException('Unauthorized', HttpStatus.UNAUTHORIZED);
                                                                                                                                                                  -    }
                                                                                                                                                                  -    return null;
                                                                                                                                                                  -  }
                                                                                                                                                                  -}
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  -
                                                                                                                                                                  - - - - - - - -
                                                                                                                                                                  -
                                                                                                                                                                  -

                                                                                                                                                                  result-matching ""

                                                                                                                                                                  -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -

                                                                                                                                                                    No results matching ""

                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    -
                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/RxSocketioSubject.html b/docs/classes/RxSocketioSubject.html deleted file mode 100644 index 9a196ce8a..000000000 --- a/docs/classes/RxSocketioSubject.html +++ /dev/null @@ -1,814 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                    -
                                                                                                                                                                    - - -
                                                                                                                                                                    -
                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                    -
                                                                                                                                                                    -

                                                                                                                                                                    -

                                                                                                                                                                    File

                                                                                                                                                                    -

                                                                                                                                                                    -

                                                                                                                                                                    - libs/socketio-plugin/src/lib/RxSocketioSubject.ts -

                                                                                                                                                                    - - -

                                                                                                                                                                    -

                                                                                                                                                                    Extends

                                                                                                                                                                    -

                                                                                                                                                                    -

                                                                                                                                                                    - AnonymousSubject -

                                                                                                                                                                    - - - -
                                                                                                                                                                    -

                                                                                                                                                                    Index

                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    -
                                                                                                                                                                    Properties
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    -
                                                                                                                                                                    Methods
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    -

                                                                                                                                                                    Constructor

                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                    -constructor(urlConfigOrSource: string | RxSocketioSubjectConfig | Observable, destination?: Observer) -
                                                                                                                                                                    - -
                                                                                                                                                                    -
                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                    urlConfigOrSource - string | RxSocketioSubjectConfig<T> | Observable<T> - - No -
                                                                                                                                                                    destination - Observer<T> - - Yes -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    - -

                                                                                                                                                                    - Properties -

                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    - - - - Private - _config - - - -
                                                                                                                                                                    - _config: RxSocketioSubjectConfig<T> - -
                                                                                                                                                                    - Type : RxSocketioSubjectConfig<T> - -
                                                                                                                                                                    - -
                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    - - - - Private - _output - - - -
                                                                                                                                                                    - _output: Subject<T> - -
                                                                                                                                                                    - Type : Subject<T> - -
                                                                                                                                                                    - -
                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    - - - - Private - _socket - - - -
                                                                                                                                                                    - _socket: SocketIOClient.Socket - -
                                                                                                                                                                    - Type : SocketIOClient.Socket - -
                                                                                                                                                                    - -
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    - -

                                                                                                                                                                    - Methods -

                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    - - - - _subscribe - - - -
                                                                                                                                                                    -_subscribe(subscriber: Subscriber) -
                                                                                                                                                                    - -
                                                                                                                                                                    - -
                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                    subscriber - Subscriber<T> - - No -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    - Returns : Subscription - -
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    -
                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    - - - - complete - - - -
                                                                                                                                                                    -complete() -
                                                                                                                                                                    - -
                                                                                                                                                                    - -
                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                    -
                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    - - - - error - - - -
                                                                                                                                                                    -error(err?) -
                                                                                                                                                                    - -
                                                                                                                                                                    - -
                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                    NameOptional
                                                                                                                                                                    err - Yes -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    -
                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    - - - - next - - - -
                                                                                                                                                                    -next(value?: T) -
                                                                                                                                                                    - -
                                                                                                                                                                    - -
                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                    value - T - - Yes -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                    -
                                                                                                                                                                    - -
                                                                                                                                                                    -
                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                    - - - - unsubscribe - - - -
                                                                                                                                                                    -unsubscribe() -
                                                                                                                                                                    - -
                                                                                                                                                                    - -
                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    - - - - - - -
                                                                                                                                                                    - - -
                                                                                                                                                                    -
                                                                                                                                                                    import { NextObserver, Observable, Observer, Subscriber, Subscription, Subject } from 'rxjs';
                                                                                                                                                                    -import { AnonymousSubject } from 'rxjs/internal/Subject';
                                                                                                                                                                    -import * as io from 'socket.io-client';
                                                                                                                                                                    -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                                                                                                                                    -
                                                                                                                                                                    -// TODO https://github.com/arjitkhullar/ocr/blob/master/src/app/socket.service.ts
                                                                                                                                                                    -
                                                                                                                                                                    -export interface RxSocketioSubjectConfig<T> {
                                                                                                                                                                    -  /** The url of the socket server to connect to */
                                                                                                                                                                    -  url: string;
                                                                                                                                                                    -  /** connect options for Socket.io */
                                                                                                                                                                    -  connectOpts?: ConnectOpts;
                                                                                                                                                                    -  /** auth token access callback function */
                                                                                                                                                                    -  tokenFn?: () => string;
                                                                                                                                                                    -  /** The protocol to use to connect */
                                                                                                                                                                    -  protocol?: string | Array<string>;
                                                                                                                                                                    -  /** @deprecated use {@link deserializer} */
                                                                                                                                                                    -  resultSelector?: (e: MessageEvent) => T;
                                                                                                                                                                    -  /**
                                                                                                                                                                    -   * A serializer used to create messages from passed values before the
                                                                                                                                                                    -   * messages are sent to the server. Defaults to JSON.stringify.
                                                                                                                                                                    -   */
                                                                                                                                                                    -  serializer?: (value: T) => WebSocketMessage;
                                                                                                                                                                    -  /**
                                                                                                                                                                    -   * A deserializer used for messages arriving on the socket from the
                                                                                                                                                                    -   * server. Defaults to JSON.parse.
                                                                                                                                                                    -   */
                                                                                                                                                                    -  deserializer?: (e: MessageEvent) => T;
                                                                                                                                                                    -  /**
                                                                                                                                                                    -   * An Observer that watches when open events occur on the underlying web socket.
                                                                                                                                                                    -   */
                                                                                                                                                                    -  openObserver?: NextObserver<Event>;
                                                                                                                                                                    -  /**
                                                                                                                                                                    -   * An Observer than watches when close events occur on the underlying webSocket
                                                                                                                                                                    -   */
                                                                                                                                                                    -  closeObserver?: NextObserver<CloseEvent>;
                                                                                                                                                                    -  /**
                                                                                                                                                                    -   * An Observer that watches when a close is about to occur due to
                                                                                                                                                                    -   * unsubscription.
                                                                                                                                                                    -   */
                                                                                                                                                                    -  closingObserver?: NextObserver<void>;
                                                                                                                                                                    -  /**
                                                                                                                                                                    -   * A WebSocket constructor to use. This is useful for situations like using a
                                                                                                                                                                    -   * WebSocket impl in Node (WebSocket is a DOM API), or for mocking a WebSocket
                                                                                                                                                                    -   * for testing purposes
                                                                                                                                                                    -   */
                                                                                                                                                                    -  WebSocketCtor?: { new (url: string, protocols?: string | string[]): WebSocket };
                                                                                                                                                                    -  /** Sets the `binaryType` property of the underlying WebSocket. */
                                                                                                                                                                    -  binaryType?: 'blob' | 'arraybuffer';
                                                                                                                                                                    -}
                                                                                                                                                                    -
                                                                                                                                                                    -const DEFAULT_WEBSOCKET_CONFIG: RxSocketioSubjectConfig<any> = {
                                                                                                                                                                    -  url: '',
                                                                                                                                                                    -  deserializer: (e: MessageEvent) => JSON.parse(e.data),
                                                                                                                                                                    -  serializer: (value: any) => JSON.stringify(value),
                                                                                                                                                                    -};
                                                                                                                                                                    -
                                                                                                                                                                    -export type WebSocketMessage = string | ArrayBuffer | Blob | ArrayBufferView;
                                                                                                                                                                    -
                                                                                                                                                                    -export class RxSocketioSubject<T> extends AnonymousSubject<T> {
                                                                                                                                                                    -  private _output: Subject<T>;
                                                                                                                                                                    -  private _config: RxSocketioSubjectConfig<T>;
                                                                                                                                                                    -  private _socket: SocketIOClient.Socket;
                                                                                                                                                                    -
                                                                                                                                                                    -  constructor(urlConfigOrSource: string | RxSocketioSubjectConfig<T> | Observable<T>, destination?: Observer<T>) {
                                                                                                                                                                    -    super();
                                                                                                                                                                    -
                                                                                                                                                                    -    const config = (this._config = { ...DEFAULT_WEBSOCKET_CONFIG });
                                                                                                                                                                    -
                                                                                                                                                                    -    if (typeof urlConfigOrSource === 'string') {
                                                                                                                                                                    -      config.url = urlConfigOrSource;
                                                                                                                                                                    -    } else {
                                                                                                                                                                    -      for (const key in urlConfigOrSource) {
                                                                                                                                                                    -        if (urlConfigOrSource.hasOwnProperty(key)) {
                                                                                                                                                                    -          config[key] = urlConfigOrSource[key];
                                                                                                                                                                    -        }
                                                                                                                                                                    -      }
                                                                                                                                                                    -    }
                                                                                                                                                                    -
                                                                                                                                                                    -    if (config.tokenFn && typeof config.tokenFn === 'function') {
                                                                                                                                                                    -      if (!config.connectOpts) {
                                                                                                                                                                    -        config.connectOpts = { query: {} };
                                                                                                                                                                    -      }
                                                                                                                                                                    -      (config.connectOpts.query as any).token = config.tokenFn();
                                                                                                                                                                    -    }
                                                                                                                                                                    -
                                                                                                                                                                    -    this._output = new Subject<T>();
                                                                                                                                                                    -
                                                                                                                                                                    -    this._socket = config.connectOpts ? io(config.url, config.connectOpts) : io(config.url);
                                                                                                                                                                    -
                                                                                                                                                                    -    this._socket.on('connect', event => config.openObserver.next(event));
                                                                                                                                                                    -
                                                                                                                                                                    -    this._socket.on('disconnect', event => config.closeObserver.next(event));
                                                                                                                                                                    -
                                                                                                                                                                    -    this._socket.on('actions', data => this._output.next(data));
                                                                                                                                                                    -
                                                                                                                                                                    -    this._socket.on('reconnect_attempt', () => {
                                                                                                                                                                    -      if (config.tokenFn && typeof config.tokenFn === 'function') {
                                                                                                                                                                    -        (this._socket.io.opts.query as any).token = config.tokenFn();
                                                                                                                                                                    -      }
                                                                                                                                                                    -    });
                                                                                                                                                                    -
                                                                                                                                                                    -    this.destination = Subscriber.create(
                                                                                                                                                                    -      (message: T) => {
                                                                                                                                                                    -        this._socket.emit((message as any).event, (message as any).data);
                                                                                                                                                                    -      },
                                                                                                                                                                    -      error => {
                                                                                                                                                                    -        this._socket.close();
                                                                                                                                                                    -        const errorEvent = new ErrorEvent('', {
                                                                                                                                                                    -          message: 'Error in data stream.',
                                                                                                                                                                    -          error: error,
                                                                                                                                                                    -        });
                                                                                                                                                                    -        super.error.call(this, errorEvent);
                                                                                                                                                                    -      },
                                                                                                                                                                    -      () => {
                                                                                                                                                                    -        this._socket.close();
                                                                                                                                                                    -        const closeEvent = new CloseEvent('cloased', {
                                                                                                                                                                    -          code: 1000,
                                                                                                                                                                    -          reason: 'Connection closed by client.',
                                                                                                                                                                    -          wasClean: true,
                                                                                                                                                                    -        });
                                                                                                                                                                    -        config.closeObserver.next(closeEvent);
                                                                                                                                                                    -      },
                                                                                                                                                                    -    );
                                                                                                                                                                    -  }
                                                                                                                                                                    -
                                                                                                                                                                    -  next(value?: T) {
                                                                                                                                                                    -    this.destination.next.call(this.destination, value);
                                                                                                                                                                    -  }
                                                                                                                                                                    -
                                                                                                                                                                    -  error(err?) {
                                                                                                                                                                    -    this.destination.error.call(this.destination, err);
                                                                                                                                                                    -  }
                                                                                                                                                                    -
                                                                                                                                                                    -  complete() {
                                                                                                                                                                    -    this.destination.complete.call(this.destination);
                                                                                                                                                                    -  }
                                                                                                                                                                    -
                                                                                                                                                                    -  _subscribe(subscriber: Subscriber<T>): Subscription {
                                                                                                                                                                    -    const subscription = new Subscription();
                                                                                                                                                                    -    subscription.add(this._output.subscribe(subscriber));
                                                                                                                                                                    -    return subscription;
                                                                                                                                                                    -  }
                                                                                                                                                                    -
                                                                                                                                                                    -  unsubscribe() {
                                                                                                                                                                    -    // tslint:disable
                                                                                                                                                                    -    super.unsubscribe();
                                                                                                                                                                    -  }
                                                                                                                                                                    -}
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    -
                                                                                                                                                                    - - - - - - - -
                                                                                                                                                                    -
                                                                                                                                                                    -

                                                                                                                                                                    result-matching ""

                                                                                                                                                                    -
                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                      -

                                                                                                                                                                      No results matching ""

                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                      - -
                                                                                                                                                                      -
                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/SaveConversation.html b/docs/classes/SaveConversation.html deleted file mode 100644 index 75c83c56d..000000000 --- a/docs/classes/SaveConversation.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                      -
                                                                                                                                                                      - - -
                                                                                                                                                                      -
                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                      -
                                                                                                                                                                      -

                                                                                                                                                                      -

                                                                                                                                                                      File

                                                                                                                                                                      -

                                                                                                                                                                      -

                                                                                                                                                                      - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                                                                                                                                      - - - - - -
                                                                                                                                                                      -

                                                                                                                                                                      Index

                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                      -
                                                                                                                                                                      Properties
                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                        -
                                                                                                                                                                      • - Public - Readonly - payload -
                                                                                                                                                                      • -
                                                                                                                                                                      • - Static - Readonly - type -
                                                                                                                                                                      • -
                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                      - -
                                                                                                                                                                      -

                                                                                                                                                                      Constructor

                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                      -constructor(payload: literal type) -
                                                                                                                                                                      - -
                                                                                                                                                                      -
                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                      payload - literal type - - No -
                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                      - -
                                                                                                                                                                      - -

                                                                                                                                                                      - Properties -

                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                      - - - - Public - Readonly - payload - - - -
                                                                                                                                                                      - payload: literal type - -
                                                                                                                                                                      - Type : literal type - -
                                                                                                                                                                      - -
                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                      - - - - Static - Readonly - type - - - -
                                                                                                                                                                      - type: string - -
                                                                                                                                                                      - Type : string - -
                                                                                                                                                                      - Default value : '[ChatBox] SaveConversation' -
                                                                                                                                                                      - -
                                                                                                                                                                      -
                                                                                                                                                                      - - - - - - - -
                                                                                                                                                                      - - -
                                                                                                                                                                      -
                                                                                                                                                                      import { ChatMessage, Subject } from '../chat-message.model';
                                                                                                                                                                      -
                                                                                                                                                                      -export interface SynthesisVoice {
                                                                                                                                                                      -  voice: SpeechSynthesisVoice;
                                                                                                                                                                      -  volume: number;
                                                                                                                                                                      -  rate: number;
                                                                                                                                                                      -  pitch: number;
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -// Actions
                                                                                                                                                                      -export class FetchConversations {
                                                                                                                                                                      -  static readonly type = '[ChatBox] FetchConversations';
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -export class CreateNewConversation {
                                                                                                                                                                      -  static readonly type = '[ChatBox] CreateNewConversation';
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -export class SwitchConversation {
                                                                                                                                                                      -  static readonly type = '[ChatBox] SwitchConversation';
                                                                                                                                                                      -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -export class SaveConversation {
                                                                                                                                                                      -  static readonly type = '[ChatBox] SaveConversation';
                                                                                                                                                                      -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -export class CloseConversation {
                                                                                                                                                                      -  static readonly type = '[ChatBox] CloseConversation';
                                                                                                                                                                      -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -export class AddMessage {
                                                                                                                                                                      -  static readonly type = '[ChatBox] AddMessage';
                                                                                                                                                                      -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -export class StartVoiceCommand {
                                                                                                                                                                      -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                                                                                                                                      -}
                                                                                                                                                                      -export class SendMessage {
                                                                                                                                                                      -  static readonly type = '[ChatBox] SendMessage';
                                                                                                                                                                      -  constructor(public readonly payload: { message: string }) {}
                                                                                                                                                                      -}
                                                                                                                                                                      -export class SendTyping {
                                                                                                                                                                      -  static readonly type = '[ChatBox] Typing';
                                                                                                                                                                      -  constructor(public readonly payload: Subject) {}
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -export class MarkAsRead {
                                                                                                                                                                      -  static readonly type = '[ChatBox] MarkAsRead';
                                                                                                                                                                      -}
                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                      -
                                                                                                                                                                      - - - - - - - -
                                                                                                                                                                      -
                                                                                                                                                                      -

                                                                                                                                                                      result-matching ""

                                                                                                                                                                      -
                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                        -

                                                                                                                                                                        No results matching ""

                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                        - -
                                                                                                                                                                        -
                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/SendMessage.html b/docs/classes/SendMessage.html deleted file mode 100644 index d84e05259..000000000 --- a/docs/classes/SendMessage.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                        -
                                                                                                                                                                        - - -
                                                                                                                                                                        -
                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                        -
                                                                                                                                                                        -

                                                                                                                                                                        -

                                                                                                                                                                        File

                                                                                                                                                                        -

                                                                                                                                                                        -

                                                                                                                                                                        - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                                                                                                                                        - - - - - -
                                                                                                                                                                        -

                                                                                                                                                                        Index

                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                        -
                                                                                                                                                                        Properties
                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                          -
                                                                                                                                                                        • - Public - Readonly - payload -
                                                                                                                                                                        • -
                                                                                                                                                                        • - Static - Readonly - type -
                                                                                                                                                                        • -
                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                        - -
                                                                                                                                                                        -

                                                                                                                                                                        Constructor

                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                        -constructor(payload: literal type) -
                                                                                                                                                                        - -
                                                                                                                                                                        -
                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                        payload - literal type - - No -
                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                        - -
                                                                                                                                                                        - -

                                                                                                                                                                        - Properties -

                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                        - - - - Public - Readonly - payload - - - -
                                                                                                                                                                        - payload: literal type - -
                                                                                                                                                                        - Type : literal type - -
                                                                                                                                                                        - -
                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                        - - - - Static - Readonly - type - - - -
                                                                                                                                                                        - type: string - -
                                                                                                                                                                        - Type : string - -
                                                                                                                                                                        - Default value : '[ChatBox] SendMessage' -
                                                                                                                                                                        - -
                                                                                                                                                                        -
                                                                                                                                                                        - - - - - - - -
                                                                                                                                                                        - - -
                                                                                                                                                                        -
                                                                                                                                                                        import { ChatMessage, Subject } from '../chat-message.model';
                                                                                                                                                                        -
                                                                                                                                                                        -export interface SynthesisVoice {
                                                                                                                                                                        -  voice: SpeechSynthesisVoice;
                                                                                                                                                                        -  volume: number;
                                                                                                                                                                        -  rate: number;
                                                                                                                                                                        -  pitch: number;
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -// Actions
                                                                                                                                                                        -export class FetchConversations {
                                                                                                                                                                        -  static readonly type = '[ChatBox] FetchConversations';
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -export class CreateNewConversation {
                                                                                                                                                                        -  static readonly type = '[ChatBox] CreateNewConversation';
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -export class SwitchConversation {
                                                                                                                                                                        -  static readonly type = '[ChatBox] SwitchConversation';
                                                                                                                                                                        -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -export class SaveConversation {
                                                                                                                                                                        -  static readonly type = '[ChatBox] SaveConversation';
                                                                                                                                                                        -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -export class CloseConversation {
                                                                                                                                                                        -  static readonly type = '[ChatBox] CloseConversation';
                                                                                                                                                                        -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -export class AddMessage {
                                                                                                                                                                        -  static readonly type = '[ChatBox] AddMessage';
                                                                                                                                                                        -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -export class StartVoiceCommand {
                                                                                                                                                                        -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                                                                                                                                        -}
                                                                                                                                                                        -export class SendMessage {
                                                                                                                                                                        -  static readonly type = '[ChatBox] SendMessage';
                                                                                                                                                                        -  constructor(public readonly payload: { message: string }) {}
                                                                                                                                                                        -}
                                                                                                                                                                        -export class SendTyping {
                                                                                                                                                                        -  static readonly type = '[ChatBox] Typing';
                                                                                                                                                                        -  constructor(public readonly payload: Subject) {}
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -export class MarkAsRead {
                                                                                                                                                                        -  static readonly type = '[ChatBox] MarkAsRead';
                                                                                                                                                                        -}
                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                        -
                                                                                                                                                                        - - - - - - - -
                                                                                                                                                                        -
                                                                                                                                                                        -

                                                                                                                                                                        result-matching ""

                                                                                                                                                                        -
                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                          -

                                                                                                                                                                          No results matching ""

                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                          - -
                                                                                                                                                                          -
                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/SendTyping.html b/docs/classes/SendTyping.html deleted file mode 100644 index da482bab8..000000000 --- a/docs/classes/SendTyping.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                          -
                                                                                                                                                                          - - -
                                                                                                                                                                          -
                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                          -
                                                                                                                                                                          -

                                                                                                                                                                          -

                                                                                                                                                                          File

                                                                                                                                                                          -

                                                                                                                                                                          -

                                                                                                                                                                          - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                                                                                                                                          - - - - - -
                                                                                                                                                                          -

                                                                                                                                                                          Index

                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                          -
                                                                                                                                                                          Properties
                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                            -
                                                                                                                                                                          • - Public - Readonly - payload -
                                                                                                                                                                          • -
                                                                                                                                                                          • - Static - Readonly - type -
                                                                                                                                                                          • -
                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                          - -
                                                                                                                                                                          -

                                                                                                                                                                          Constructor

                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                          -constructor(payload: Subject) -
                                                                                                                                                                          - -
                                                                                                                                                                          -
                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                          payload - Subject - - No -
                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                          - -
                                                                                                                                                                          - -

                                                                                                                                                                          - Properties -

                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                          - - - - Public - Readonly - payload - - - -
                                                                                                                                                                          - payload: Subject - -
                                                                                                                                                                          - Type : Subject - -
                                                                                                                                                                          - -
                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                          - - - - Static - Readonly - type - - - -
                                                                                                                                                                          - type: string - -
                                                                                                                                                                          - Type : string - -
                                                                                                                                                                          - Default value : '[ChatBox] Typing' -
                                                                                                                                                                          - -
                                                                                                                                                                          -
                                                                                                                                                                          - - - - - - - -
                                                                                                                                                                          - - -
                                                                                                                                                                          -
                                                                                                                                                                          import { ChatMessage, Subject } from '../chat-message.model';
                                                                                                                                                                          -
                                                                                                                                                                          -export interface SynthesisVoice {
                                                                                                                                                                          -  voice: SpeechSynthesisVoice;
                                                                                                                                                                          -  volume: number;
                                                                                                                                                                          -  rate: number;
                                                                                                                                                                          -  pitch: number;
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -// Actions
                                                                                                                                                                          -export class FetchConversations {
                                                                                                                                                                          -  static readonly type = '[ChatBox] FetchConversations';
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -export class CreateNewConversation {
                                                                                                                                                                          -  static readonly type = '[ChatBox] CreateNewConversation';
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -export class SwitchConversation {
                                                                                                                                                                          -  static readonly type = '[ChatBox] SwitchConversation';
                                                                                                                                                                          -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -export class SaveConversation {
                                                                                                                                                                          -  static readonly type = '[ChatBox] SaveConversation';
                                                                                                                                                                          -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -export class CloseConversation {
                                                                                                                                                                          -  static readonly type = '[ChatBox] CloseConversation';
                                                                                                                                                                          -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -export class AddMessage {
                                                                                                                                                                          -  static readonly type = '[ChatBox] AddMessage';
                                                                                                                                                                          -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -export class StartVoiceCommand {
                                                                                                                                                                          -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                                                                                                                                          -}
                                                                                                                                                                          -export class SendMessage {
                                                                                                                                                                          -  static readonly type = '[ChatBox] SendMessage';
                                                                                                                                                                          -  constructor(public readonly payload: { message: string }) {}
                                                                                                                                                                          -}
                                                                                                                                                                          -export class SendTyping {
                                                                                                                                                                          -  static readonly type = '[ChatBox] Typing';
                                                                                                                                                                          -  constructor(public readonly payload: Subject) {}
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -export class MarkAsRead {
                                                                                                                                                                          -  static readonly type = '[ChatBox] MarkAsRead';
                                                                                                                                                                          -}
                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                          -
                                                                                                                                                                          - - - - - - - -
                                                                                                                                                                          -
                                                                                                                                                                          -

                                                                                                                                                                          result-matching ""

                                                                                                                                                                          -
                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                            -

                                                                                                                                                                            No results matching ""

                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                            - -
                                                                                                                                                                            -
                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/SendWebSocketAction.html b/docs/classes/SendWebSocketAction.html deleted file mode 100644 index cf6df22a4..000000000 --- a/docs/classes/SendWebSocketAction.html +++ /dev/null @@ -1,402 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                            -
                                                                                                                                                                            - - -
                                                                                                                                                                            -
                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                            -
                                                                                                                                                                            -

                                                                                                                                                                            -

                                                                                                                                                                            File

                                                                                                                                                                            -

                                                                                                                                                                            -

                                                                                                                                                                            - libs/socketio-plugin/src/lib/symbols.ts -

                                                                                                                                                                            - -

                                                                                                                                                                            -

                                                                                                                                                                            Description

                                                                                                                                                                            -

                                                                                                                                                                            -

                                                                                                                                                                            -

                                                                                                                                                                            Action to send to the server.

                                                                                                                                                                            - -

                                                                                                                                                                            - - - - -
                                                                                                                                                                            -

                                                                                                                                                                            Index

                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                            -
                                                                                                                                                                            Properties
                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                              -
                                                                                                                                                                            • - Public - payload -
                                                                                                                                                                            • -
                                                                                                                                                                            • - Static - Readonly - type -
                                                                                                                                                                            • -
                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                            - -
                                                                                                                                                                            -

                                                                                                                                                                            Constructor

                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                            -constructor(payload: any) -
                                                                                                                                                                            - -
                                                                                                                                                                            -
                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                            payload - any - - No -
                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                            - -
                                                                                                                                                                            - -

                                                                                                                                                                            - Properties -

                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                            - - - - Public - payload - - - -
                                                                                                                                                                            - payload: any - -
                                                                                                                                                                            - Type : any - -
                                                                                                                                                                            - -
                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                            - - - - Static - Readonly - type - - - -
                                                                                                                                                                            - type: string - -
                                                                                                                                                                            - Type : string - -
                                                                                                                                                                            - Default value : '[Websocket] Send Action' -
                                                                                                                                                                            - -
                                                                                                                                                                            -
                                                                                                                                                                            - - - - - - - -
                                                                                                                                                                            - - -
                                                                                                                                                                            -
                                                                                                                                                                            import { InjectionToken } from '@angular/core';
                                                                                                                                                                            -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                                                                                                                                            -
                                                                                                                                                                            -export const NGXS_WEBSOCKET_OPTIONS = new InjectionToken('NGXS_WEBSOCKET_OPTIONS');
                                                                                                                                                                            -
                                                                                                                                                                            -export interface NgxsWebsocketPluginOptions {
                                                                                                                                                                            -  /**
                                                                                                                                                                            -   * URL of the websocket.
                                                                                                                                                                            -   */
                                                                                                                                                                            -  url?: string;
                                                                                                                                                                            -
                                                                                                                                                                            -  connectOpts?: ConnectOpts;
                                                                                                                                                                            -
                                                                                                                                                                            -  tokenFn?: () => string;
                                                                                                                                                                            -
                                                                                                                                                                            -  /**
                                                                                                                                                                            -   * The property name to distigunish this type for the store.
                                                                                                                                                                            -   * Default: 'type'
                                                                                                                                                                            -   */
                                                                                                                                                                            -  typeKey?: string;
                                                                                                                                                                            -
                                                                                                                                                                            -  /**
                                                                                                                                                                            -   * Interval to try and reconnect.
                                                                                                                                                                            -   * Default: 5000
                                                                                                                                                                            -   */
                                                                                                                                                                            -  reconnectInterval?: number;
                                                                                                                                                                            -
                                                                                                                                                                            -  /**
                                                                                                                                                                            -   * Number of reconnect attemps.
                                                                                                                                                                            -   * Default: 10
                                                                                                                                                                            -   */
                                                                                                                                                                            -  reconnectAttempts?: number;
                                                                                                                                                                            -
                                                                                                                                                                            -  /**
                                                                                                                                                                            -   * Serializer to call before sending messages
                                                                                                                                                                            -   * Default: `json.stringify`
                                                                                                                                                                            -   */
                                                                                                                                                                            -  serializer?: (data: any) => string;
                                                                                                                                                                            -
                                                                                                                                                                            -  /**
                                                                                                                                                                            -   * Deseralizer before publishing the message.
                                                                                                                                                                            -   */
                                                                                                                                                                            -  deserializer?: (e: MessageEvent) => any;
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -export function noop(arg) {
                                                                                                                                                                            -  return function() {};
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -/**
                                                                                                                                                                            - * Action to connect to the websocket. Optionally pass a URL.
                                                                                                                                                                            - */
                                                                                                                                                                            -export class ConnectWebSocket {
                                                                                                                                                                            -  static readonly type = '[Websocket] Connect';
                                                                                                                                                                            -  constructor(public payload?: NgxsWebsocketPluginOptions) {}
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -/**
                                                                                                                                                                            - * Action triggered when a error ocurrs
                                                                                                                                                                            - */
                                                                                                                                                                            -export class WebsocketMessageError {
                                                                                                                                                                            -  static readonly type = '[Websocket] Message Error';
                                                                                                                                                                            -  constructor(public payload: any) {}
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -/**
                                                                                                                                                                            - * Action to disconnect the websocket.
                                                                                                                                                                            - */
                                                                                                                                                                            -export class DisconnectWebSocket {
                                                                                                                                                                            -  static readonly type = '[Websocket] Disconnect';
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -/**
                                                                                                                                                                            - * Action to send to the server.
                                                                                                                                                                            - */
                                                                                                                                                                            -export class SendWebSocketAction {
                                                                                                                                                                            -  static readonly type = '[Websocket] Send Action';
                                                                                                                                                                            -  constructor(public payload: any) {}
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -export class WebSocketConnected {
                                                                                                                                                                            -  static readonly type = '[Websocket] Connected';
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -export class WebSocketDisconnected {
                                                                                                                                                                            -  static readonly type = '[Websocket] Disconnected';
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -export class AuthenticateWebSocket {
                                                                                                                                                                            -  static readonly type = '[Websocket] authenticate';
                                                                                                                                                                            -}
                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                            -
                                                                                                                                                                            - - - - - - - -
                                                                                                                                                                            -
                                                                                                                                                                            -

                                                                                                                                                                            result-matching ""

                                                                                                                                                                            -
                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                              -

                                                                                                                                                                              No results matching ""

                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                              - -
                                                                                                                                                                              -
                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/SetIconMode.html b/docs/classes/SetIconMode.html deleted file mode 100644 index cd308c4d8..000000000 --- a/docs/classes/SetIconMode.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                              -
                                                                                                                                                                              - - -
                                                                                                                                                                              -
                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                              -
                                                                                                                                                                              -

                                                                                                                                                                              -

                                                                                                                                                                              File

                                                                                                                                                                              -

                                                                                                                                                                              -

                                                                                                                                                                              - libs/navigator/src/lib/state/menu.state.ts -

                                                                                                                                                                              - - - - - -
                                                                                                                                                                              -

                                                                                                                                                                              Index

                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                              -
                                                                                                                                                                              Properties
                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                                -
                                                                                                                                                                              • - Public - Readonly - payload -
                                                                                                                                                                              • -
                                                                                                                                                                              • - Static - Readonly - type -
                                                                                                                                                                              • -
                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                              - -
                                                                                                                                                                              -

                                                                                                                                                                              Constructor

                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                              -constructor(payload: boolean) -
                                                                                                                                                                              - -
                                                                                                                                                                              -
                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                              payload - boolean - - No -
                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                              - -
                                                                                                                                                                              - -

                                                                                                                                                                              - Properties -

                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                              - - - - Public - Readonly - payload - - - -
                                                                                                                                                                              - payload: boolean - -
                                                                                                                                                                              - Type : boolean - -
                                                                                                                                                                              - -
                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                              - - - - Static - Readonly - type - - - -
                                                                                                                                                                              - type: string - -
                                                                                                                                                                              - Type : string - -
                                                                                                                                                                              - Default value : '[Menu] SetIconMode' -
                                                                                                                                                                              - -
                                                                                                                                                                              -
                                                                                                                                                                              - - - - - - - -
                                                                                                                                                                              - - -
                                                                                                                                                                              -
                                                                                                                                                                              import { Action, NgxsOnInit, Selector, State, StateContext, Store } from '@ngxs/store';
                                                                                                                                                                              -import { MenuItem } from '../models/menu-item.model';
                                                                                                                                                                              -import { MenuService } from '../services/menu.service';
                                                                                                                                                                              -import { Tree } from '@ngx-starter-kit/tree';
                                                                                                                                                                              -
                                                                                                                                                                              -export class NextCurrentlyOpened {
                                                                                                                                                                              -  static readonly type = '[Menu] Next Currently Opened';
                                                                                                                                                                              -  constructor(public readonly payload: MenuItem[]) {}
                                                                                                                                                                              -}
                                                                                                                                                                              -
                                                                                                                                                                              -export class SetIconMode {
                                                                                                                                                                              -  static readonly type = '[Menu] SetIconMode';
                                                                                                                                                                              -  constructor(public readonly payload: boolean) {}
                                                                                                                                                                              -}
                                                                                                                                                                              -
                                                                                                                                                                              -export class ToggleCurrentlyOpened {
                                                                                                                                                                              -  static readonly type = '[Menu] ToggleCurrentlyOpened';
                                                                                                                                                                              -  constructor(public readonly payload: MenuItem) {}
                                                                                                                                                                              -}
                                                                                                                                                                              -
                                                                                                                                                                              -export class ToggleCurrentlyOpenedByRoute {
                                                                                                                                                                              -  static readonly type = '[Menu] ToggleCurrentlyOpenedByRoute';
                                                                                                                                                                              -  constructor(public readonly payload: string) {}
                                                                                                                                                                              -}
                                                                                                                                                                              -
                                                                                                                                                                              -export interface MenuStateModel {
                                                                                                                                                                              -  tree: Tree<MenuItem>;
                                                                                                                                                                              -  currentlyOpened: MenuItem[];
                                                                                                                                                                              -  iconMode: boolean;
                                                                                                                                                                              -}
                                                                                                                                                                              -
                                                                                                                                                                              -@State<MenuStateModel>({
                                                                                                                                                                              -  name: 'menu',
                                                                                                                                                                              -  defaults: {
                                                                                                                                                                              -    tree: null,
                                                                                                                                                                              -    currentlyOpened: [],
                                                                                                                                                                              -    iconMode: false,
                                                                                                                                                                              -  },
                                                                                                                                                                              -})
                                                                                                                                                                              -export class MenuState implements NgxsOnInit {
                                                                                                                                                                              -  constructor(private menuService: MenuService) {}
                                                                                                                                                                              -
                                                                                                                                                                              -  @Selector()
                                                                                                                                                                              -  static menuItems(state: MenuStateModel) {
                                                                                                                                                                              -    return state.tree.root.children;
                                                                                                                                                                              -  }
                                                                                                                                                                              -
                                                                                                                                                                              -  @Selector()
                                                                                                                                                                              -  static currentlyOpened(state: MenuStateModel) {
                                                                                                                                                                              -    if (state.iconMode) {
                                                                                                                                                                              -      return [];
                                                                                                                                                                              -    } else {
                                                                                                                                                                              -      return state.currentlyOpened;
                                                                                                                                                                              -    }
                                                                                                                                                                              -  }
                                                                                                                                                                              -
                                                                                                                                                                              -  ngxsOnInit({ setState, getState }: StateContext<MenuStateModel>) {
                                                                                                                                                                              -    setState({
                                                                                                                                                                              -      tree: this.menuService.tree,
                                                                                                                                                                              -      currentlyOpened: [],
                                                                                                                                                                              -      iconMode: false,
                                                                                                                                                                              -    });
                                                                                                                                                                              -  }
                                                                                                                                                                              -
                                                                                                                                                                              -  private getParents(tree, item: MenuItem): MenuItem[] {
                                                                                                                                                                              -    const ancestors = tree.getAllParents(item);
                                                                                                                                                                              -    ancestors.shift();
                                                                                                                                                                              -    return ancestors;
                                                                                                                                                                              -  }
                                                                                                                                                                              -
                                                                                                                                                                              -  @Action(SetIconMode)
                                                                                                                                                                              -  setIconMode({ getState, patchState }: StateContext<MenuStateModel>, { payload }: SetIconMode) {
                                                                                                                                                                              -    patchState({
                                                                                                                                                                              -      iconMode: payload,
                                                                                                                                                                              -    });
                                                                                                                                                                              -  }
                                                                                                                                                                              -
                                                                                                                                                                              -  @Action(NextCurrentlyOpened)
                                                                                                                                                                              -  nextCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: NextCurrentlyOpened) {
                                                                                                                                                                              -    patchState({
                                                                                                                                                                              -      currentlyOpened: payload,
                                                                                                                                                                              -    });
                                                                                                                                                                              -  }
                                                                                                                                                                              -
                                                                                                                                                                              -  @Action(ToggleCurrentlyOpened)
                                                                                                                                                                              -  toggleCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: ToggleCurrentlyOpened) {
                                                                                                                                                                              -    // tslint:disable:prefer-const
                                                                                                                                                                              -    let { tree, currentlyOpened } = getState();
                                                                                                                                                                              -    const isOpen = currentlyOpened.indexOf(payload) !== -1;
                                                                                                                                                                              -
                                                                                                                                                                              -    if (isOpen) {
                                                                                                                                                                              -      if (currentlyOpened.length > 1) {
                                                                                                                                                                              -        currentlyOpened.length = currentlyOpened.indexOf(payload);
                                                                                                                                                                              -      } else {
                                                                                                                                                                              -        currentlyOpened = [];
                                                                                                                                                                              -      }
                                                                                                                                                                              -    } else {
                                                                                                                                                                              -      currentlyOpened = this.getParents(tree, payload);
                                                                                                                                                                              -    }
                                                                                                                                                                              -
                                                                                                                                                                              -    patchState({
                                                                                                                                                                              -      currentlyOpened: currentlyOpened,
                                                                                                                                                                              -    });
                                                                                                                                                                              -  }
                                                                                                                                                                              -
                                                                                                                                                                              -  @Action(ToggleCurrentlyOpenedByRoute)
                                                                                                                                                                              -  toggleCurrentlyOpenedByRoute(
                                                                                                                                                                              -    { getState, patchState }: StateContext<MenuStateModel>,
                                                                                                                                                                              -    { payload }: ToggleCurrentlyOpenedByRoute,
                                                                                                                                                                              -  ) {
                                                                                                                                                                              -    const { tree } = getState();
                                                                                                                                                                              -    let currentlyOpened: MenuItem[] = [];
                                                                                                                                                                              -
                                                                                                                                                                              -    const item = tree.findByPredicateBFS(node => {
                                                                                                                                                                              -      return node.link === payload;
                                                                                                                                                                              -    });
                                                                                                                                                                              -
                                                                                                                                                                              -    if (item && item.parent) {
                                                                                                                                                                              -      currentlyOpened = this.getParents(tree, item);
                                                                                                                                                                              -    } else if (item) {
                                                                                                                                                                              -      currentlyOpened = [item];
                                                                                                                                                                              -    }
                                                                                                                                                                              -
                                                                                                                                                                              -    patchState({
                                                                                                                                                                              -      currentlyOpened: currentlyOpened,
                                                                                                                                                                              -    });
                                                                                                                                                                              -  }
                                                                                                                                                                              -}
                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                              -
                                                                                                                                                                              - - - - - - - -
                                                                                                                                                                              -
                                                                                                                                                                              -

                                                                                                                                                                              result-matching ""

                                                                                                                                                                              -
                                                                                                                                                                                -
                                                                                                                                                                                -
                                                                                                                                                                                -

                                                                                                                                                                                No results matching ""

                                                                                                                                                                                -
                                                                                                                                                                                -
                                                                                                                                                                                -
                                                                                                                                                                                - -
                                                                                                                                                                                -
                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/StartVoiceCommand.html b/docs/classes/StartVoiceCommand.html deleted file mode 100644 index edc60314c..000000000 --- a/docs/classes/StartVoiceCommand.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                -
                                                                                                                                                                                - - -
                                                                                                                                                                                -
                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                -
                                                                                                                                                                                -

                                                                                                                                                                                -

                                                                                                                                                                                File

                                                                                                                                                                                -

                                                                                                                                                                                -

                                                                                                                                                                                - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                                                                                                                                                - - - - - -
                                                                                                                                                                                -

                                                                                                                                                                                Index

                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                -
                                                                                                                                                                                Properties
                                                                                                                                                                                -
                                                                                                                                                                                -
                                                                                                                                                                                  -
                                                                                                                                                                                • - Static - Readonly - type -
                                                                                                                                                                                • -
                                                                                                                                                                                -
                                                                                                                                                                                -
                                                                                                                                                                                - - -
                                                                                                                                                                                - -

                                                                                                                                                                                - Properties -

                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                - - - - Static - Readonly - type - - - -
                                                                                                                                                                                - type: string - -
                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                - Default value : '[ChatBox] StartVoiceCommand' -
                                                                                                                                                                                - -
                                                                                                                                                                                -
                                                                                                                                                                                - - - - - - - -
                                                                                                                                                                                - - -
                                                                                                                                                                                -
                                                                                                                                                                                import { ChatMessage, Subject } from '../chat-message.model';
                                                                                                                                                                                -
                                                                                                                                                                                -export interface SynthesisVoice {
                                                                                                                                                                                -  voice: SpeechSynthesisVoice;
                                                                                                                                                                                -  volume: number;
                                                                                                                                                                                -  rate: number;
                                                                                                                                                                                -  pitch: number;
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -// Actions
                                                                                                                                                                                -export class FetchConversations {
                                                                                                                                                                                -  static readonly type = '[ChatBox] FetchConversations';
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -export class CreateNewConversation {
                                                                                                                                                                                -  static readonly type = '[ChatBox] CreateNewConversation';
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -export class SwitchConversation {
                                                                                                                                                                                -  static readonly type = '[ChatBox] SwitchConversation';
                                                                                                                                                                                -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -export class SaveConversation {
                                                                                                                                                                                -  static readonly type = '[ChatBox] SaveConversation';
                                                                                                                                                                                -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -export class CloseConversation {
                                                                                                                                                                                -  static readonly type = '[ChatBox] CloseConversation';
                                                                                                                                                                                -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -export class AddMessage {
                                                                                                                                                                                -  static readonly type = '[ChatBox] AddMessage';
                                                                                                                                                                                -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -export class StartVoiceCommand {
                                                                                                                                                                                -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                                                                                                                                                -}
                                                                                                                                                                                -export class SendMessage {
                                                                                                                                                                                -  static readonly type = '[ChatBox] SendMessage';
                                                                                                                                                                                -  constructor(public readonly payload: { message: string }) {}
                                                                                                                                                                                -}
                                                                                                                                                                                -export class SendTyping {
                                                                                                                                                                                -  static readonly type = '[ChatBox] Typing';
                                                                                                                                                                                -  constructor(public readonly payload: Subject) {}
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -export class MarkAsRead {
                                                                                                                                                                                -  static readonly type = '[ChatBox] MarkAsRead';
                                                                                                                                                                                -}
                                                                                                                                                                                -
                                                                                                                                                                                -
                                                                                                                                                                                -
                                                                                                                                                                                - - - - - - - -
                                                                                                                                                                                -
                                                                                                                                                                                -

                                                                                                                                                                                result-matching ""

                                                                                                                                                                                -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -

                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/StateDef.html b/docs/classes/StateDef.html deleted file mode 100644 index 33c976fcd..000000000 --- a/docs/classes/StateDef.html +++ /dev/null @@ -1,430 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                  -
                                                                                                                                                                                  -

                                                                                                                                                                                  -

                                                                                                                                                                                  File

                                                                                                                                                                                  -

                                                                                                                                                                                  -

                                                                                                                                                                                  - libs/utils/src/lib/StateDef.ts -

                                                                                                                                                                                  - - -

                                                                                                                                                                                  -

                                                                                                                                                                                  Extends

                                                                                                                                                                                  -

                                                                                                                                                                                  -

                                                                                                                                                                                  - BehaviorSubject -

                                                                                                                                                                                  - - - -
                                                                                                                                                                                  -

                                                                                                                                                                                  Index

                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                  -
                                                                                                                                                                                  Methods
                                                                                                                                                                                  -
                                                                                                                                                                                  - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - - - -
                                                                                                                                                                                  - -

                                                                                                                                                                                  - Methods -

                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                  - - - - select - - - -
                                                                                                                                                                                  -select(selector: (state: T) => void) -
                                                                                                                                                                                  - -
                                                                                                                                                                                  - Type parameters : -
                                                                                                                                                                                    -
                                                                                                                                                                                  • R
                                                                                                                                                                                  • -
                                                                                                                                                                                  -
                                                                                                                                                                                  - -
                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                  selector - function - - No -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  - Returns : any - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                  - - - - selectOne - - - -
                                                                                                                                                                                  -selectOne(selector: (state: T) => void) -
                                                                                                                                                                                  - -
                                                                                                                                                                                  - Type parameters : -
                                                                                                                                                                                    -
                                                                                                                                                                                  • R
                                                                                                                                                                                  • -
                                                                                                                                                                                  -
                                                                                                                                                                                  - -
                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                  selector - function - - No -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  - Returns : any - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                  - - - - setState - - - -
                                                                                                                                                                                  -setState(setter: (state: T) => void) -
                                                                                                                                                                                  - -
                                                                                                                                                                                  - -
                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                  setter - function - - No -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                  -
                                                                                                                                                                                  - -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  - - - - - - -
                                                                                                                                                                                  - - -
                                                                                                                                                                                  -
                                                                                                                                                                                  import { BehaviorSubject } from 'rxjs';
                                                                                                                                                                                  -import { distinctUntilChanged, map, take } from 'rxjs/operators';
                                                                                                                                                                                  -
                                                                                                                                                                                  -export class StateDef<T> extends BehaviorSubject<T> {
                                                                                                                                                                                  -  setState(setter: (state: T) => T) {
                                                                                                                                                                                  -    this.pipe(take(1)).subscribe(state => {
                                                                                                                                                                                  -      this.next(setter(state));
                                                                                                                                                                                  -    });
                                                                                                                                                                                  -  }
                                                                                                                                                                                  -
                                                                                                                                                                                  -  select<R>(selector: (state?: T) => R) {
                                                                                                                                                                                  -    return this.pipe(
                                                                                                                                                                                  -      map(selector),
                                                                                                                                                                                  -      distinctUntilChanged(),
                                                                                                                                                                                  -    );
                                                                                                                                                                                  -  }
                                                                                                                                                                                  -
                                                                                                                                                                                  -  selectOne<R>(selector: (state?: T) => R) {
                                                                                                                                                                                  -    return this.select(selector).pipe(take(1));
                                                                                                                                                                                  -  }
                                                                                                                                                                                  -}
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  -
                                                                                                                                                                                  - - - - - - - -
                                                                                                                                                                                  -
                                                                                                                                                                                  -

                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                  -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    -

                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    - -
                                                                                                                                                                                    -
                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Store.html b/docs/classes/Store.html deleted file mode 100644 index a96f7d10a..000000000 --- a/docs/classes/Store.html +++ /dev/null @@ -1,513 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                    -
                                                                                                                                                                                    - - -
                                                                                                                                                                                    -
                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                    -
                                                                                                                                                                                    -

                                                                                                                                                                                    -

                                                                                                                                                                                    File

                                                                                                                                                                                    -

                                                                                                                                                                                    -

                                                                                                                                                                                    - libs/draggable/src/lib/directives/resizable/resizable.store.ts -

                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                    -

                                                                                                                                                                                    Index

                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                    -
                                                                                                                                                                                    Properties
                                                                                                                                                                                    -
                                                                                                                                                                                    - -
                                                                                                                                                                                    -
                                                                                                                                                                                    Methods
                                                                                                                                                                                    -
                                                                                                                                                                                    - -
                                                                                                                                                                                    -
                                                                                                                                                                                    - - -
                                                                                                                                                                                    - -

                                                                                                                                                                                    - Properties -

                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                    - - - - Private - reducers - - - -
                                                                                                                                                                                    - reducers: any[] - -
                                                                                                                                                                                    - Type : any[] - -
                                                                                                                                                                                    - Default value : [] -
                                                                                                                                                                                    - -
                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                    - - - - state - - - -
                                                                                                                                                                                    - state: IResizeState - -
                                                                                                                                                                                    - Type : IResizeState - -
                                                                                                                                                                                    - Default value : { - currentSize: { width: 0, height: 0 }, - startSize: { width: 0, height: 0 }, - currentPosition: { x: 0, y: 0 }, - startPosition: { x: 0, y: 0 }, - isResizing: false, - direction: null, - } -
                                                                                                                                                                                    - -
                                                                                                                                                                                    -
                                                                                                                                                                                    - -
                                                                                                                                                                                    - -

                                                                                                                                                                                    - Methods -

                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                    - - - - addReducer - - - -
                                                                                                                                                                                    -addReducer(reducer: any) -
                                                                                                                                                                                    - -
                                                                                                                                                                                    - -
                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                    reducer - any - - No -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                    -
                                                                                                                                                                                    - -
                                                                                                                                                                                    -
                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                    - - - - emitAction - - - -
                                                                                                                                                                                    -emitAction(action: any, ...params: any[]) -
                                                                                                                                                                                    - -
                                                                                                                                                                                    - -
                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                    action - any - - No -
                                                                                                                                                                                    params - any[] - - No -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                    -
                                                                                                                                                                                    - -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    - - - - - - -
                                                                                                                                                                                    - - -
                                                                                                                                                                                    -
                                                                                                                                                                                    export interface IPoint {
                                                                                                                                                                                    -  x: number;
                                                                                                                                                                                    -  y: number;
                                                                                                                                                                                    -}
                                                                                                                                                                                    -
                                                                                                                                                                                    -export interface ISize {
                                                                                                                                                                                    -  width: number;
                                                                                                                                                                                    -  height: number;
                                                                                                                                                                                    -}
                                                                                                                                                                                    -
                                                                                                                                                                                    -export interface IRectangle {
                                                                                                                                                                                    -  x: number;
                                                                                                                                                                                    -  y: number;
                                                                                                                                                                                    -  width: number;
                                                                                                                                                                                    -  height: number;
                                                                                                                                                                                    -}
                                                                                                                                                                                    -
                                                                                                                                                                                    -export interface IResizeEvent {
                                                                                                                                                                                    -  size: ISize;
                                                                                                                                                                                    -  position: IPoint;
                                                                                                                                                                                    -  direction: string;
                                                                                                                                                                                    -}
                                                                                                                                                                                    -
                                                                                                                                                                                    -export interface IResizeState {
                                                                                                                                                                                    -  currentSize: ISize;
                                                                                                                                                                                    -  startSize: ISize;
                                                                                                                                                                                    -  currentPosition: IPoint;
                                                                                                                                                                                    -  startPosition: IPoint;
                                                                                                                                                                                    -  direction: string;
                                                                                                                                                                                    -  isResizing: boolean;
                                                                                                                                                                                    -}
                                                                                                                                                                                    -
                                                                                                                                                                                    -export interface IOptions {
                                                                                                                                                                                    -  minSize: ISize;
                                                                                                                                                                                    -  maxSize: ISize;
                                                                                                                                                                                    -  grid: ISize;
                                                                                                                                                                                    -  directions: string[];
                                                                                                                                                                                    -  disabled: boolean;
                                                                                                                                                                                    -  bound: IRectangle;
                                                                                                                                                                                    -  ratio: number;
                                                                                                                                                                                    -}
                                                                                                                                                                                    -
                                                                                                                                                                                    -export const defaultGrid: ISize = {
                                                                                                                                                                                    -  width: 1,
                                                                                                                                                                                    -  height: 1,
                                                                                                                                                                                    -};
                                                                                                                                                                                    -
                                                                                                                                                                                    -export const defaultBound: IRectangle = {
                                                                                                                                                                                    -  x: -Infinity,
                                                                                                                                                                                    -  y: -Infinity,
                                                                                                                                                                                    -  width: Infinity,
                                                                                                                                                                                    -  height: Infinity,
                                                                                                                                                                                    -};
                                                                                                                                                                                    -
                                                                                                                                                                                    -export class Store {
                                                                                                                                                                                    -  state: IResizeState = {
                                                                                                                                                                                    -    currentSize: { width: 0, height: 0 },
                                                                                                                                                                                    -    startSize: { width: 0, height: 0 },
                                                                                                                                                                                    -    currentPosition: { x: 0, y: 0 },
                                                                                                                                                                                    -    startPosition: { x: 0, y: 0 },
                                                                                                                                                                                    -    isResizing: false,
                                                                                                                                                                                    -    direction: null,
                                                                                                                                                                                    -  };
                                                                                                                                                                                    -
                                                                                                                                                                                    -  private reducers: any[] = [];
                                                                                                                                                                                    -
                                                                                                                                                                                    -  addReducer(reducer: any) {
                                                                                                                                                                                    -    this.reducers.push(reducer);
                                                                                                                                                                                    -  }
                                                                                                                                                                                    -
                                                                                                                                                                                    -  emitAction(action: any, ...params: any[]) {
                                                                                                                                                                                    -    this.state = this.reducers.reduce((p: IResizeState, c: any) => {
                                                                                                                                                                                    -      return c.apply(null, [p, action].concat(params));
                                                                                                                                                                                    -    }, this.state);
                                                                                                                                                                                    -  }
                                                                                                                                                                                    -}
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    -
                                                                                                                                                                                    - - - - - - - -
                                                                                                                                                                                    -
                                                                                                                                                                                    -

                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                    -
                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                      -

                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                      - -
                                                                                                                                                                                      -
                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Subject.html b/docs/classes/Subject.html deleted file mode 100644 index 9391d13b0..000000000 --- a/docs/classes/Subject.html +++ /dev/null @@ -1,414 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                      -
                                                                                                                                                                                      - - -
                                                                                                                                                                                      -
                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                      -
                                                                                                                                                                                      -

                                                                                                                                                                                      -

                                                                                                                                                                                      File

                                                                                                                                                                                      -

                                                                                                                                                                                      -

                                                                                                                                                                                      - libs/chat-box/src/lib/chat-message.model.ts -

                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                      -

                                                                                                                                                                                      Index

                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                      -
                                                                                                                                                                                      Properties
                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                        -
                                                                                                                                                                                      • - Public - Readonly - type -
                                                                                                                                                                                      • -
                                                                                                                                                                                      • - Public - Readonly - Optional - who -
                                                                                                                                                                                      • -
                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                      - -
                                                                                                                                                                                      -

                                                                                                                                                                                      Constructor

                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                      -constructor(type: SubjectType, who?: string) -
                                                                                                                                                                                      - -
                                                                                                                                                                                      -
                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                      type - SubjectType - - No -
                                                                                                                                                                                      who - string - - Yes -
                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                      - -
                                                                                                                                                                                      - -

                                                                                                                                                                                      - Properties -

                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                      - - - - Public - Readonly - type - - - -
                                                                                                                                                                                      - type: SubjectType - -
                                                                                                                                                                                      - Type : SubjectType - -
                                                                                                                                                                                      - -
                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                      - - - - Public - Readonly - Optional - who - - - -
                                                                                                                                                                                      - who: string - -
                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                      - -
                                                                                                                                                                                      -
                                                                                                                                                                                      - - - - - - - -
                                                                                                                                                                                      - - -
                                                                                                                                                                                      -
                                                                                                                                                                                      export enum SubjectType {
                                                                                                                                                                                      -  BOT,
                                                                                                                                                                                      -  USER,
                                                                                                                                                                                      -  ADMIN,
                                                                                                                                                                                      -  GROUP,
                                                                                                                                                                                      -  ALL,
                                                                                                                                                                                      -}
                                                                                                                                                                                      -
                                                                                                                                                                                      -export enum DirectionType {
                                                                                                                                                                                      -  INCOMING,
                                                                                                                                                                                      -  OUTGOING,
                                                                                                                                                                                      -}
                                                                                                                                                                                      -
                                                                                                                                                                                      -export enum ModeType {
                                                                                                                                                                                      -  SPEAK,
                                                                                                                                                                                      -  TYPE,
                                                                                                                                                                                      -}
                                                                                                                                                                                      -export class Subject {
                                                                                                                                                                                      -  public readonly type: SubjectType;
                                                                                                                                                                                      -  public readonly who?: string; // | User with AvatarUrl?
                                                                                                                                                                                      -  constructor(type: SubjectType, who?: string) {
                                                                                                                                                                                      -    this.type = type;
                                                                                                                                                                                      -    if (who) {
                                                                                                                                                                                      -      this.who = who;
                                                                                                                                                                                      -    }
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -}
                                                                                                                                                                                      -
                                                                                                                                                                                      -export abstract class UiAction {
                                                                                                                                                                                      -  // abstract get id(): number | string;
                                                                                                                                                                                      -  // type: choice | card | button | yesNo ?
                                                                                                                                                                                      -  [key: string]: any;
                                                                                                                                                                                      -  abstract render(): string;
                                                                                                                                                                                      -  constructor(init?: Partial<UiAction>) {
                                                                                                                                                                                      -    Object.assign(this, init);
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -}
                                                                                                                                                                                      -
                                                                                                                                                                                      -export class ChatMessage<T extends UiAction | string> {
                                                                                                                                                                                      -  public readonly direction: DirectionType;
                                                                                                                                                                                      -  public readonly from?: Subject;
                                                                                                                                                                                      -  public readonly to?: Subject;
                                                                                                                                                                                      -  public readonly content: T;
                                                                                                                                                                                      -  public readonly timestamp: Date;
                                                                                                                                                                                      -  public readonly isRead: boolean;
                                                                                                                                                                                      -  public readonly mode?: ModeType;
                                                                                                                                                                                      -
                                                                                                                                                                                      -  constructor(init?: Partial<ChatMessage<T>>) {
                                                                                                                                                                                      -    Object.assign(this, init);
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -
                                                                                                                                                                                      -  static fromBotMessage(content: string) {
                                                                                                                                                                                      -    return new ChatMessage({
                                                                                                                                                                                      -      direction: DirectionType.INCOMING,
                                                                                                                                                                                      -      from: new Subject(SubjectType.BOT),
                                                                                                                                                                                      -      to: new Subject(SubjectType.USER),
                                                                                                                                                                                      -      content: content,
                                                                                                                                                                                      -      timestamp: new Date(),
                                                                                                                                                                                      -      isRead: false,
                                                                                                                                                                                      -    });
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -
                                                                                                                                                                                      -  static fromUserMessage(content: string, mode: ModeType) {
                                                                                                                                                                                      -    return new ChatMessage({
                                                                                                                                                                                      -      direction: DirectionType.OUTGOING,
                                                                                                                                                                                      -      from: new Subject(SubjectType.USER),
                                                                                                                                                                                      -      to: new Subject(SubjectType.BOT),
                                                                                                                                                                                      -      content: content,
                                                                                                                                                                                      -      timestamp: new Date(),
                                                                                                                                                                                      -      isRead: true,
                                                                                                                                                                                      -      mode: mode,
                                                                                                                                                                                      -    });
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -
                                                                                                                                                                                      -  public get isIncoming(): boolean {
                                                                                                                                                                                      -    return this.direction === DirectionType.INCOMING;
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -
                                                                                                                                                                                      -  public get isOutgoing(): boolean {
                                                                                                                                                                                      -    return this.direction === DirectionType.OUTGOING;
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -
                                                                                                                                                                                      -  public render(): string {
                                                                                                                                                                                      -    if (this.content instanceof UiAction) {
                                                                                                                                                                                      -      return this.content.render();
                                                                                                                                                                                      -    } else {
                                                                                                                                                                                      -      return this.content as string; // FIXME
                                                                                                                                                                                      -    }
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -}
                                                                                                                                                                                      -
                                                                                                                                                                                      -export class Conversation {
                                                                                                                                                                                      -  public id: string; // It could be generated string or room name.
                                                                                                                                                                                      -  messages: ChatMessage<any>[];
                                                                                                                                                                                      -  constructor(id: string, messages: ChatMessage<any>[] = []) {
                                                                                                                                                                                      -    this.id = id;
                                                                                                                                                                                      -    this.messages = messages;
                                                                                                                                                                                      -  }
                                                                                                                                                                                      -}
                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                      -
                                                                                                                                                                                      - - - - - - - -
                                                                                                                                                                                      -
                                                                                                                                                                                      -

                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                      -
                                                                                                                                                                                        -
                                                                                                                                                                                        -
                                                                                                                                                                                        -

                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                        -
                                                                                                                                                                                        -
                                                                                                                                                                                        -
                                                                                                                                                                                        - -
                                                                                                                                                                                        -
                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/SvgViewerConfig.html b/docs/classes/SvgViewerConfig.html deleted file mode 100644 index 5733dcecd..000000000 --- a/docs/classes/SvgViewerConfig.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                        -
                                                                                                                                                                                        - - -
                                                                                                                                                                                        -
                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                        -
                                                                                                                                                                                        -

                                                                                                                                                                                        -

                                                                                                                                                                                        File

                                                                                                                                                                                        -

                                                                                                                                                                                        -

                                                                                                                                                                                        - libs/svg-viewer/src/lib/svg-viewer.config.ts -

                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                        -

                                                                                                                                                                                        Index

                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                        -
                                                                                                                                                                                        Properties
                                                                                                                                                                                        -
                                                                                                                                                                                        - -
                                                                                                                                                                                        -
                                                                                                                                                                                        - - -
                                                                                                                                                                                        - -

                                                                                                                                                                                        - Properties -

                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                        - - - - baseUrl - - - -
                                                                                                                                                                                        - baseUrl: string - -
                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                        - -
                                                                                                                                                                                        -
                                                                                                                                                                                        - - - - - - - -
                                                                                                                                                                                        - - -
                                                                                                                                                                                        -
                                                                                                                                                                                        import { Inject, Optional } from '@angular/core';
                                                                                                                                                                                        -import { PlatformLocation, APP_BASE_HREF } from '@angular/common';
                                                                                                                                                                                        -
                                                                                                                                                                                        -export class SvgViewerConfig {
                                                                                                                                                                                        -  baseUrl: string;
                                                                                                                                                                                        -}
                                                                                                                                                                                        -
                                                                                                                                                                                        -export class SvgViewerDefaultConfig extends SvgViewerConfig {
                                                                                                                                                                                        -  constructor(
                                                                                                                                                                                        -    @Optional()
                                                                                                                                                                                        -    @Inject(APP_BASE_HREF)
                                                                                                                                                                                        -    appBase: string,
                                                                                                                                                                                        -    @Optional() location: PlatformLocation,
                                                                                                                                                                                        -  ) {
                                                                                                                                                                                        -    super();
                                                                                                                                                                                        -
                                                                                                                                                                                        -    if (appBase !== null) {
                                                                                                                                                                                        -      this.baseUrl = appBase;
                                                                                                                                                                                        -    } else if (location !== null) {
                                                                                                                                                                                        -      this.baseUrl = location.getBaseHrefFromDOM();
                                                                                                                                                                                        -    }
                                                                                                                                                                                        -  }
                                                                                                                                                                                        -}
                                                                                                                                                                                        -
                                                                                                                                                                                        -
                                                                                                                                                                                        -
                                                                                                                                                                                        - - - - - - - -
                                                                                                                                                                                        -
                                                                                                                                                                                        -

                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                        -
                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          -

                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          - -
                                                                                                                                                                                          -
                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/SvgViewerDefaultConfig.html b/docs/classes/SvgViewerDefaultConfig.html deleted file mode 100644 index 5ea9ed229..000000000 --- a/docs/classes/SvgViewerDefaultConfig.html +++ /dev/null @@ -1,303 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                          -
                                                                                                                                                                                          - - -
                                                                                                                                                                                          -
                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                          -
                                                                                                                                                                                          -

                                                                                                                                                                                          -

                                                                                                                                                                                          File

                                                                                                                                                                                          -

                                                                                                                                                                                          -

                                                                                                                                                                                          - libs/svg-viewer/src/lib/svg-viewer.config.ts -

                                                                                                                                                                                          - - -

                                                                                                                                                                                          -

                                                                                                                                                                                          Extends

                                                                                                                                                                                          -

                                                                                                                                                                                          -

                                                                                                                                                                                          - SvgViewerConfig -

                                                                                                                                                                                          - - - -
                                                                                                                                                                                          -

                                                                                                                                                                                          Index

                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                          -
                                                                                                                                                                                          Properties
                                                                                                                                                                                          -
                                                                                                                                                                                          - -
                                                                                                                                                                                          -
                                                                                                                                                                                          - -
                                                                                                                                                                                          -

                                                                                                                                                                                          Constructor

                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                          -constructor(appBase: string, location: PlatformLocation) -
                                                                                                                                                                                          - -
                                                                                                                                                                                          -
                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                          appBase - string - - No -
                                                                                                                                                                                          location - PlatformLocation - - No -
                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          - -
                                                                                                                                                                                          - -

                                                                                                                                                                                          - Properties -

                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                          - - - - baseUrl - - - -
                                                                                                                                                                                          - baseUrl: string - -
                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                          -
                                                                                                                                                                                          Inherited from SvgViewerConfig -
                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          Defined in SvgViewerConfig:5
                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          - - - - - - - -
                                                                                                                                                                                          - - -
                                                                                                                                                                                          -
                                                                                                                                                                                          import { Inject, Optional } from '@angular/core';
                                                                                                                                                                                          -import { PlatformLocation, APP_BASE_HREF } from '@angular/common';
                                                                                                                                                                                          -
                                                                                                                                                                                          -export class SvgViewerConfig {
                                                                                                                                                                                          -  baseUrl: string;
                                                                                                                                                                                          -}
                                                                                                                                                                                          -
                                                                                                                                                                                          -export class SvgViewerDefaultConfig extends SvgViewerConfig {
                                                                                                                                                                                          -  constructor(
                                                                                                                                                                                          -    @Optional()
                                                                                                                                                                                          -    @Inject(APP_BASE_HREF)
                                                                                                                                                                                          -    appBase: string,
                                                                                                                                                                                          -    @Optional() location: PlatformLocation,
                                                                                                                                                                                          -  ) {
                                                                                                                                                                                          -    super();
                                                                                                                                                                                          -
                                                                                                                                                                                          -    if (appBase !== null) {
                                                                                                                                                                                          -      this.baseUrl = appBase;
                                                                                                                                                                                          -    } else if (location !== null) {
                                                                                                                                                                                          -      this.baseUrl = location.getBaseHrefFromDOM();
                                                                                                                                                                                          -    }
                                                                                                                                                                                          -  }
                                                                                                                                                                                          -}
                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          -
                                                                                                                                                                                          - - - - - - - -
                                                                                                                                                                                          -
                                                                                                                                                                                          -

                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                          -
                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                            -

                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                            - -
                                                                                                                                                                                            -
                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/SwitchConversation.html b/docs/classes/SwitchConversation.html deleted file mode 100644 index 730e8b31e..000000000 --- a/docs/classes/SwitchConversation.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                            -
                                                                                                                                                                                            - - -
                                                                                                                                                                                            -
                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                            -
                                                                                                                                                                                            -

                                                                                                                                                                                            -

                                                                                                                                                                                            File

                                                                                                                                                                                            -

                                                                                                                                                                                            -

                                                                                                                                                                                            - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                            -

                                                                                                                                                                                            Index

                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                            -
                                                                                                                                                                                            Properties
                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                              -
                                                                                                                                                                                            • - Public - Readonly - payload -
                                                                                                                                                                                            • -
                                                                                                                                                                                            • - Static - Readonly - type -
                                                                                                                                                                                            • -
                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                            - -
                                                                                                                                                                                            -

                                                                                                                                                                                            Constructor

                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                            -constructor(payload: literal type) -
                                                                                                                                                                                            - -
                                                                                                                                                                                            -
                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                            payload - literal type - - No -
                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                            - -
                                                                                                                                                                                            - -

                                                                                                                                                                                            - Properties -

                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                            - - - - Public - Readonly - payload - - - -
                                                                                                                                                                                            - payload: literal type - -
                                                                                                                                                                                            - Type : literal type - -
                                                                                                                                                                                            - -
                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                            - - - - Static - Readonly - type - - - -
                                                                                                                                                                                            - type: string - -
                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                            - Default value : '[ChatBox] SwitchConversation' -
                                                                                                                                                                                            - -
                                                                                                                                                                                            -
                                                                                                                                                                                            - - - - - - - -
                                                                                                                                                                                            - - -
                                                                                                                                                                                            -
                                                                                                                                                                                            import { ChatMessage, Subject } from '../chat-message.model';
                                                                                                                                                                                            -
                                                                                                                                                                                            -export interface SynthesisVoice {
                                                                                                                                                                                            -  voice: SpeechSynthesisVoice;
                                                                                                                                                                                            -  volume: number;
                                                                                                                                                                                            -  rate: number;
                                                                                                                                                                                            -  pitch: number;
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -// Actions
                                                                                                                                                                                            -export class FetchConversations {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] FetchConversations';
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -export class CreateNewConversation {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] CreateNewConversation';
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -export class SwitchConversation {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] SwitchConversation';
                                                                                                                                                                                            -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -export class SaveConversation {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] SaveConversation';
                                                                                                                                                                                            -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -export class CloseConversation {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] CloseConversation';
                                                                                                                                                                                            -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -export class AddMessage {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] AddMessage';
                                                                                                                                                                                            -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -export class StartVoiceCommand {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                                                                                                                                                            -}
                                                                                                                                                                                            -export class SendMessage {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] SendMessage';
                                                                                                                                                                                            -  constructor(public readonly payload: { message: string }) {}
                                                                                                                                                                                            -}
                                                                                                                                                                                            -export class SendTyping {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] Typing';
                                                                                                                                                                                            -  constructor(public readonly payload: Subject) {}
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -export class MarkAsRead {
                                                                                                                                                                                            -  static readonly type = '[ChatBox] MarkAsRead';
                                                                                                                                                                                            -}
                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                            -
                                                                                                                                                                                            - - - - - - - -
                                                                                                                                                                                            -
                                                                                                                                                                                            -

                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                            -
                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                              -

                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                              - -
                                                                                                                                                                                              -
                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ToggleCurrentlyOpened.html b/docs/classes/ToggleCurrentlyOpened.html deleted file mode 100644 index 14ab14c86..000000000 --- a/docs/classes/ToggleCurrentlyOpened.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                              -
                                                                                                                                                                                              - - -
                                                                                                                                                                                              -
                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                              -
                                                                                                                                                                                              -

                                                                                                                                                                                              -

                                                                                                                                                                                              File

                                                                                                                                                                                              -

                                                                                                                                                                                              -

                                                                                                                                                                                              - libs/navigator/src/lib/state/menu.state.ts -

                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                              -

                                                                                                                                                                                              Index

                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                              -
                                                                                                                                                                                              Properties
                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                                -
                                                                                                                                                                                              • - Public - Readonly - payload -
                                                                                                                                                                                              • -
                                                                                                                                                                                              • - Static - Readonly - type -
                                                                                                                                                                                              • -
                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                              - -
                                                                                                                                                                                              -

                                                                                                                                                                                              Constructor

                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                              -constructor(payload: MenuItem) -
                                                                                                                                                                                              - -
                                                                                                                                                                                              -
                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                              payload - MenuItem - - No -
                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                              - -
                                                                                                                                                                                              - -

                                                                                                                                                                                              - Properties -

                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                              - - - - Public - Readonly - payload - - - -
                                                                                                                                                                                              - payload: MenuItem - -
                                                                                                                                                                                              - Type : MenuItem - -
                                                                                                                                                                                              - -
                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                              - - - - Static - Readonly - type - - - -
                                                                                                                                                                                              - type: string - -
                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                              - Default value : '[Menu] ToggleCurrentlyOpened' -
                                                                                                                                                                                              - -
                                                                                                                                                                                              -
                                                                                                                                                                                              - - - - - - - -
                                                                                                                                                                                              - - -
                                                                                                                                                                                              -
                                                                                                                                                                                              import { Action, NgxsOnInit, Selector, State, StateContext, Store } from '@ngxs/store';
                                                                                                                                                                                              -import { MenuItem } from '../models/menu-item.model';
                                                                                                                                                                                              -import { MenuService } from '../services/menu.service';
                                                                                                                                                                                              -import { Tree } from '@ngx-starter-kit/tree';
                                                                                                                                                                                              -
                                                                                                                                                                                              -export class NextCurrentlyOpened {
                                                                                                                                                                                              -  static readonly type = '[Menu] Next Currently Opened';
                                                                                                                                                                                              -  constructor(public readonly payload: MenuItem[]) {}
                                                                                                                                                                                              -}
                                                                                                                                                                                              -
                                                                                                                                                                                              -export class SetIconMode {
                                                                                                                                                                                              -  static readonly type = '[Menu] SetIconMode';
                                                                                                                                                                                              -  constructor(public readonly payload: boolean) {}
                                                                                                                                                                                              -}
                                                                                                                                                                                              -
                                                                                                                                                                                              -export class ToggleCurrentlyOpened {
                                                                                                                                                                                              -  static readonly type = '[Menu] ToggleCurrentlyOpened';
                                                                                                                                                                                              -  constructor(public readonly payload: MenuItem) {}
                                                                                                                                                                                              -}
                                                                                                                                                                                              -
                                                                                                                                                                                              -export class ToggleCurrentlyOpenedByRoute {
                                                                                                                                                                                              -  static readonly type = '[Menu] ToggleCurrentlyOpenedByRoute';
                                                                                                                                                                                              -  constructor(public readonly payload: string) {}
                                                                                                                                                                                              -}
                                                                                                                                                                                              -
                                                                                                                                                                                              -export interface MenuStateModel {
                                                                                                                                                                                              -  tree: Tree<MenuItem>;
                                                                                                                                                                                              -  currentlyOpened: MenuItem[];
                                                                                                                                                                                              -  iconMode: boolean;
                                                                                                                                                                                              -}
                                                                                                                                                                                              -
                                                                                                                                                                                              -@State<MenuStateModel>({
                                                                                                                                                                                              -  name: 'menu',
                                                                                                                                                                                              -  defaults: {
                                                                                                                                                                                              -    tree: null,
                                                                                                                                                                                              -    currentlyOpened: [],
                                                                                                                                                                                              -    iconMode: false,
                                                                                                                                                                                              -  },
                                                                                                                                                                                              -})
                                                                                                                                                                                              -export class MenuState implements NgxsOnInit {
                                                                                                                                                                                              -  constructor(private menuService: MenuService) {}
                                                                                                                                                                                              -
                                                                                                                                                                                              -  @Selector()
                                                                                                                                                                                              -  static menuItems(state: MenuStateModel) {
                                                                                                                                                                                              -    return state.tree.root.children;
                                                                                                                                                                                              -  }
                                                                                                                                                                                              -
                                                                                                                                                                                              -  @Selector()
                                                                                                                                                                                              -  static currentlyOpened(state: MenuStateModel) {
                                                                                                                                                                                              -    if (state.iconMode) {
                                                                                                                                                                                              -      return [];
                                                                                                                                                                                              -    } else {
                                                                                                                                                                                              -      return state.currentlyOpened;
                                                                                                                                                                                              -    }
                                                                                                                                                                                              -  }
                                                                                                                                                                                              -
                                                                                                                                                                                              -  ngxsOnInit({ setState, getState }: StateContext<MenuStateModel>) {
                                                                                                                                                                                              -    setState({
                                                                                                                                                                                              -      tree: this.menuService.tree,
                                                                                                                                                                                              -      currentlyOpened: [],
                                                                                                                                                                                              -      iconMode: false,
                                                                                                                                                                                              -    });
                                                                                                                                                                                              -  }
                                                                                                                                                                                              -
                                                                                                                                                                                              -  private getParents(tree, item: MenuItem): MenuItem[] {
                                                                                                                                                                                              -    const ancestors = tree.getAllParents(item);
                                                                                                                                                                                              -    ancestors.shift();
                                                                                                                                                                                              -    return ancestors;
                                                                                                                                                                                              -  }
                                                                                                                                                                                              -
                                                                                                                                                                                              -  @Action(SetIconMode)
                                                                                                                                                                                              -  setIconMode({ getState, patchState }: StateContext<MenuStateModel>, { payload }: SetIconMode) {
                                                                                                                                                                                              -    patchState({
                                                                                                                                                                                              -      iconMode: payload,
                                                                                                                                                                                              -    });
                                                                                                                                                                                              -  }
                                                                                                                                                                                              -
                                                                                                                                                                                              -  @Action(NextCurrentlyOpened)
                                                                                                                                                                                              -  nextCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: NextCurrentlyOpened) {
                                                                                                                                                                                              -    patchState({
                                                                                                                                                                                              -      currentlyOpened: payload,
                                                                                                                                                                                              -    });
                                                                                                                                                                                              -  }
                                                                                                                                                                                              -
                                                                                                                                                                                              -  @Action(ToggleCurrentlyOpened)
                                                                                                                                                                                              -  toggleCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: ToggleCurrentlyOpened) {
                                                                                                                                                                                              -    // tslint:disable:prefer-const
                                                                                                                                                                                              -    let { tree, currentlyOpened } = getState();
                                                                                                                                                                                              -    const isOpen = currentlyOpened.indexOf(payload) !== -1;
                                                                                                                                                                                              -
                                                                                                                                                                                              -    if (isOpen) {
                                                                                                                                                                                              -      if (currentlyOpened.length > 1) {
                                                                                                                                                                                              -        currentlyOpened.length = currentlyOpened.indexOf(payload);
                                                                                                                                                                                              -      } else {
                                                                                                                                                                                              -        currentlyOpened = [];
                                                                                                                                                                                              -      }
                                                                                                                                                                                              -    } else {
                                                                                                                                                                                              -      currentlyOpened = this.getParents(tree, payload);
                                                                                                                                                                                              -    }
                                                                                                                                                                                              -
                                                                                                                                                                                              -    patchState({
                                                                                                                                                                                              -      currentlyOpened: currentlyOpened,
                                                                                                                                                                                              -    });
                                                                                                                                                                                              -  }
                                                                                                                                                                                              -
                                                                                                                                                                                              -  @Action(ToggleCurrentlyOpenedByRoute)
                                                                                                                                                                                              -  toggleCurrentlyOpenedByRoute(
                                                                                                                                                                                              -    { getState, patchState }: StateContext<MenuStateModel>,
                                                                                                                                                                                              -    { payload }: ToggleCurrentlyOpenedByRoute,
                                                                                                                                                                                              -  ) {
                                                                                                                                                                                              -    const { tree } = getState();
                                                                                                                                                                                              -    let currentlyOpened: MenuItem[] = [];
                                                                                                                                                                                              -
                                                                                                                                                                                              -    const item = tree.findByPredicateBFS(node => {
                                                                                                                                                                                              -      return node.link === payload;
                                                                                                                                                                                              -    });
                                                                                                                                                                                              -
                                                                                                                                                                                              -    if (item && item.parent) {
                                                                                                                                                                                              -      currentlyOpened = this.getParents(tree, item);
                                                                                                                                                                                              -    } else if (item) {
                                                                                                                                                                                              -      currentlyOpened = [item];
                                                                                                                                                                                              -    }
                                                                                                                                                                                              -
                                                                                                                                                                                              -    patchState({
                                                                                                                                                                                              -      currentlyOpened: currentlyOpened,
                                                                                                                                                                                              -    });
                                                                                                                                                                                              -  }
                                                                                                                                                                                              -}
                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                              -
                                                                                                                                                                                              - - - - - - - -
                                                                                                                                                                                              -
                                                                                                                                                                                              -

                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                              -
                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                -

                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                - -
                                                                                                                                                                                                -
                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/ToggleCurrentlyOpenedByRoute.html b/docs/classes/ToggleCurrentlyOpenedByRoute.html deleted file mode 100644 index d4395d45c..000000000 --- a/docs/classes/ToggleCurrentlyOpenedByRoute.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                -
                                                                                                                                                                                                - - -
                                                                                                                                                                                                -
                                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                                -
                                                                                                                                                                                                -

                                                                                                                                                                                                -

                                                                                                                                                                                                File

                                                                                                                                                                                                -

                                                                                                                                                                                                -

                                                                                                                                                                                                - libs/navigator/src/lib/state/menu.state.ts -

                                                                                                                                                                                                - - - - - -
                                                                                                                                                                                                -

                                                                                                                                                                                                Index

                                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                                -
                                                                                                                                                                                                Properties
                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                  -
                                                                                                                                                                                                • - Public - Readonly - payload -
                                                                                                                                                                                                • -
                                                                                                                                                                                                • - Static - Readonly - type -
                                                                                                                                                                                                • -
                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                - -
                                                                                                                                                                                                -

                                                                                                                                                                                                Constructor

                                                                                                                                                                                                - - - - - - - - - - - - - -
                                                                                                                                                                                                -constructor(payload: string) -
                                                                                                                                                                                                - -
                                                                                                                                                                                                -
                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                payload - string - - No -
                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                - -
                                                                                                                                                                                                - -

                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                - - - - Public - Readonly - payload - - - -
                                                                                                                                                                                                - payload: string - -
                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                - -
                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                - - - - Static - Readonly - type - - - -
                                                                                                                                                                                                - type: string - -
                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                - Default value : '[Menu] ToggleCurrentlyOpenedByRoute' -
                                                                                                                                                                                                - -
                                                                                                                                                                                                -
                                                                                                                                                                                                - - - - - - - -
                                                                                                                                                                                                - - -
                                                                                                                                                                                                -
                                                                                                                                                                                                import { Action, NgxsOnInit, Selector, State, StateContext, Store } from '@ngxs/store';
                                                                                                                                                                                                -import { MenuItem } from '../models/menu-item.model';
                                                                                                                                                                                                -import { MenuService } from '../services/menu.service';
                                                                                                                                                                                                -import { Tree } from '@ngx-starter-kit/tree';
                                                                                                                                                                                                -
                                                                                                                                                                                                -export class NextCurrentlyOpened {
                                                                                                                                                                                                -  static readonly type = '[Menu] Next Currently Opened';
                                                                                                                                                                                                -  constructor(public readonly payload: MenuItem[]) {}
                                                                                                                                                                                                -}
                                                                                                                                                                                                -
                                                                                                                                                                                                -export class SetIconMode {
                                                                                                                                                                                                -  static readonly type = '[Menu] SetIconMode';
                                                                                                                                                                                                -  constructor(public readonly payload: boolean) {}
                                                                                                                                                                                                -}
                                                                                                                                                                                                -
                                                                                                                                                                                                -export class ToggleCurrentlyOpened {
                                                                                                                                                                                                -  static readonly type = '[Menu] ToggleCurrentlyOpened';
                                                                                                                                                                                                -  constructor(public readonly payload: MenuItem) {}
                                                                                                                                                                                                -}
                                                                                                                                                                                                -
                                                                                                                                                                                                -export class ToggleCurrentlyOpenedByRoute {
                                                                                                                                                                                                -  static readonly type = '[Menu] ToggleCurrentlyOpenedByRoute';
                                                                                                                                                                                                -  constructor(public readonly payload: string) {}
                                                                                                                                                                                                -}
                                                                                                                                                                                                -
                                                                                                                                                                                                -export interface MenuStateModel {
                                                                                                                                                                                                -  tree: Tree<MenuItem>;
                                                                                                                                                                                                -  currentlyOpened: MenuItem[];
                                                                                                                                                                                                -  iconMode: boolean;
                                                                                                                                                                                                -}
                                                                                                                                                                                                -
                                                                                                                                                                                                -@State<MenuStateModel>({
                                                                                                                                                                                                -  name: 'menu',
                                                                                                                                                                                                -  defaults: {
                                                                                                                                                                                                -    tree: null,
                                                                                                                                                                                                -    currentlyOpened: [],
                                                                                                                                                                                                -    iconMode: false,
                                                                                                                                                                                                -  },
                                                                                                                                                                                                -})
                                                                                                                                                                                                -export class MenuState implements NgxsOnInit {
                                                                                                                                                                                                -  constructor(private menuService: MenuService) {}
                                                                                                                                                                                                -
                                                                                                                                                                                                -  @Selector()
                                                                                                                                                                                                -  static menuItems(state: MenuStateModel) {
                                                                                                                                                                                                -    return state.tree.root.children;
                                                                                                                                                                                                -  }
                                                                                                                                                                                                -
                                                                                                                                                                                                -  @Selector()
                                                                                                                                                                                                -  static currentlyOpened(state: MenuStateModel) {
                                                                                                                                                                                                -    if (state.iconMode) {
                                                                                                                                                                                                -      return [];
                                                                                                                                                                                                -    } else {
                                                                                                                                                                                                -      return state.currentlyOpened;
                                                                                                                                                                                                -    }
                                                                                                                                                                                                -  }
                                                                                                                                                                                                -
                                                                                                                                                                                                -  ngxsOnInit({ setState, getState }: StateContext<MenuStateModel>) {
                                                                                                                                                                                                -    setState({
                                                                                                                                                                                                -      tree: this.menuService.tree,
                                                                                                                                                                                                -      currentlyOpened: [],
                                                                                                                                                                                                -      iconMode: false,
                                                                                                                                                                                                -    });
                                                                                                                                                                                                -  }
                                                                                                                                                                                                -
                                                                                                                                                                                                -  private getParents(tree, item: MenuItem): MenuItem[] {
                                                                                                                                                                                                -    const ancestors = tree.getAllParents(item);
                                                                                                                                                                                                -    ancestors.shift();
                                                                                                                                                                                                -    return ancestors;
                                                                                                                                                                                                -  }
                                                                                                                                                                                                -
                                                                                                                                                                                                -  @Action(SetIconMode)
                                                                                                                                                                                                -  setIconMode({ getState, patchState }: StateContext<MenuStateModel>, { payload }: SetIconMode) {
                                                                                                                                                                                                -    patchState({
                                                                                                                                                                                                -      iconMode: payload,
                                                                                                                                                                                                -    });
                                                                                                                                                                                                -  }
                                                                                                                                                                                                -
                                                                                                                                                                                                -  @Action(NextCurrentlyOpened)
                                                                                                                                                                                                -  nextCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: NextCurrentlyOpened) {
                                                                                                                                                                                                -    patchState({
                                                                                                                                                                                                -      currentlyOpened: payload,
                                                                                                                                                                                                -    });
                                                                                                                                                                                                -  }
                                                                                                                                                                                                -
                                                                                                                                                                                                -  @Action(ToggleCurrentlyOpened)
                                                                                                                                                                                                -  toggleCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: ToggleCurrentlyOpened) {
                                                                                                                                                                                                -    // tslint:disable:prefer-const
                                                                                                                                                                                                -    let { tree, currentlyOpened } = getState();
                                                                                                                                                                                                -    const isOpen = currentlyOpened.indexOf(payload) !== -1;
                                                                                                                                                                                                -
                                                                                                                                                                                                -    if (isOpen) {
                                                                                                                                                                                                -      if (currentlyOpened.length > 1) {
                                                                                                                                                                                                -        currentlyOpened.length = currentlyOpened.indexOf(payload);
                                                                                                                                                                                                -      } else {
                                                                                                                                                                                                -        currentlyOpened = [];
                                                                                                                                                                                                -      }
                                                                                                                                                                                                -    } else {
                                                                                                                                                                                                -      currentlyOpened = this.getParents(tree, payload);
                                                                                                                                                                                                -    }
                                                                                                                                                                                                -
                                                                                                                                                                                                -    patchState({
                                                                                                                                                                                                -      currentlyOpened: currentlyOpened,
                                                                                                                                                                                                -    });
                                                                                                                                                                                                -  }
                                                                                                                                                                                                -
                                                                                                                                                                                                -  @Action(ToggleCurrentlyOpenedByRoute)
                                                                                                                                                                                                -  toggleCurrentlyOpenedByRoute(
                                                                                                                                                                                                -    { getState, patchState }: StateContext<MenuStateModel>,
                                                                                                                                                                                                -    { payload }: ToggleCurrentlyOpenedByRoute,
                                                                                                                                                                                                -  ) {
                                                                                                                                                                                                -    const { tree } = getState();
                                                                                                                                                                                                -    let currentlyOpened: MenuItem[] = [];
                                                                                                                                                                                                -
                                                                                                                                                                                                -    const item = tree.findByPredicateBFS(node => {
                                                                                                                                                                                                -      return node.link === payload;
                                                                                                                                                                                                -    });
                                                                                                                                                                                                -
                                                                                                                                                                                                -    if (item && item.parent) {
                                                                                                                                                                                                -      currentlyOpened = this.getParents(tree, item);
                                                                                                                                                                                                -    } else if (item) {
                                                                                                                                                                                                -      currentlyOpened = [item];
                                                                                                                                                                                                -    }
                                                                                                                                                                                                -
                                                                                                                                                                                                -    patchState({
                                                                                                                                                                                                -      currentlyOpened: currentlyOpened,
                                                                                                                                                                                                -    });
                                                                                                                                                                                                -  }
                                                                                                                                                                                                -}
                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                -
                                                                                                                                                                                                - - - - - - - -
                                                                                                                                                                                                -
                                                                                                                                                                                                -

                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -

                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/Tree.html b/docs/classes/Tree.html deleted file mode 100644 index 2de996695..000000000 --- a/docs/classes/Tree.html +++ /dev/null @@ -1,1682 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -

                                                                                                                                                                                                  -

                                                                                                                                                                                                  File

                                                                                                                                                                                                  -

                                                                                                                                                                                                  -

                                                                                                                                                                                                  - libs/tree/src/lib/tree.model.ts -

                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                  -

                                                                                                                                                                                                  Implements

                                                                                                                                                                                                  -

                                                                                                                                                                                                  -

                                                                                                                                                                                                  - Iterable -

                                                                                                                                                                                                  - - -
                                                                                                                                                                                                  -

                                                                                                                                                                                                  Index

                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  Properties
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  Methods
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -

                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                  -constructor(root: T, config?: TreeConfig) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  root - T - - No -
                                                                                                                                                                                                  config - TreeConfig<T> - - Yes -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -

                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - config - - - -
                                                                                                                                                                                                  - config: TreeConfig<T> - -
                                                                                                                                                                                                  - Type : TreeConfig<T> - -
                                                                                                                                                                                                  - Default value : {} -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - root - - - -
                                                                                                                                                                                                  - root: T - -
                                                                                                                                                                                                  - Type : T - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -

                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - Private - _postOrder - - - -
                                                                                                                                                                                                  - - _postOrder(node: T, fn: (node: T) => void) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  node - T - - No -
                                                                                                                                                                                                  fn - function - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - Private - _preOrder - - - -
                                                                                                                                                                                                  - - _preOrder(node: T, fn: (node: T) => void) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  node - T - - No -
                                                                                                                                                                                                  fn - function - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - add - - - -
                                                                                                                                                                                                  -add(node: T, toNode: T) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  node - T - - No -
                                                                                                                                                                                                  toNode - T - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : string - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - Private - addParentLinks - - - -
                                                                                                                                                                                                  - - addParentLinks(parent: T) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  parent - T - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : T - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - contains - - - -
                                                                                                                                                                                                  -contains(node: T) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  node - T - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : boolean - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - findBFS - - - -
                                                                                                                                                                                                  -findBFS(node: T) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  node - T - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : any - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - - - - -
                                                                                                                                                                                                  -() -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Returns : IterableIterator<T> - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - findByPredicateBFS - - - -
                                                                                                                                                                                                  -findByPredicateBFS(predicate: (node: T) => void) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  predicate - function - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : T - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - findByPredicateDFS - - - -
                                                                                                                                                                                                  -findByPredicateDFS(predicate: (node: T) => void, strategy: TraversalStrategy) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptionalDefault value
                                                                                                                                                                                                  predicate - function - - No - -
                                                                                                                                                                                                  strategy - TraversalStrategy - - No - - TraversalStrategy.PreOrder -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : T - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - getAllParents - - - -
                                                                                                                                                                                                  -getAllParents(item: T) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  item - T - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : T[] - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - isLeaf - - - -
                                                                                                                                                                                                  -isLeaf(node: T) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  node - T - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : boolean - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - isRoot - - - -
                                                                                                                                                                                                  -isRoot(node: T) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  node - T - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : boolean - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - remove - - - -
                                                                                                                                                                                                  -remove(node: T) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  node - T - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - traverseBFS - - - -
                                                                                                                                                                                                  -traverseBFS(fn: (node: T) => void) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                  fn - function - - No -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  - - - - traverseDFS - - - -
                                                                                                                                                                                                  -traverseDFS(fn: (node: T) => void, method: TraversalStrategy) -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                  NameTypeOptionalDefault value
                                                                                                                                                                                                  fn - function - - No - -
                                                                                                                                                                                                  method - TraversalStrategy - - No - - TraversalStrategy.PreOrder -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - -
                                                                                                                                                                                                  - - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  import { Comparator, mergeSort } from './merge-sort';
                                                                                                                                                                                                  -import { findInsertIndex } from './find-insert-index';
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -export { Comparator } from './merge-sort';
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -/**
                                                                                                                                                                                                  - * // Usage examples
                                                                                                                                                                                                  - * this._tree.traverseDFS((node)=> {
                                                                                                                                                                                                  - *    console.log(node);
                                                                                                                                                                                                  - * });
                                                                                                                                                                                                  - *
                                                                                                                                                                                                  - * this._tree.traverseBFS((node)=> {
                                                                                                                                                                                                  - *    console.log(node);
                                                                                                                                                                                                  - * });
                                                                                                                                                                                                  - *
                                                                                                                                                                                                  - * const level4 = this._tree.findByPredicateBFS((node) => {
                                                                                                                                                                                                  - *    return node.link === "/level1/level2/level3/level4"
                                                                                                                                                                                                  - * });
                                                                                                                                                                                                  - * console.log(level4);
                                                                                                                                                                                                  - *
                                                                                                                                                                                                  - * const level4Parents = this.getAllParents(level4);
                                                                                                                                                                                                  - * console.log(level4Parents)
                                                                                                                                                                                                  - *
                                                                                                                                                                                                  - * for(const node of this._tree) {
                                                                                                                                                                                                  - *   if(node.link ==="/admin/overview") {
                                                                                                                                                                                                  - *     console.log("found");
                                                                                                                                                                                                  - *     break;
                                                                                                                                                                                                  - *   }
                                                                                                                                                                                                  - * }
                                                                                                                                                                                                  - */
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -export enum TraversalStrategy {
                                                                                                                                                                                                  -  PreOrder,
                                                                                                                                                                                                  -  PostOrder,
                                                                                                                                                                                                  -}
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -export interface TreeNode<T> {
                                                                                                                                                                                                  -  parent?: T;
                                                                                                                                                                                                  -  children?: T[];
                                                                                                                                                                                                  -  [key: string]: any;
                                                                                                                                                                                                  -}
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -export interface TreeConfig<T> {
                                                                                                                                                                                                  -  nodeComparatorFn?: Comparator<T>;
                                                                                                                                                                                                  -}
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -export class Tree<T extends TreeNode<T>> implements Iterable<T> {
                                                                                                                                                                                                  -  config: TreeConfig<T> = {};
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  root: T;
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  constructor(root: T, config?: TreeConfig<T>) {
                                                                                                                                                                                                  -    this.root = this.addParentLinks(root);
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  private addParentLinks(parent: T): T {
                                                                                                                                                                                                  -    if (parent.children) {
                                                                                                                                                                                                  -      // mergeSort children
                                                                                                                                                                                                  -      if (this.config && this.config.nodeComparatorFn) {
                                                                                                                                                                                                  -        parent.children = mergeSort<any>(parent.children, this.config.nodeComparatorFn);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -      // add a parent link to a child structure
                                                                                                                                                                                                  -      parent.children.forEach(d => {
                                                                                                                                                                                                  -        // each child gets marked with a parent
                                                                                                                                                                                                  -        d.parent = parent;
                                                                                                                                                                                                  -        // then marks its own children with itself
                                                                                                                                                                                                  -        this.addParentLinks(d);
                                                                                                                                                                                                  -      });
                                                                                                                                                                                                  -    } else {
                                                                                                                                                                                                  -      parent.children = [];
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -    return parent;
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  isRoot(node: T) {
                                                                                                                                                                                                  -    return node.parent === undefined;
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  isLeaf(node: T) {
                                                                                                                                                                                                  -    return node.children.length === 0;
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  add(node: T, toNode: T) {
                                                                                                                                                                                                  -    const parent = toNode ? this.findBFS(toNode) : null;
                                                                                                                                                                                                  -    if (parent) {
                                                                                                                                                                                                  -      // TODO: Find the index to insert the child using findInsertIndex()
                                                                                                                                                                                                  -      parent.children.push(node);
                                                                                                                                                                                                  -    } else {
                                                                                                                                                                                                  -      if (!this.root) {
                                                                                                                                                                                                  -        this.root = node;
                                                                                                                                                                                                  -      } else {
                                                                                                                                                                                                  -        return 'Root node is already assigned';
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  remove(node: T) {
                                                                                                                                                                                                  -    if (this.root === node) {
                                                                                                                                                                                                  -      this.root = null;
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -    const queue = [this.root];
                                                                                                                                                                                                  -    while (queue.length) {
                                                                                                                                                                                                  -      const _node = queue.shift();
                                                                                                                                                                                                  -      for (let i = 0; i < _node.children.length; i++) {
                                                                                                                                                                                                  -        if (_node.children[i] === node) {
                                                                                                                                                                                                  -          _node.children.splice(i, 1);
                                                                                                                                                                                                  -        } else {
                                                                                                                                                                                                  -          queue.push(_node.children[i]);
                                                                                                                                                                                                  -        }
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  contains(node: T) {
                                                                                                                                                                                                  -    return !!this.findBFS(node);
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  findBFS(node: T) {
                                                                                                                                                                                                  -    const queue = [this.root];
                                                                                                                                                                                                  -    while (queue.length) {
                                                                                                                                                                                                  -      // tslint:disable:no-non-null-assertion
                                                                                                                                                                                                  -      const _node = queue.shift()!;
                                                                                                                                                                                                  -      if (_node === node) {
                                                                                                                                                                                                  -        return _node;
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -      for (const child of _node.children) {
                                                                                                                                                                                                  -        queue.push(child);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -    return null;
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  findByPredicateBFS(predicate: (node: T) => boolean): T {
                                                                                                                                                                                                  -    const queue = [this.root];
                                                                                                                                                                                                  -    while (queue.length) {
                                                                                                                                                                                                  -      const _node = queue.shift()!;
                                                                                                                                                                                                  -      if (predicate(_node)) {
                                                                                                                                                                                                  -        return _node;
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -      for (const child of _node.children) {
                                                                                                                                                                                                  -        queue.push(child);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -    return null;
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  findByPredicateDFS(predicate: (node: T) => boolean, strategy: TraversalStrategy = TraversalStrategy.PreOrder): T {
                                                                                                                                                                                                  -    // TODO
                                                                                                                                                                                                  -    return null;
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  private _preOrder(node: T, fn: (node: T) => any) {
                                                                                                                                                                                                  -    if (node) {
                                                                                                                                                                                                  -      if (fn) {
                                                                                                                                                                                                  -        fn(node);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -      for (const child of node.children) {
                                                                                                                                                                                                  -        this._preOrder(child, fn);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  private _postOrder(node: T, fn: (node: T) => any) {
                                                                                                                                                                                                  -    if (node) {
                                                                                                                                                                                                  -      for (const child of node.children) {
                                                                                                                                                                                                  -        this._postOrder(child, fn);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -      if (fn) {
                                                                                                                                                                                                  -        fn(node);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  traverseDFS(fn: (node: T) => any, method: TraversalStrategy = TraversalStrategy.PreOrder) {
                                                                                                                                                                                                  -    const current = this.root;
                                                                                                                                                                                                  -    if ((method = TraversalStrategy.PreOrder)) {
                                                                                                                                                                                                  -      this._postOrder(current, fn);
                                                                                                                                                                                                  -    } else {
                                                                                                                                                                                                  -      this._preOrder(current, fn);
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  traverseBFS(fn: (node: T) => any) {
                                                                                                                                                                                                  -    const queue = [this.root];
                                                                                                                                                                                                  -    while (queue.length) {
                                                                                                                                                                                                  -      const node = queue.shift();
                                                                                                                                                                                                  -      if (fn) {
                                                                                                                                                                                                  -        fn(node);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -      for (const child of node.children) {
                                                                                                                                                                                                  -        queue.push(child);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  *[Symbol.iterator](): IterableIterator<T> {
                                                                                                                                                                                                  -    const queue = [this.root];
                                                                                                                                                                                                  -    while (queue.length) {
                                                                                                                                                                                                  -      const node = queue.shift()!;
                                                                                                                                                                                                  -      yield node;
                                                                                                                                                                                                  -      for (const child of node.children) {
                                                                                                                                                                                                  -        queue.push(child);
                                                                                                                                                                                                  -      }
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -  getAllParents(item: T): T[] {
                                                                                                                                                                                                  -    const parents: T[] = [];
                                                                                                                                                                                                  -    parents.unshift(item);
                                                                                                                                                                                                  -    let parent = item.parent;
                                                                                                                                                                                                  -    while (parent) {
                                                                                                                                                                                                  -      parents.unshift(parent);
                                                                                                                                                                                                  -      parent = parent.parent;
                                                                                                                                                                                                  -    }
                                                                                                                                                                                                  -    return parents;
                                                                                                                                                                                                  -  }
                                                                                                                                                                                                  -}
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  - - - - - - - -
                                                                                                                                                                                                  -
                                                                                                                                                                                                  -

                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                  -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -

                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                    -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/UiAction.html b/docs/classes/UiAction.html deleted file mode 100644 index 3d2cdce5d..000000000 --- a/docs/classes/UiAction.html +++ /dev/null @@ -1,380 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -

                                                                                                                                                                                                    -

                                                                                                                                                                                                    File

                                                                                                                                                                                                    -

                                                                                                                                                                                                    -

                                                                                                                                                                                                    - libs/chat-box/src/lib/chat-message.model.ts -

                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                    -

                                                                                                                                                                                                    Index

                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    Methods
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - -
                                                                                                                                                                                                    -

                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                    -constructor(init?: Partial) -
                                                                                                                                                                                                    - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                    init - Partial<UiAction> - - Yes -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - - -
                                                                                                                                                                                                    - -

                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                    - - - - Abstract - render - - - -
                                                                                                                                                                                                    - - render() -
                                                                                                                                                                                                    - -
                                                                                                                                                                                                    - -
                                                                                                                                                                                                    - Returns : string - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - -
                                                                                                                                                                                                    -

                                                                                                                                                                                                    Indexable

                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                    - [key: string]: any - -
                                                                                                                                                                                                    - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                    - - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    export enum SubjectType {
                                                                                                                                                                                                    -  BOT,
                                                                                                                                                                                                    -  USER,
                                                                                                                                                                                                    -  ADMIN,
                                                                                                                                                                                                    -  GROUP,
                                                                                                                                                                                                    -  ALL,
                                                                                                                                                                                                    -}
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -export enum DirectionType {
                                                                                                                                                                                                    -  INCOMING,
                                                                                                                                                                                                    -  OUTGOING,
                                                                                                                                                                                                    -}
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -export enum ModeType {
                                                                                                                                                                                                    -  SPEAK,
                                                                                                                                                                                                    -  TYPE,
                                                                                                                                                                                                    -}
                                                                                                                                                                                                    -export class Subject {
                                                                                                                                                                                                    -  public readonly type: SubjectType;
                                                                                                                                                                                                    -  public readonly who?: string; // | User with AvatarUrl?
                                                                                                                                                                                                    -  constructor(type: SubjectType, who?: string) {
                                                                                                                                                                                                    -    this.type = type;
                                                                                                                                                                                                    -    if (who) {
                                                                                                                                                                                                    -      this.who = who;
                                                                                                                                                                                                    -    }
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -}
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -export abstract class UiAction {
                                                                                                                                                                                                    -  // abstract get id(): number | string;
                                                                                                                                                                                                    -  // type: choice | card | button | yesNo ?
                                                                                                                                                                                                    -  [key: string]: any;
                                                                                                                                                                                                    -  abstract render(): string;
                                                                                                                                                                                                    -  constructor(init?: Partial<UiAction>) {
                                                                                                                                                                                                    -    Object.assign(this, init);
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -}
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -export class ChatMessage<T extends UiAction | string> {
                                                                                                                                                                                                    -  public readonly direction: DirectionType;
                                                                                                                                                                                                    -  public readonly from?: Subject;
                                                                                                                                                                                                    -  public readonly to?: Subject;
                                                                                                                                                                                                    -  public readonly content: T;
                                                                                                                                                                                                    -  public readonly timestamp: Date;
                                                                                                                                                                                                    -  public readonly isRead: boolean;
                                                                                                                                                                                                    -  public readonly mode?: ModeType;
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -  constructor(init?: Partial<ChatMessage<T>>) {
                                                                                                                                                                                                    -    Object.assign(this, init);
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -  static fromBotMessage(content: string) {
                                                                                                                                                                                                    -    return new ChatMessage({
                                                                                                                                                                                                    -      direction: DirectionType.INCOMING,
                                                                                                                                                                                                    -      from: new Subject(SubjectType.BOT),
                                                                                                                                                                                                    -      to: new Subject(SubjectType.USER),
                                                                                                                                                                                                    -      content: content,
                                                                                                                                                                                                    -      timestamp: new Date(),
                                                                                                                                                                                                    -      isRead: false,
                                                                                                                                                                                                    -    });
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -  static fromUserMessage(content: string, mode: ModeType) {
                                                                                                                                                                                                    -    return new ChatMessage({
                                                                                                                                                                                                    -      direction: DirectionType.OUTGOING,
                                                                                                                                                                                                    -      from: new Subject(SubjectType.USER),
                                                                                                                                                                                                    -      to: new Subject(SubjectType.BOT),
                                                                                                                                                                                                    -      content: content,
                                                                                                                                                                                                    -      timestamp: new Date(),
                                                                                                                                                                                                    -      isRead: true,
                                                                                                                                                                                                    -      mode: mode,
                                                                                                                                                                                                    -    });
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -  public get isIncoming(): boolean {
                                                                                                                                                                                                    -    return this.direction === DirectionType.INCOMING;
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -  public get isOutgoing(): boolean {
                                                                                                                                                                                                    -    return this.direction === DirectionType.OUTGOING;
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -  public render(): string {
                                                                                                                                                                                                    -    if (this.content instanceof UiAction) {
                                                                                                                                                                                                    -      return this.content.render();
                                                                                                                                                                                                    -    } else {
                                                                                                                                                                                                    -      return this.content as string; // FIXME
                                                                                                                                                                                                    -    }
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -}
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -export class Conversation {
                                                                                                                                                                                                    -  public id: string; // It could be generated string or room name.
                                                                                                                                                                                                    -  messages: ChatMessage<any>[];
                                                                                                                                                                                                    -  constructor(id: string, messages: ChatMessage<any>[] = []) {
                                                                                                                                                                                                    -    this.id = id;
                                                                                                                                                                                                    -    this.messages = messages;
                                                                                                                                                                                                    -  }
                                                                                                                                                                                                    -}
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    - - - - - - - -
                                                                                                                                                                                                    -
                                                                                                                                                                                                    -

                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                    -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -

                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                      -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/UpdateUserDto.html b/docs/classes/UpdateUserDto.html deleted file mode 100644 index 076f6b253..000000000 --- a/docs/classes/UpdateUserDto.html +++ /dev/null @@ -1,334 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -

                                                                                                                                                                                                      -

                                                                                                                                                                                                      File

                                                                                                                                                                                                      -

                                                                                                                                                                                                      -

                                                                                                                                                                                                      - apps/api/src/auth/dto/update-user.dto.ts -

                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                      -

                                                                                                                                                                                                      Index

                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      Properties
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - - -
                                                                                                                                                                                                      - -

                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                      - - - - Readonly - email - - - -
                                                                                                                                                                                                      - email: string - -
                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                      - Decorators : -
                                                                                                                                                                                                      - - @ApiModelProperty({type: String, minLength: 10, maxLength: 100})
                                                                                                                                                                                                      @IsEmail()
                                                                                                                                                                                                      @IsNotEmpty()
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - -
                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                      - - - - Readonly - firstName - - - -
                                                                                                                                                                                                      - firstName: string - -
                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                      - Decorators : -
                                                                                                                                                                                                      - - @ApiModelProperty({type: String})
                                                                                                                                                                                                      @IsString()
                                                                                                                                                                                                      @IsNotEmpty()
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - -
                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                      - - - - Readonly - lastName - - - -
                                                                                                                                                                                                      - lastName: string - -
                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                      - Decorators : -
                                                                                                                                                                                                      - - @ApiModelProperty({type: String})
                                                                                                                                                                                                      @IsString()
                                                                                                                                                                                                      @IsNotEmpty()
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - - - - - - - -
                                                                                                                                                                                                      - - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
                                                                                                                                                                                                      -import { ApiModelProperty } from '@nestjs/swagger';
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -export class UpdateUserDto {
                                                                                                                                                                                                      -  @ApiModelProperty({ type: String })
                                                                                                                                                                                                      -  @IsString()
                                                                                                                                                                                                      -  @IsNotEmpty()
                                                                                                                                                                                                      -  readonly firstName: string;
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -  @ApiModelProperty({ type: String })
                                                                                                                                                                                                      -  @IsString()
                                                                                                                                                                                                      -  @IsNotEmpty()
                                                                                                                                                                                                      -  readonly lastName: string;
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -  @ApiModelProperty({ type: String, minLength: 10, maxLength: 100 })
                                                                                                                                                                                                      -  @IsEmail()
                                                                                                                                                                                                      -  @IsNotEmpty()
                                                                                                                                                                                                      -  readonly email: string;
                                                                                                                                                                                                      -}
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      - - - - - - - -
                                                                                                                                                                                                      -
                                                                                                                                                                                                      -

                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                      -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        -

                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                        -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/User-1.html b/docs/classes/User-1.html deleted file mode 100644 index d4175a4cf..000000000 --- a/docs/classes/User-1.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        - - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        -

                                                                                                                                                                                                        -

                                                                                                                                                                                                        File

                                                                                                                                                                                                        -

                                                                                                                                                                                                        -

                                                                                                                                                                                                        - apps/api/src/chat/interfaces/user.ts -

                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                        -

                                                                                                                                                                                                        Index

                                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        Properties
                                                                                                                                                                                                        -
                                                                                                                                                                                                        - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        - - -
                                                                                                                                                                                                        - -

                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                        - - - - email - - - -
                                                                                                                                                                                                        - email: string - -
                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                        - -
                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                        - - - - firstName - - - -
                                                                                                                                                                                                        - firstName: string - -
                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                        - -
                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                        - - - - lastName - - - -
                                                                                                                                                                                                        - lastName: string - -
                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                        - -
                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                        - - - - userId - - - -
                                                                                                                                                                                                        - userId: string - -
                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                        - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        - - - - - - - -
                                                                                                                                                                                                        - - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        export class User {
                                                                                                                                                                                                        -  firstName: string;
                                                                                                                                                                                                        -  lastName: string;
                                                                                                                                                                                                        -  email: string;
                                                                                                                                                                                                        -  userId: string;
                                                                                                                                                                                                        -}
                                                                                                                                                                                                        -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        - - - - - - - -
                                                                                                                                                                                                        -
                                                                                                                                                                                                        -

                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                        -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -

                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/User.html b/docs/classes/User.html deleted file mode 100644 index f16d7efe9..000000000 --- a/docs/classes/User.html +++ /dev/null @@ -1,609 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - - -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -

                                                                                                                                                                                                          -

                                                                                                                                                                                                          File

                                                                                                                                                                                                          -

                                                                                                                                                                                                          -

                                                                                                                                                                                                          - apps/api/src/auth/user.entity.ts -

                                                                                                                                                                                                          - - -

                                                                                                                                                                                                          -

                                                                                                                                                                                                          Extends

                                                                                                                                                                                                          -

                                                                                                                                                                                                          -

                                                                                                                                                                                                          - Base -

                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                          -

                                                                                                                                                                                                          Index

                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          Properties
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - - -
                                                                                                                                                                                                          - -

                                                                                                                                                                                                          - Properties -

                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          - - - - Optional - createdAt - - - -
                                                                                                                                                                                                          - createdAt: Date - -
                                                                                                                                                                                                          - Type : Date - -
                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                          - - @CreateDateColumn()
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          - - - - email - - - -
                                                                                                                                                                                                          - email: string - -
                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                          - - @ApiModelProperty({type: String, minLength: 10, maxLength: 100})
                                                                                                                                                                                                          @IsEmail()
                                                                                                                                                                                                          @IsNotEmpty()
                                                                                                                                                                                                          @Index()
                                                                                                                                                                                                          @Column()
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          - - - - firstName - - - -
                                                                                                                                                                                                          - firstName: string - -
                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                          - - @ApiModelProperty({type: String})
                                                                                                                                                                                                          @IsString()
                                                                                                                                                                                                          @IsNotEmpty()
                                                                                                                                                                                                          @Index()
                                                                                                                                                                                                          @Column()
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          - - - - lastName - - - -
                                                                                                                                                                                                          - lastName: string - -
                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                          - - @ApiModelProperty({type: String})
                                                                                                                                                                                                          @IsString()
                                                                                                                                                                                                          @IsNotEmpty()
                                                                                                                                                                                                          @Index()
                                                                                                                                                                                                          @Column()
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          - - - - Optional - updatedAt - - - -
                                                                                                                                                                                                          - updatedAt: Date - -
                                                                                                                                                                                                          - Type : Date - -
                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                          - - @UpdateDateColumn()
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          - - - - userId - - - -
                                                                                                                                                                                                          - userId: string - -
                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                          - - @ApiModelProperty({type: String, minLength: 8, maxLength: 20})
                                                                                                                                                                                                          @IsAscii()
                                                                                                                                                                                                          @IsNotEmpty()
                                                                                                                                                                                                          @MinLength(8)
                                                                                                                                                                                                          @MaxLength(20)
                                                                                                                                                                                                          @Index({unique: undefined})
                                                                                                                                                                                                          @Column()
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          - - - - Optional - version - - - -
                                                                                                                                                                                                          - version: number - -
                                                                                                                                                                                                          - Type : number - -
                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                          - - @VersionColumn()
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - -
                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                          - - - - id - - - -
                                                                                                                                                                                                          - id: number - -
                                                                                                                                                                                                          - Type : number - -
                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                          - - @ApiModelPropertyOptional()
                                                                                                                                                                                                          @PrimaryGeneratedColumn()
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          Inherited from Base -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          Defined in Base:7
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - - - - - - - -
                                                                                                                                                                                                          - - -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          import { Column, CreateDateColumn, Entity, Index, OneToMany, UpdateDateColumn, VersionColumn } from 'typeorm';
                                                                                                                                                                                                          -import { ApiModelProperty } from '@nestjs/swagger';
                                                                                                                                                                                                          -import { IsAscii, IsEmail, IsNotEmpty, IsString, MaxLength, MinLength } from 'class-validator';
                                                                                                                                                                                                          -import { Base } from '../core';
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -export enum AccountSourceType {
                                                                                                                                                                                                          -  msId,
                                                                                                                                                                                                          -  hsId,
                                                                                                                                                                                                          -  gitHub,
                                                                                                                                                                                                          -}
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -@Entity('user')
                                                                                                                                                                                                          -export class User extends Base {
                                                                                                                                                                                                          -  @ApiModelProperty({ type: String })
                                                                                                                                                                                                          -  @IsString()
                                                                                                                                                                                                          -  @IsNotEmpty()
                                                                                                                                                                                                          -  @Index()
                                                                                                                                                                                                          -  @Column()
                                                                                                                                                                                                          -  firstName: string;
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -  @ApiModelProperty({ type: String })
                                                                                                                                                                                                          -  @IsString()
                                                                                                                                                                                                          -  @IsNotEmpty()
                                                                                                                                                                                                          -  @Index()
                                                                                                                                                                                                          -  @Column()
                                                                                                                                                                                                          -  lastName: string;
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -  @ApiModelProperty({ type: String, minLength: 10, maxLength: 100 })
                                                                                                                                                                                                          -  @IsEmail()
                                                                                                                                                                                                          -  @IsNotEmpty()
                                                                                                                                                                                                          -  @Index()
                                                                                                                                                                                                          -  @Column()
                                                                                                                                                                                                          -  email: string;
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -  @ApiModelProperty({ type: String, minLength: 8, maxLength: 20 })
                                                                                                                                                                                                          -  @IsAscii()
                                                                                                                                                                                                          -  @IsNotEmpty()
                                                                                                                                                                                                          -  @MinLength(8)
                                                                                                                                                                                                          -  @MaxLength(20)
                                                                                                                                                                                                          -  @Index({ unique: true })
                                                                                                                                                                                                          -  @Column()
                                                                                                                                                                                                          -  userId: string;
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -  @CreateDateColumn()
                                                                                                                                                                                                          -  createdAt?: Date;
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -  @UpdateDateColumn()
                                                                                                                                                                                                          -  updatedAt?: Date;
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -  @VersionColumn()
                                                                                                                                                                                                          -  version?: number;
                                                                                                                                                                                                          -}
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          - - - - - - - -
                                                                                                                                                                                                          -
                                                                                                                                                                                                          -

                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                          -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -

                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                            -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            - -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/WebSocketConnected.html b/docs/classes/WebSocketConnected.html deleted file mode 100644 index e8603a486..000000000 --- a/docs/classes/WebSocketConnected.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            - - -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -

                                                                                                                                                                                                            -

                                                                                                                                                                                                            File

                                                                                                                                                                                                            -

                                                                                                                                                                                                            -

                                                                                                                                                                                                            - libs/socketio-plugin/src/lib/symbols.ts -

                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                            -

                                                                                                                                                                                                            Index

                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            Properties
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -
                                                                                                                                                                                                              -
                                                                                                                                                                                                            • - Static - Readonly - type -
                                                                                                                                                                                                            • -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            - - -
                                                                                                                                                                                                            - -

                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                            - - - - Static - Readonly - type - - - -
                                                                                                                                                                                                            - type: string - -
                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                            - Default value : '[Websocket] Connected' -
                                                                                                                                                                                                            - -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            - - - - - - - -
                                                                                                                                                                                                            - - -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            import { InjectionToken } from '@angular/core';
                                                                                                                                                                                                            -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -export const NGXS_WEBSOCKET_OPTIONS = new InjectionToken('NGXS_WEBSOCKET_OPTIONS');
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -export interface NgxsWebsocketPluginOptions {
                                                                                                                                                                                                            -  /**
                                                                                                                                                                                                            -   * URL of the websocket.
                                                                                                                                                                                                            -   */
                                                                                                                                                                                                            -  url?: string;
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -  connectOpts?: ConnectOpts;
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -  tokenFn?: () => string;
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -  /**
                                                                                                                                                                                                            -   * The property name to distigunish this type for the store.
                                                                                                                                                                                                            -   * Default: 'type'
                                                                                                                                                                                                            -   */
                                                                                                                                                                                                            -  typeKey?: string;
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -  /**
                                                                                                                                                                                                            -   * Interval to try and reconnect.
                                                                                                                                                                                                            -   * Default: 5000
                                                                                                                                                                                                            -   */
                                                                                                                                                                                                            -  reconnectInterval?: number;
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -  /**
                                                                                                                                                                                                            -   * Number of reconnect attemps.
                                                                                                                                                                                                            -   * Default: 10
                                                                                                                                                                                                            -   */
                                                                                                                                                                                                            -  reconnectAttempts?: number;
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -  /**
                                                                                                                                                                                                            -   * Serializer to call before sending messages
                                                                                                                                                                                                            -   * Default: `json.stringify`
                                                                                                                                                                                                            -   */
                                                                                                                                                                                                            -  serializer?: (data: any) => string;
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -  /**
                                                                                                                                                                                                            -   * Deseralizer before publishing the message.
                                                                                                                                                                                                            -   */
                                                                                                                                                                                                            -  deserializer?: (e: MessageEvent) => any;
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -export function noop(arg) {
                                                                                                                                                                                                            -  return function() {};
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -/**
                                                                                                                                                                                                            - * Action to connect to the websocket. Optionally pass a URL.
                                                                                                                                                                                                            - */
                                                                                                                                                                                                            -export class ConnectWebSocket {
                                                                                                                                                                                                            -  static readonly type = '[Websocket] Connect';
                                                                                                                                                                                                            -  constructor(public payload?: NgxsWebsocketPluginOptions) {}
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -/**
                                                                                                                                                                                                            - * Action triggered when a error ocurrs
                                                                                                                                                                                                            - */
                                                                                                                                                                                                            -export class WebsocketMessageError {
                                                                                                                                                                                                            -  static readonly type = '[Websocket] Message Error';
                                                                                                                                                                                                            -  constructor(public payload: any) {}
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -/**
                                                                                                                                                                                                            - * Action to disconnect the websocket.
                                                                                                                                                                                                            - */
                                                                                                                                                                                                            -export class DisconnectWebSocket {
                                                                                                                                                                                                            -  static readonly type = '[Websocket] Disconnect';
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -/**
                                                                                                                                                                                                            - * Action to send to the server.
                                                                                                                                                                                                            - */
                                                                                                                                                                                                            -export class SendWebSocketAction {
                                                                                                                                                                                                            -  static readonly type = '[Websocket] Send Action';
                                                                                                                                                                                                            -  constructor(public payload: any) {}
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -export class WebSocketConnected {
                                                                                                                                                                                                            -  static readonly type = '[Websocket] Connected';
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -export class WebSocketDisconnected {
                                                                                                                                                                                                            -  static readonly type = '[Websocket] Disconnected';
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -export class AuthenticateWebSocket {
                                                                                                                                                                                                            -  static readonly type = '[Websocket] authenticate';
                                                                                                                                                                                                            -}
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            - - - - - - - -
                                                                                                                                                                                                            -
                                                                                                                                                                                                            -

                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                            -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -

                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                              -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              - -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/WebSocketDisconnected.html b/docs/classes/WebSocketDisconnected.html deleted file mode 100644 index b8f38d59f..000000000 --- a/docs/classes/WebSocketDisconnected.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              - - -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -

                                                                                                                                                                                                              -

                                                                                                                                                                                                              File

                                                                                                                                                                                                              -

                                                                                                                                                                                                              -

                                                                                                                                                                                                              - libs/socketio-plugin/src/lib/symbols.ts -

                                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                                              -

                                                                                                                                                                                                              Index

                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              Properties
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -
                                                                                                                                                                                                                -
                                                                                                                                                                                                              • - Static - Readonly - type -
                                                                                                                                                                                                              • -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              - - -
                                                                                                                                                                                                              - -

                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                              - - - - Static - Readonly - type - - - -
                                                                                                                                                                                                              - type: string - -
                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                              - Default value : '[Websocket] Disconnected' -
                                                                                                                                                                                                              - -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              - - - - - - - -
                                                                                                                                                                                                              - - -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              import { InjectionToken } from '@angular/core';
                                                                                                                                                                                                              -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -export const NGXS_WEBSOCKET_OPTIONS = new InjectionToken('NGXS_WEBSOCKET_OPTIONS');
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -export interface NgxsWebsocketPluginOptions {
                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                              -   * URL of the websocket.
                                                                                                                                                                                                              -   */
                                                                                                                                                                                                              -  url?: string;
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -  connectOpts?: ConnectOpts;
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -  tokenFn?: () => string;
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                              -   * The property name to distigunish this type for the store.
                                                                                                                                                                                                              -   * Default: 'type'
                                                                                                                                                                                                              -   */
                                                                                                                                                                                                              -  typeKey?: string;
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                              -   * Interval to try and reconnect.
                                                                                                                                                                                                              -   * Default: 5000
                                                                                                                                                                                                              -   */
                                                                                                                                                                                                              -  reconnectInterval?: number;
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                              -   * Number of reconnect attemps.
                                                                                                                                                                                                              -   * Default: 10
                                                                                                                                                                                                              -   */
                                                                                                                                                                                                              -  reconnectAttempts?: number;
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                              -   * Serializer to call before sending messages
                                                                                                                                                                                                              -   * Default: `json.stringify`
                                                                                                                                                                                                              -   */
                                                                                                                                                                                                              -  serializer?: (data: any) => string;
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                              -   * Deseralizer before publishing the message.
                                                                                                                                                                                                              -   */
                                                                                                                                                                                                              -  deserializer?: (e: MessageEvent) => any;
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -export function noop(arg) {
                                                                                                                                                                                                              -  return function() {};
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -/**
                                                                                                                                                                                                              - * Action to connect to the websocket. Optionally pass a URL.
                                                                                                                                                                                                              - */
                                                                                                                                                                                                              -export class ConnectWebSocket {
                                                                                                                                                                                                              -  static readonly type = '[Websocket] Connect';
                                                                                                                                                                                                              -  constructor(public payload?: NgxsWebsocketPluginOptions) {}
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -/**
                                                                                                                                                                                                              - * Action triggered when a error ocurrs
                                                                                                                                                                                                              - */
                                                                                                                                                                                                              -export class WebsocketMessageError {
                                                                                                                                                                                                              -  static readonly type = '[Websocket] Message Error';
                                                                                                                                                                                                              -  constructor(public payload: any) {}
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -/**
                                                                                                                                                                                                              - * Action to disconnect the websocket.
                                                                                                                                                                                                              - */
                                                                                                                                                                                                              -export class DisconnectWebSocket {
                                                                                                                                                                                                              -  static readonly type = '[Websocket] Disconnect';
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -/**
                                                                                                                                                                                                              - * Action to send to the server.
                                                                                                                                                                                                              - */
                                                                                                                                                                                                              -export class SendWebSocketAction {
                                                                                                                                                                                                              -  static readonly type = '[Websocket] Send Action';
                                                                                                                                                                                                              -  constructor(public payload: any) {}
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -export class WebSocketConnected {
                                                                                                                                                                                                              -  static readonly type = '[Websocket] Connected';
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -export class WebSocketDisconnected {
                                                                                                                                                                                                              -  static readonly type = '[Websocket] Disconnected';
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -export class AuthenticateWebSocket {
                                                                                                                                                                                                              -  static readonly type = '[Websocket] authenticate';
                                                                                                                                                                                                              -}
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              - - - - - - - -
                                                                                                                                                                                                              -
                                                                                                                                                                                                              -

                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                              -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -

                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/WebsocketMessageError.html b/docs/classes/WebsocketMessageError.html deleted file mode 100644 index 09c027b0d..000000000 --- a/docs/classes/WebsocketMessageError.html +++ /dev/null @@ -1,402 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -

                                                                                                                                                                                                                -

                                                                                                                                                                                                                File

                                                                                                                                                                                                                -

                                                                                                                                                                                                                -

                                                                                                                                                                                                                - libs/socketio-plugin/src/lib/symbols.ts -

                                                                                                                                                                                                                - -

                                                                                                                                                                                                                -

                                                                                                                                                                                                                Description

                                                                                                                                                                                                                -

                                                                                                                                                                                                                -

                                                                                                                                                                                                                -

                                                                                                                                                                                                                Action triggered when a error ocurrs

                                                                                                                                                                                                                - -

                                                                                                                                                                                                                - - - - -
                                                                                                                                                                                                                -

                                                                                                                                                                                                                Index

                                                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                • - Public - payload -
                                                                                                                                                                                                                • -
                                                                                                                                                                                                                • - Static - Readonly - type -
                                                                                                                                                                                                                • -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - -
                                                                                                                                                                                                                -

                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                - - - - - - - - - - - - - -
                                                                                                                                                                                                                -constructor(payload: any) -
                                                                                                                                                                                                                - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                payload - any - - No -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - -
                                                                                                                                                                                                                - -

                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                - - - - Public - payload - - - -
                                                                                                                                                                                                                - payload: any - -
                                                                                                                                                                                                                - Type : any - -
                                                                                                                                                                                                                - -
                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                - - - - Static - Readonly - type - - - -
                                                                                                                                                                                                                - type: string - -
                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                - Default value : '[Websocket] Message Error' -
                                                                                                                                                                                                                - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - - - - - - - -
                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                import { InjectionToken } from '@angular/core';
                                                                                                                                                                                                                -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -export const NGXS_WEBSOCKET_OPTIONS = new InjectionToken('NGXS_WEBSOCKET_OPTIONS');
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -export interface NgxsWebsocketPluginOptions {
                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                -   * URL of the websocket.
                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                -  url?: string;
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -  connectOpts?: ConnectOpts;
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -  tokenFn?: () => string;
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                -   * The property name to distigunish this type for the store.
                                                                                                                                                                                                                -   * Default: 'type'
                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                -  typeKey?: string;
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                -   * Interval to try and reconnect.
                                                                                                                                                                                                                -   * Default: 5000
                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                -  reconnectInterval?: number;
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                -   * Number of reconnect attemps.
                                                                                                                                                                                                                -   * Default: 10
                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                -  reconnectAttempts?: number;
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                -   * Serializer to call before sending messages
                                                                                                                                                                                                                -   * Default: `json.stringify`
                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                -  serializer?: (data: any) => string;
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                -   * Deseralizer before publishing the message.
                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                -  deserializer?: (e: MessageEvent) => any;
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -export function noop(arg) {
                                                                                                                                                                                                                -  return function() {};
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -/**
                                                                                                                                                                                                                - * Action to connect to the websocket. Optionally pass a URL.
                                                                                                                                                                                                                - */
                                                                                                                                                                                                                -export class ConnectWebSocket {
                                                                                                                                                                                                                -  static readonly type = '[Websocket] Connect';
                                                                                                                                                                                                                -  constructor(public payload?: NgxsWebsocketPluginOptions) {}
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -/**
                                                                                                                                                                                                                - * Action triggered when a error ocurrs
                                                                                                                                                                                                                - */
                                                                                                                                                                                                                -export class WebsocketMessageError {
                                                                                                                                                                                                                -  static readonly type = '[Websocket] Message Error';
                                                                                                                                                                                                                -  constructor(public payload: any) {}
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -/**
                                                                                                                                                                                                                - * Action to disconnect the websocket.
                                                                                                                                                                                                                - */
                                                                                                                                                                                                                -export class DisconnectWebSocket {
                                                                                                                                                                                                                -  static readonly type = '[Websocket] Disconnect';
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -/**
                                                                                                                                                                                                                - * Action to send to the server.
                                                                                                                                                                                                                - */
                                                                                                                                                                                                                -export class SendWebSocketAction {
                                                                                                                                                                                                                -  static readonly type = '[Websocket] Send Action';
                                                                                                                                                                                                                -  constructor(public payload: any) {}
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -export class WebSocketConnected {
                                                                                                                                                                                                                -  static readonly type = '[Websocket] Connected';
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -export class WebSocketDisconnected {
                                                                                                                                                                                                                -  static readonly type = '[Websocket] Disconnected';
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -export class AuthenticateWebSocket {
                                                                                                                                                                                                                -  static readonly type = '[Websocket] authenticate';
                                                                                                                                                                                                                -}
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                - - - - - - - -
                                                                                                                                                                                                                -
                                                                                                                                                                                                                -

                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/classes/WsAuthException.html b/docs/classes/WsAuthException.html deleted file mode 100644 index 41d4997b7..000000000 --- a/docs/classes/WsAuthException.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  File

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  - apps/api/src/auth/auth.exception.ts -

                                                                                                                                                                                                                  - - -

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  Extends

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  - WsException -

                                                                                                                                                                                                                  - - - - -
                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                  -constructor(message, error) -
                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                  NameOptional
                                                                                                                                                                                                                  message - No -
                                                                                                                                                                                                                  error - No -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  import { HttpException, HttpStatus } from '@nestjs/common';
                                                                                                                                                                                                                  -import { WsException } from '@nestjs/websockets';
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -export const createExceptionBody = (message: any, error: string, statusCode: number) =>
                                                                                                                                                                                                                  -  message ? { statusCode, error, message } : { statusCode, error };
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -export class HttpAuthException extends HttpException {
                                                                                                                                                                                                                  -  constructor(message, error) {
                                                                                                                                                                                                                  -    super(createExceptionBody(message, error, HttpStatus.UNAUTHORIZED), HttpStatus.UNAUTHORIZED);
                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -export class WsAuthException extends WsException {
                                                                                                                                                                                                                  -  constructor(message, error) {
                                                                                                                                                                                                                  -    super(createExceptionBody(message, error, HttpStatus.UNAUTHORIZED));
                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  - - - - - - - -
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                  -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AboutComponent.html b/docs/components/AboutComponent.html deleted file mode 100644 index 1272a4d79..000000000 --- a/docs/components/AboutComponent.html +++ /dev/null @@ -1,906 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    File

                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    - libs/home/src/lib/containers/about/about.component.ts -

                                                                                                                                                                                                                    - - - -

                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    Implements

                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    - OnInit - OnDestroy - AfterViewInit -

                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    selectorngx-about
                                                                                                                                                                                                                    styleUrls./about.component.scss
                                                                                                                                                                                                                    templateUrl./about.component.html
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                    -constructor(elementRef: ElementRef) -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                    elementRef - ElementRef - - No -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                    -ngAfterViewInit() -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                    -ngOnDestroy() -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    - - - - ngOnInit - - - -
                                                                                                                                                                                                                    -ngOnInit() -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    - - - - renderCanvas - - - -
                                                                                                                                                                                                                    -renderCanvas() -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    - - - - Private - _sub - - - -
                                                                                                                                                                                                                    - _sub: Subscription - -
                                                                                                                                                                                                                    - Type : Subscription - -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    - - - - color - - - -
                                                                                                                                                                                                                    - color: string - -
                                                                                                                                                                                                                    - Type : string - -
                                                                                                                                                                                                                    - Default value : 'YlGnBu' -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    - - - - routeAnimationsElements - - - -
                                                                                                                                                                                                                    - routeAnimationsElements: - -
                                                                                                                                                                                                                    - Default value : ROUTE_ANIMATIONS_ELEMENTS -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    - - - - trianglifyCanvasRef - - - -
                                                                                                                                                                                                                    - trianglifyCanvasRef: ElementRef - -
                                                                                                                                                                                                                    - Type : ElementRef - -
                                                                                                                                                                                                                    - Decorators : -
                                                                                                                                                                                                                    - - @ViewChild('trianglify')
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    import { AfterViewInit, Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core';
                                                                                                                                                                                                                    -import { ROUTE_ANIMATIONS_ELEMENTS } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                    -import { fromEvent, Subscription } from 'rxjs';
                                                                                                                                                                                                                    -import { debounceTime, distinctUntilChanged, map } from 'rxjs/operators';
                                                                                                                                                                                                                    -import { untilDestroy } from '@ngx-starter-kit/ngx-utils';
                                                                                                                                                                                                                    -// import * as Trianglify from 'trianglify';
                                                                                                                                                                                                                    -declare var Trianglify: any;
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                    -  selector: 'ngx-about',
                                                                                                                                                                                                                    -  templateUrl: './about.component.html',
                                                                                                                                                                                                                    -  styleUrls: ['./about.component.scss'],
                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                    -export class AboutComponent implements OnInit, OnDestroy, AfterViewInit {
                                                                                                                                                                                                                    -  routeAnimationsElements = ROUTE_ANIMATIONS_ELEMENTS;
                                                                                                                                                                                                                    -  @ViewChild('trianglify')
                                                                                                                                                                                                                    -  trianglifyCanvasRef: ElementRef;
                                                                                                                                                                                                                    -  color = 'YlGnBu'; // 'random'
                                                                                                                                                                                                                    -  private _sub: Subscription;
                                                                                                                                                                                                                    -  constructor(private elementRef: ElementRef) {}
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  ngOnInit() {
                                                                                                                                                                                                                    -    fromEvent<Event>(window, 'resize')
                                                                                                                                                                                                                    -      .pipe(
                                                                                                                                                                                                                    -        debounceTime(100),
                                                                                                                                                                                                                    -        map(event => [(<Window>event.target).innerWidth, (<Window>event.target).innerHeight]),
                                                                                                                                                                                                                    -        distinctUntilChanged(),
                                                                                                                                                                                                                    -        untilDestroy(this),
                                                                                                                                                                                                                    -      )
                                                                                                                                                                                                                    -      .subscribe(res => {
                                                                                                                                                                                                                    -        // setTimeout(() => {this.renderCanvas() }, 1000)
                                                                                                                                                                                                                    -        this.renderCanvas();
                                                                                                                                                                                                                    -      });
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  ngOnDestroy() {}
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  ngAfterViewInit() {
                                                                                                                                                                                                                    -    setTimeout(() => {
                                                                                                                                                                                                                    -      this.renderCanvas();
                                                                                                                                                                                                                    -    }, 500);
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  renderCanvas() {
                                                                                                                                                                                                                    -    if (!this.elementRef.nativeElement.parentNode) {
                                                                                                                                                                                                                    -      return;
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -    const width = this.elementRef.nativeElement.children[0].offsetWidth;
                                                                                                                                                                                                                    -    // const height = this.elementRef.nativeElement.children[0].offsetHeight;
                                                                                                                                                                                                                    -    const height = this.elementRef.nativeElement.parentNode.offsetHeight;
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -    const pattern = Trianglify({
                                                                                                                                                                                                                    -      cell_size: width / 50 + Math.random() * 100,
                                                                                                                                                                                                                    -      variance: Math.random(),
                                                                                                                                                                                                                    -      x_colors: this.color,
                                                                                                                                                                                                                    -      // x_colors: 'Blues',
                                                                                                                                                                                                                    -      y_colors: 'match_x',
                                                                                                                                                                                                                    -      palette: Trianglify.colorbrewer,
                                                                                                                                                                                                                    -      color_space: 'lab',
                                                                                                                                                                                                                    -      color_function: false,
                                                                                                                                                                                                                    -      stroke_width: 1.51,
                                                                                                                                                                                                                    -      width: width,
                                                                                                                                                                                                                    -      height: height,
                                                                                                                                                                                                                    -      seed: Math.random(),
                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                    -    pattern.canvas(this.trianglifyCanvasRef.nativeElement);
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    <!--<div class="default-primary-header">-->
                                                                                                                                                                                                                    -  <!--<h1>About</h1>-->
                                                                                                                                                                                                                    -<!--if enabled, set parentNode.offsetHeight -80 in  renderCanvas()-->
                                                                                                                                                                                                                    -<!--</div>-->
                                                                                                                                                                                                                    -<div class="about-container">
                                                                                                                                                                                                                    -  <div class="gradient">
                                                                                                                                                                                                                    -    <div fxLayout="column">
                                                                                                                                                                                                                    -      <canvas #trianglify></canvas>
                                                                                                                                                                                                                    -      <h1>Angular Nx Material Starter Kit</h1>
                                                                                                                                                                                                                    -      <div class="actions">
                                                                                                                                                                                                                    -        <a [ngClass]="routeAnimationsElements"
                                                                                                                                                                                                                    -           mat-raised-button class="actions-main" color="primary" routerLink="../features">
                                                                                                                                                                                                                    -          Check Features
                                                                                                                                                                                                                    -        </a>
                                                                                                                                                                                                                    -        <a mat-raised-button class="actions-main" color="accent" routerLink="/dashboard"
                                                                                                                                                                                                                    -           [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                    -          Check Examples
                                                                                                                                                                                                                    -        </a>
                                                                                                                                                                                                                    -        <a mat-raised-button class="actions-main" routerLink="../settings"
                                                                                                                                                                                                                    -           [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                    -          Change Theme
                                                                                                                                                                                                                    -        </a>
                                                                                                                                                                                                                    -        <a mat-raised-button class="actions-main" color="warn" (click)="color= 'random'; renderCanvas()"
                                                                                                                                                                                                                    -           [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                    -          Refresh Background
                                                                                                                                                                                                                    -        </a>
                                                                                                                                                                                                                    -      </div>
                                                                                                                                                                                                                    -      <div class="get-started" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                    -        <h2>Getting started</h2>
                                                                                                                                                                                                                    -        <code>git clone
                                                                                                                                                                                                                    -          https://github.com/xmlking/ngx-starter-kit.git
                                                                                                                                                                                                                    -          my-project</code><br>
                                                                                                                                                                                                                    -        <code>cd my-project</code><br>
                                                                                                                                                                                                                    -        <code>npm install</code><br>
                                                                                                                                                                                                                    -        <code>npm start</code>
                                                                                                                                                                                                                    -      </div>
                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                    -</div>
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    - ./about.component.scss -

                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    @import '~@angular/material/theming';
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -canvas {
                                                                                                                                                                                                                    -  position: absolute;
                                                                                                                                                                                                                    -  min-width: 100%;
                                                                                                                                                                                                                    -  //min-height: 78vh;
                                                                                                                                                                                                                    -  //min-height: 100%;
                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -.about-container {
                                                                                                                                                                                                                    -  //display: block;
                                                                                                                                                                                                                    -  //padding: 1.2%;
                                                                                                                                                                                                                    -  position: relative;
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  h1 {
                                                                                                                                                                                                                    -    margin-top: 75px;
                                                                                                                                                                                                                    -    text-align: center;
                                                                                                                                                                                                                    -    font-size: 3em;
                                                                                                                                                                                                                    -    text-transform: uppercase;
                                                                                                                                                                                                                    -    z-index: 1;
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  .actions {
                                                                                                                                                                                                                    -    text-align: center;
                                                                                                                                                                                                                    -    margin: 50px;
                                                                                                                                                                                                                    -    z-index: 1;
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -    span {
                                                                                                                                                                                                                    -      display: inline-block;
                                                                                                                                                                                                                    -      font-weight: bold;
                                                                                                                                                                                                                    -      padding: 10px;
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -    a {
                                                                                                                                                                                                                    -      margin: 0 5px 10px 0;
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -      &.actions-main {
                                                                                                                                                                                                                    -        text-transform: uppercase;
                                                                                                                                                                                                                    -        padding: 3px 24px;
                                                                                                                                                                                                                    -      }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -      mat-icon {
                                                                                                                                                                                                                    -        position: relative;
                                                                                                                                                                                                                    -        top: 4px;
                                                                                                                                                                                                                    -      }
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  .get-started {
                                                                                                                                                                                                                    -    width: 700px;
                                                                                                                                                                                                                    -    //margin: 50px auto 0 auto;
                                                                                                                                                                                                                    -    margin: 0 auto 0 auto;
                                                                                                                                                                                                                    -    padding-bottom: 50px;
                                                                                                                                                                                                                    -    font-size: 1.2em;
                                                                                                                                                                                                                    -    letter-spacing: 0.01px;
                                                                                                                                                                                                                    -    overflow-wrap: break-word;
                                                                                                                                                                                                                    -    z-index: 1;
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -    code {
                                                                                                                                                                                                                    -      display: inline-block;
                                                                                                                                                                                                                    -      word-wrap: break-word;
                                                                                                                                                                                                                    -      white-space: normal;
                                                                                                                                                                                                                    -      margin: 0 0 10px 0;
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  &::before {
                                                                                                                                                                                                                    -    position: absolute;
                                                                                                                                                                                                                    -    top: 0;
                                                                                                                                                                                                                    -    left: 0;
                                                                                                                                                                                                                    -    bottom: 0;
                                                                                                                                                                                                                    -    right: 0;
                                                                                                                                                                                                                    -    background-size: cover;
                                                                                                                                                                                                                    -    opacity: 0.7;
                                                                                                                                                                                                                    -    content: '';
                                                                                                                                                                                                                    -    z-index: 0;
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  .gradient {
                                                                                                                                                                                                                    -    &::before {
                                                                                                                                                                                                                    -      position: absolute;
                                                                                                                                                                                                                    -      top: 60%;
                                                                                                                                                                                                                    -      left: 0;
                                                                                                                                                                                                                    -      bottom: 0;
                                                                                                                                                                                                                    -      right: 0;
                                                                                                                                                                                                                    -      content: '';
                                                                                                                                                                                                                    -      z-index: 0;
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -  .container {
                                                                                                                                                                                                                    -    position: relative;
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -@media ($mat-small) {
                                                                                                                                                                                                                    -  .about-container {
                                                                                                                                                                                                                    -    .get-started {
                                                                                                                                                                                                                    -      width: auto;
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -@media ($mat-xsmall) {
                                                                                                                                                                                                                    -  .about-container {
                                                                                                                                                                                                                    -    h1 {
                                                                                                                                                                                                                    -      line-height: 1em;
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -    .actions {
                                                                                                                                                                                                                    -      margin: 40px 0 0 0;
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -      span {
                                                                                                                                                                                                                    -        padding: 0 0 10px 0;
                                                                                                                                                                                                                    -      }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -      a {
                                                                                                                                                                                                                    -        width: 100%;
                                                                                                                                                                                                                    -      }
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -    .get-started {
                                                                                                                                                                                                                    -      width: auto;
                                                                                                                                                                                                                    -      margin: 40px auto 0 auto;
                                                                                                                                                                                                                    -      padding-bottom: 40px;
                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    -

                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                    -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AccountDetailComponent.html b/docs/components/AccountDetailComponent.html deleted file mode 100644 index c4c225f50..000000000 --- a/docs/components/AccountDetailComponent.html +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      File

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      - libs/grid/src/lib/components/account-detail/account-detail.component.ts -

                                                                                                                                                                                                                      - - - -

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      Implements

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      - OnInit - OnDestroy -

                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      selectorngx-account-detail
                                                                                                                                                                                                                      styleUrls./account-detail.component.scss
                                                                                                                                                                                                                      templateUrl./account-detail.component.html
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                      -constructor(accountService: AccountService, route: ActivatedRoute) -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                      accountService - AccountService - - No -
                                                                                                                                                                                                                      route - ActivatedRoute - - No -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                      -ngOnDestroy() -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      - - - - ngOnInit - - - -
                                                                                                                                                                                                                      -ngOnInit() -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      - - - - account - - - -
                                                                                                                                                                                                                      - account: Account - -
                                                                                                                                                                                                                      - Type : Account - -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      - - - - animationTrigger$ - - - -
                                                                                                                                                                                                                      - animationTrigger$: - -
                                                                                                                                                                                                                      - Default value : new BehaviorSubject<string>('') -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      - - - - sub - - - -
                                                                                                                                                                                                                      - sub: Subscription - -
                                                                                                                                                                                                                      - Type : Subscription - -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      import { Component, OnDestroy, OnInit } from '@angular/core';
                                                                                                                                                                                                                      -import { ActivatedRoute } from '@angular/router';
                                                                                                                                                                                                                      -import { BehaviorSubject, Subscription } from 'rxjs';
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -import { AccountService } from '../../services/account.service';
                                                                                                                                                                                                                      -import { Account } from '../../models/account.model';
                                                                                                                                                                                                                      -import { fadeAnimation } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                      -  selector: 'ngx-account-detail',
                                                                                                                                                                                                                      -  templateUrl: './account-detail.component.html',
                                                                                                                                                                                                                      -  styleUrls: ['./account-detail.component.scss'],
                                                                                                                                                                                                                      -  animations: [fadeAnimation],
                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                      -export class AccountDetailComponent implements OnInit, OnDestroy {
                                                                                                                                                                                                                      -  account: Account;
                                                                                                                                                                                                                      -  sub: Subscription;
                                                                                                                                                                                                                      -  animationTrigger$ = new BehaviorSubject<string>('');
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -  constructor(private accountService: AccountService, private route: ActivatedRoute) {}
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -  ngOnInit() {
                                                                                                                                                                                                                      -    this.sub = this.route.params.subscribe(params => {
                                                                                                                                                                                                                      -      this.accountService.getById(params['id']).subscribe(data => {
                                                                                                                                                                                                                      -        this.animationTrigger$.next(params['id']);
                                                                                                                                                                                                                      -        this.account = data;
                                                                                                                                                                                                                      -      });
                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -  ngOnDestroy() {
                                                                                                                                                                                                                      -    this.sub.unsubscribe();
                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      <mat-card [@fadeAnimation]="animationTrigger$ | async">
                                                                                                                                                                                                                      -  <mat-card-header>
                                                                                                                                                                                                                      -    <mat-card-title><h3>Selected Account</h3></mat-card-title>
                                                                                                                                                                                                                      -  </mat-card-header>
                                                                                                                                                                                                                      -  <mat-divider></mat-divider>
                                                                                                                                                                                                                      -  <mat-card-content>
                                                                                                                                                                                                                      -    <mat-list role="list">
                                                                                                                                                                                                                      -      <mat-list-item *ngFor="let entry of account | keyvalue" role="listitem">
                                                                                                                                                                                                                      -        <div>
                                                                                                                                                                                                                      -          <span>{{entry.key}}:</span><span>{{ entry.value | json }}</span>
                                                                                                                                                                                                                      -        </div>
                                                                                                                                                                                                                      -      </mat-list-item>
                                                                                                                                                                                                                      -    </mat-list>
                                                                                                                                                                                                                      -  </mat-card-content>
                                                                                                                                                                                                                      -</mat-card>
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      - ./account-detail.component.scss -

                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                      -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AccountEditComponent.html b/docs/components/AccountEditComponent.html deleted file mode 100644 index a43999d2d..000000000 --- a/docs/components/AccountEditComponent.html +++ /dev/null @@ -1,1325 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        File

                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        - libs/grid/src/lib/components/account-edit/account-edit.component.ts -

                                                                                                                                                                                                                        - - -

                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        Extends

                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        - EntityFormComponent -

                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        selectorngx-account-edit
                                                                                                                                                                                                                        styleUrls./account-edit.component.scss
                                                                                                                                                                                                                        templateUrl./account-edit.component.html
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                        -constructor(data: literal type, dialogRef: MatDialogRef, fb: FormBuilder) -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                        data - literal type - - No -
                                                                                                                                                                                                                        dialogRef - MatDialogRef<AccountEditComponent> - - No -
                                                                                                                                                                                                                        fb - FormBuilder - - No -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - buildForm - - - -
                                                                                                                                                                                                                        -buildForm(item: Account) -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                        item - Account - - No -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - Private - filterStates - - - -
                                                                                                                                                                                                                        - - filterStates(name: string) -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                        name - string - - No -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - Returns : any - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - ngOnInit - - - -
                                                                                                                                                                                                                        -ngOnInit() -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - Abstract - buildForm - - - -
                                                                                                                                                                                                                        - - buildForm(entity: TEntity) -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Inherited from EntityFormComponent -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Defined in EntityFormComponent:19
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                        entity - TEntity - - No -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - Returns : any - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - ngOnInit - - - -
                                                                                                                                                                                                                        -ngOnInit() -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Inherited from EntityFormComponent -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Defined in EntityFormComponent:21
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - submit - - - -
                                                                                                                                                                                                                        -submit() -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Inherited from EntityFormComponent -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Defined in EntityFormComponent:25
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - Public - data - - - -
                                                                                                                                                                                                                        - data: literal type - -
                                                                                                                                                                                                                        - Type : literal type - -
                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                        - - @Inject(MAT_DIALOG_DATA)
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - Public - dialogRef - - - -
                                                                                                                                                                                                                        - dialogRef: MatDialogRef<AccountEditComponent> - -
                                                                                                                                                                                                                        - Type : MatDialogRef<AccountEditComponent> - -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - filteredStates - - - -
                                                                                                                                                                                                                        - filteredStates: Observable<string[]> - -
                                                                                                                                                                                                                        - Type : Observable<string[]> - -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - Readonly - genderOptions - - - -
                                                                                                                                                                                                                        - genderOptions: - -
                                                                                                                                                                                                                        - Default value : Object.keys(Gender) -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - Readonly - maxDate - - - -
                                                                                                                                                                                                                        - maxDate: - -
                                                                                                                                                                                                                        - Default value : moment() -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - Readonly - minDate - - - -
                                                                                                                                                                                                                        - minDate: - -
                                                                                                                                                                                                                        - Default value : moment().subtract(100, 'years') -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - Readonly - states - - - -
                                                                                                                                                                                                                        - states: string[] - -
                                                                                                                                                                                                                        - Type : string[] - -
                                                                                                                                                                                                                        - Default value : states -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - entity - - - -
                                                                                                                                                                                                                        - entity: TEntity - -
                                                                                                                                                                                                                        - Type : TEntity - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Inherited from EntityFormComponent -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Defined in EntityFormComponent:8
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - entityForm - - - -
                                                                                                                                                                                                                        - entityForm: FormGroup - -
                                                                                                                                                                                                                        - Type : FormGroup - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Inherited from EntityFormComponent -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Defined in EntityFormComponent:9
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        - - - - title - - - -
                                                                                                                                                                                                                        - title: string - -
                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Inherited from EntityFormComponent -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Defined in EntityFormComponent:7
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        import { Component, Inject } from '@angular/core';
                                                                                                                                                                                                                        -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
                                                                                                                                                                                                                        -import { FormBuilder, Validators } from '@angular/forms';
                                                                                                                                                                                                                        -import { map, startWith } from 'rxjs/operators';
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -import { Account, Gender } from '../../models/account.model';
                                                                                                                                                                                                                        -import { states } from './states';
                                                                                                                                                                                                                        -import { Observable } from 'rxjs';
                                                                                                                                                                                                                        -import { EntityFormComponent } from '@ngx-starter-kit/shared';
                                                                                                                                                                                                                        -import * as moment from 'moment';
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                        -  selector: 'ngx-account-edit',
                                                                                                                                                                                                                        -  templateUrl: './account-edit.component.html',
                                                                                                                                                                                                                        -  styleUrls: ['./account-edit.component.scss'],
                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                        -export class AccountEditComponent extends EntityFormComponent<Account> {
                                                                                                                                                                                                                        -  readonly genderOptions = Object.keys(Gender);
                                                                                                                                                                                                                        -  readonly states: string[] = states;
                                                                                                                                                                                                                        -  filteredStates: Observable<string[]>;
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -  readonly maxDate = moment();
                                                                                                                                                                                                                        -  readonly minDate = moment().subtract(100, 'years');
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -  constructor(
                                                                                                                                                                                                                        -    @Inject(MAT_DIALOG_DATA) public data: { title: string; payload: Account },
                                                                                                                                                                                                                        -    public dialogRef: MatDialogRef<AccountEditComponent>,
                                                                                                                                                                                                                        -    private fb: FormBuilder,
                                                                                                                                                                                                                        -  ) {
                                                                                                                                                                                                                        -    super(data, dialogRef);
                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -  /* Optional */
                                                                                                                                                                                                                        -  // tslint:disable-next-line
                                                                                                                                                                                                                        -  ngOnInit() {
                                                                                                                                                                                                                        -    super.ngOnInit();
                                                                                                                                                                                                                        -    this.filteredStates = this.entityForm.get('address.state').valueChanges.pipe(
                                                                                                                                                                                                                        -      startWith(''),
                                                                                                                                                                                                                        -      map(state => (state ? this.filterStates(state) : this.states.slice())),
                                                                                                                                                                                                                        -    );
                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -  private filterStates(name: string) {
                                                                                                                                                                                                                        -    return this.states.filter(state => state.toLowerCase().indexOf(name.toLowerCase()) === 0);
                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -  buildForm(item: Account) {
                                                                                                                                                                                                                        -    // this.entityForm = this.fb.group(item);
                                                                                                                                                                                                                        -    this.entityForm = this.fb.group(
                                                                                                                                                                                                                        -      {
                                                                                                                                                                                                                        -        first_name: [item.first_name || '', Validators.required],
                                                                                                                                                                                                                        -        last_name: [item.last_name || '', Validators.required],
                                                                                                                                                                                                                        -        gender: [item.gender || '', Validators.required],
                                                                                                                                                                                                                        -        dob: [item.dob, Validators.required],
                                                                                                                                                                                                                        -        email: [item.email || '', [Validators.required, Validators.email]],
                                                                                                                                                                                                                        -        phone: [item.phone || '', [Validators.required, Validators.minLength(11)]],
                                                                                                                                                                                                                        -        company: [item.company || '', Validators.required],
                                                                                                                                                                                                                        -        address: this.fb.group({
                                                                                                                                                                                                                        -          street: [item.address.street || '', Validators.required],
                                                                                                                                                                                                                        -          city: [item.address.city || '', Validators.required],
                                                                                                                                                                                                                        -          state: [item.address.state || '', Validators.required],
                                                                                                                                                                                                                        -          zip: [item.address.zip || '', Validators.required],
                                                                                                                                                                                                                        -        }),
                                                                                                                                                                                                                        -      },
                                                                                                                                                                                                                        -      { updateOn: 'blur' },
                                                                                                                                                                                                                        -    );
                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        <h1 mat-dialog-title cdkDrag cdkDragHandle  cdkDragRootElement=".mat-dialog-container" style="cursor: move">{{title}}</h1>
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -<form [formGroup]="entityForm" (ngSubmit)="submit()">
                                                                                                                                                                                                                        -  <mat-dialog-content>
                                                                                                                                                                                                                        -    <div fxLayout="column" fxLayout.gt-sm="row" fxLayoutGap.gt-sm="24px">
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          type="email"
                                                                                                                                                                                                                        -          name="email"
                                                                                                                                                                                                                        -          formControlName="email"
                                                                                                                                                                                                                        -          placeholder="Email"
                                                                                                                                                                                                                        -          required>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          name="company"
                                                                                                                                                                                                                        -          formControlName="company"
                                                                                                                                                                                                                        -          placeholder="Company / Organization">
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                        -    <div fxLayout="column" fxLayout.gt-sm="row" fxLayoutGap.gt-sm="24px">
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          name="first_name"
                                                                                                                                                                                                                        -          formControlName="first_name"
                                                                                                                                                                                                                        -          placeholder="Fisrt Name"
                                                                                                                                                                                                                        -          required>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          name="last_name"
                                                                                                                                                                                                                        -          formControlName="last_name"
                                                                                                                                                                                                                        -          placeholder="Last Name"
                                                                                                                                                                                                                        -          required>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                        -    <div fxLayout="column" fxLayout.gt-sm="row" fxLayoutGap.gt-sm="24px">
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          name="dob"
                                                                                                                                                                                                                        -          formControlName="dob"
                                                                                                                                                                                                                        -          [matDatepicker]="picker"
                                                                                                                                                                                                                        -          placeholder="Date of Birth"
                                                                                                                                                                                                                        -          [min]="minDate" [max]="maxDate"
                                                                                                                                                                                                                        -          required>
                                                                                                                                                                                                                        -        <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
                                                                                                                                                                                                                        -        <mat-datepicker #picker></mat-datepicker>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <mat-select name="gender"
                                                                                                                                                                                                                        -                    formControlName="gender"
                                                                                                                                                                                                                        -                    placeholder="Gender">
                                                                                                                                                                                                                        -          <mat-option *ngFor="let gender of genderOptions" [value]="gender">
                                                                                                                                                                                                                        -            {{ gender}}
                                                                                                                                                                                                                        -          </mat-option>
                                                                                                                                                                                                                        -        </mat-select>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          type="tel"
                                                                                                                                                                                                                        -          name="phone"
                                                                                                                                                                                                                        -          formControlName="phone"
                                                                                                                                                                                                                        -          placeholder="Telephone"
                                                                                                                                                                                                                        -          required>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -    <div fxLayout="column" fxLayout.gt-sm="row" fxLayoutGap.gt-sm="24px" formGroupName="address">
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          name="street"
                                                                                                                                                                                                                        -          formControlName="street"
                                                                                                                                                                                                                        -          placeholder="Street"
                                                                                                                                                                                                                        -          required>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                        -    <div fxLayout="column" fxLayout.gt-sm="row" fxLayoutGap.gt-sm="24px" formGroupName="address">
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          name="city"
                                                                                                                                                                                                                        -          formControlName="city"
                                                                                                                                                                                                                        -          placeholder="City"
                                                                                                                                                                                                                        -          required>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input matInput
                                                                                                                                                                                                                        -               name="state"
                                                                                                                                                                                                                        -               formControlName="state"
                                                                                                                                                                                                                        -               placeholder="State"
                                                                                                                                                                                                                        -               aria-label="State"
                                                                                                                                                                                                                        -               [matAutocomplete]="auto">
                                                                                                                                                                                                                        -        <mat-autocomplete #auto="matAutocomplete">
                                                                                                                                                                                                                        -          <mat-option *ngFor="let state of filteredStates | async" [value]="state">
                                                                                                                                                                                                                        -            {{ state }}
                                                                                                                                                                                                                        -          </mat-option>
                                                                                                                                                                                                                        -        </mat-autocomplete>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -      <mat-form-field fxFlex>
                                                                                                                                                                                                                        -        <input
                                                                                                                                                                                                                        -          matInput
                                                                                                                                                                                                                        -          name="zip"
                                                                                                                                                                                                                        -          formControlName="zip"
                                                                                                                                                                                                                        -          placeholder="Zip / Postal Code"
                                                                                                                                                                                                                        -          required>
                                                                                                                                                                                                                        -      </mat-form-field>
                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                        -  </mat-dialog-content>
                                                                                                                                                                                                                        -  <mat-dialog-actions fxLayout="row" fxLayoutAlign="space-between center">
                                                                                                                                                                                                                        -    <button mat-button color="warn" type="button" [mat-dialog-close]="false">Cancel</button>
                                                                                                                                                                                                                        -    <button mat-raised-button color="primary" [disabled]="entityForm.invalid">Save</button>
                                                                                                                                                                                                                        -  </mat-dialog-actions>
                                                                                                                                                                                                                        -</form>
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        - ./account-edit.component.scss -

                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                        -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AccountsGridListComponent.html b/docs/components/AccountsGridListComponent.html deleted file mode 100644 index b65e4512a..000000000 --- a/docs/components/AccountsGridListComponent.html +++ /dev/null @@ -1,1070 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          File

                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          - libs/grid/src/lib/containers/accounts-grid-list/accounts-grid-list.component.ts -

                                                                                                                                                                                                                          - - - -

                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          Implements

                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          - OnInit - OnDestroy -

                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          selectorngx-accounts-grid-list
                                                                                                                                                                                                                          styleUrls./accounts-grid-list.component.scss
                                                                                                                                                                                                                          templateUrl./accounts-grid-list.component.html
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                          -constructor(router: Router, accountService: RandomAccountService) -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                          router - Router - - No -
                                                                                                                                                                                                                          accountService - RandomAccountService - - No -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - applyFilter - - - -
                                                                                                                                                                                                                          -applyFilter(filterValue: string) -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                          filterValue - string - - No -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                          -ngOnDestroy() -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - ngOnInit - - - -
                                                                                                                                                                                                                          -ngOnInit() -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - Async - onClick - - - -
                                                                                                                                                                                                                          - - onClick(account: Partial) -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                          account - Partial<RandomAccount> - - No -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                          - Properties -

                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - accountDataSource - - - -
                                                                                                                                                                                                                          - accountDataSource: MatTableDataSource<Partial<RandomAccount>> - -
                                                                                                                                                                                                                          - Type : MatTableDataSource<Partial<RandomAccount>> - -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - crumbs - - - -
                                                                                                                                                                                                                          - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                          - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                          - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Grid', link: '/dashboard/grid' }, - { name: 'Grid List' }, - ] -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - Public - gridView - - - -
                                                                                                                                                                                                                          - gridView: MatButtonToggleGroup - -
                                                                                                                                                                                                                          - Type : MatButtonToggleGroup - -
                                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                                          - - @ViewChild('gridView')
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - paginator - - - -
                                                                                                                                                                                                                          - paginator: MatPaginator - -
                                                                                                                                                                                                                          - Type : MatPaginator - -
                                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                                          - - @ViewChild(MatPaginator)
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - renderData - - - -
                                                                                                                                                                                                                          - renderData: BehaviorSubject<Partial[]> - -
                                                                                                                                                                                                                          - Type : BehaviorSubject<Partial[]> - -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          - - - - selection - - - -
                                                                                                                                                                                                                          - selection: - -
                                                                                                                                                                                                                          - Default value : new SelectionModel<Partial<RandomAccount>>(false, []) -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
                                                                                                                                                                                                                          -import { Router } from '@angular/router';
                                                                                                                                                                                                                          -import { BehaviorSubject } from 'rxjs';
                                                                                                                                                                                                                          -import { MatButtonToggleGroup, MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
                                                                                                                                                                                                                          -import { SelectionModel } from '@angular/cdk/collections';
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -import { RandomAccount, RandomAccountService } from '../../services/random-account.service';
                                                                                                                                                                                                                          -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                          -  selector: 'ngx-accounts-grid-list',
                                                                                                                                                                                                                          -  templateUrl: './accounts-grid-list.component.html',
                                                                                                                                                                                                                          -  styleUrls: ['./accounts-grid-list.component.scss'],
                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                          -export class AccountsGridListComponent implements OnInit, OnDestroy {
                                                                                                                                                                                                                          -  @ViewChild('gridView')
                                                                                                                                                                                                                          -  public gridView: MatButtonToggleGroup;
                                                                                                                                                                                                                          -  @ViewChild(MatPaginator)
                                                                                                                                                                                                                          -  paginator: MatPaginator;
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                          -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                          -    { name: 'Grid', link: '/dashboard/grid' },
                                                                                                                                                                                                                          -    { name: 'Grid List' },
                                                                                                                                                                                                                          -  ];
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  accountDataSource: MatTableDataSource<Partial<RandomAccount>>;
                                                                                                                                                                                                                          -  renderData: BehaviorSubject<Partial<RandomAccount>[]>;
                                                                                                                                                                                                                          -  selection = new SelectionModel<Partial<RandomAccount>>(false, []);
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  constructor(private router: Router, private accountService: RandomAccountService) {}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  ngOnInit() {
                                                                                                                                                                                                                          -    this.accountService
                                                                                                                                                                                                                          -      .getAll()
                                                                                                                                                                                                                          -      .toPromise()
                                                                                                                                                                                                                          -      .then(accounts => {
                                                                                                                                                                                                                          -        this.accountDataSource = new MatTableDataSource<Partial<RandomAccount>>(accounts);
                                                                                                                                                                                                                          -        this.accountDataSource.paginator = this.paginator;
                                                                                                                                                                                                                          -        this.renderData = this.accountDataSource.connect();
                                                                                                                                                                                                                          -      });
                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  ngOnDestroy() {}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  applyFilter(filterValue: string) {
                                                                                                                                                                                                                          -    filterValue = filterValue.trim(); // Remove whitespace
                                                                                                                                                                                                                          -    filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
                                                                                                                                                                                                                          -    this.accountDataSource.filter = filterValue;
                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  async onClick(account: Partial<RandomAccount>) {
                                                                                                                                                                                                                          -    this.selection.toggle(account);
                                                                                                                                                                                                                          -    const _account = await this.accountService.getById(account.id.value).toPromise();
                                                                                                                                                                                                                          -    console.log(_account);
                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          <ngx-breadcrumbs title="Grid" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -<mat-card class="mat-elevation-z8">
                                                                                                                                                                                                                          -  <mat-toolbar>
                                                                                                                                                                                                                          -    <!--<div>Accounts | </div> -->
                                                                                                                                                                                                                          -    <mat-form-field fxFlex>
                                                                                                                                                                                                                          -      <input matInput #filter (keyup)="applyFilter($event.target.value)">
                                                                                                                                                                                                                          -      <mat-placeholder>
                                                                                                                                                                                                                          -        <mat-icon>search</mat-icon>
                                                                                                                                                                                                                          -        Filter
                                                                                                                                                                                                                          -      </mat-placeholder>
                                                                                                                                                                                                                          -    </mat-form-field>
                                                                                                                                                                                                                          -    <mat-button-toggle-group #gridView="matButtonToggleGroup" style="margin-left: 16px">
                                                                                                                                                                                                                          -      <mat-button-toggle value='list'>
                                                                                                                                                                                                                          -        <mat-icon>view_list</mat-icon>
                                                                                                                                                                                                                          -      </mat-button-toggle>
                                                                                                                                                                                                                          -      <mat-button-toggle value='grid' checked>
                                                                                                                                                                                                                          -        <mat-icon>view_comfy</mat-icon>
                                                                                                                                                                                                                          -      </mat-button-toggle>
                                                                                                                                                                                                                          -    </mat-button-toggle-group>
                                                                                                                                                                                                                          -  </mat-toolbar>
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  <ng-container *ngIf="gridView.value === 'grid'; then grid; else list">
                                                                                                                                                                                                                          -  </ng-container>
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  <mat-paginator #paginator [pageSize]="6" [pageSizeOptions]="[6, 9, 12, 18]"
                                                                                                                                                                                                                          -                 [showFirstLastButtons]="true"></mat-paginator>
                                                                                                                                                                                                                          -</mat-card>
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -<ng-template #grid>
                                                                                                                                                                                                                          -  <mat-grid-list cols="3" rowHeight="250px" gutterSize="10px" class="fix-height">
                                                                                                                                                                                                                          -    <mat-grid-tile *ngFor="let account of renderData | async">
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -      <!--<mat-card (click)="onClick(account)" [class.active]="selection.isSelected(account)">-->
                                                                                                                                                                                                                          -      <!--<mat-card-header>-->
                                                                                                                                                                                                                          -      <!--<img mat-card-avatar src="https://source.unsplash.com/random/200x200">-->
                                                                                                                                                                                                                          -      <!--<mat-card-title>{{ account.first_name }}</mat-card-title>-->
                                                                                                                                                                                                                          -      <!--<mat-card-subtitle>{{ account.last_name }}</mat-card-subtitle>-->
                                                                                                                                                                                                                          -      <!--</mat-card-header>-->
                                                                                                                                                                                                                          -      <!--&lt;!&ndash;<img mat-card-image src="https://source.unsplash.com/random/800x600">&ndash;&gt;-->
                                                                                                                                                                                                                          -      <!--&lt;!&ndash;<mat-card-content>&ndash;&gt;-->
                                                                                                                                                                                                                          -      <!--&lt;!&ndash;<p>Something pretty ... </p>&ndash;&gt;-->
                                                                                                                                                                                                                          -      <!--&lt;!&ndash;</mat-card-content>&ndash;&gt;-->
                                                                                                                                                                                                                          -      <!--</mat-card>-->
                                                                                                                                                                                                                          -      <mat-card (click)="onClick(account)" [class.active]="selection.isSelected(account)">
                                                                                                                                                                                                                          -        <mat-card-header>
                                                                                                                                                                                                                          -          <!--<img mat-card-avatar src="https://source.unsplash.com/random/200x200">-->
                                                                                                                                                                                                                          -          <img mat-card-avatar src="{{account.picture.thumbnail}}">
                                                                                                                                                                                                                          -          <mat-card-title>{{ account.name.title }} {{ account.name.first }} {{ account.name.last }}</mat-card-title>
                                                                                                                                                                                                                          -          <mat-card-subtitle> {{ account.email }}</mat-card-subtitle>
                                                                                                                                                                                                                          -        </mat-card-header>
                                                                                                                                                                                                                          -        <!--<img mat-card-image src="{{account.picture.medium}}">-->
                                                                                                                                                                                                                          -        <mat-card-content>
                                                                                                                                                                                                                          -          Address: {{account.location.street}}, {{account.location.city}}, {{account.location.state}}
                                                                                                                                                                                                                          -          {{account.location.zip}}<br>
                                                                                                                                                                                                                          -          Date of Birth: {{account.dob | amCalendar}}<br>
                                                                                                                                                                                                                          -          email: {{account.email}}<br>
                                                                                                                                                                                                                          -          phone: {{account.phone}}, cell: {{account.cell}}<br>
                                                                                                                                                                                                                          -        </mat-card-content>
                                                                                                                                                                                                                          -        <mat-card-actions>
                                                                                                                                                                                                                          -          <button mat-button>LIKE</button>
                                                                                                                                                                                                                          -          <button mat-button>SHARE</button>
                                                                                                                                                                                                                          -        </mat-card-actions>
                                                                                                                                                                                                                          -      </mat-card>
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -    </mat-grid-tile>
                                                                                                                                                                                                                          -  </mat-grid-list>
                                                                                                                                                                                                                          -</ng-template>
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -<ng-template #list>
                                                                                                                                                                                                                          -  <mat-list class="fix-height">
                                                                                                                                                                                                                          -    <ng-container *ngFor="let accounts of renderData | async | groupBy:'gender'">
                                                                                                                                                                                                                          -      <h3 mat-subheader>{{accounts.key}}</h3>
                                                                                                                                                                                                                          -      <mat-list-item *ngFor="let account of accounts.value; let last = last" (click)="onClick(account)"
                                                                                                                                                                                                                          -                     [class.active]="selection.isSelected(account)">
                                                                                                                                                                                                                          -        <mat-icon matListIcon>{{ account.gender == 'male' ? 'person' : 'face'}}</mat-icon>
                                                                                                                                                                                                                          -        <!--<img mat-list-avatar src="https://source.unsplash.com/random/200x200">-->
                                                                                                                                                                                                                          -        <img mat-card-avatar src="{{account.picture.thumbnail}}">
                                                                                                                                                                                                                          -        <h3 matLine> {{account.name.first}} {{account.name.last}} </h3>
                                                                                                                                                                                                                          -        <p matLine><span> {{account.email}} </span><span class="subline">-- {{account.phone}} </span></p>
                                                                                                                                                                                                                          -        <mat-divider [inset]="true" *ngIf="!last"></mat-divider>
                                                                                                                                                                                                                          -      </mat-list-item>
                                                                                                                                                                                                                          -      <mat-divider></mat-divider>
                                                                                                                                                                                                                          -    </ng-container>
                                                                                                                                                                                                                          -  </mat-list>
                                                                                                                                                                                                                          -</ng-template>
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          - ./accounts-grid-list.component.scss -

                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          :host {
                                                                                                                                                                                                                          -  display: block;
                                                                                                                                                                                                                          -  padding: 1.5%;
                                                                                                                                                                                                                          -  position: relative;
                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -.fix-height {
                                                                                                                                                                                                                          -  position: relative;
                                                                                                                                                                                                                          -  top: 0;
                                                                                                                                                                                                                          -  max-height: 52vh;
                                                                                                                                                                                                                          -  margin: auto;
                                                                                                                                                                                                                          -  padding: 0;
                                                                                                                                                                                                                          -  overflow: auto;
                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -@import '~@angular/material/theming';
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -/* Toolbar
                                                                                                                                                                                                                          --------------------------------------------------- */
                                                                                                                                                                                                                          -mat-toolbar {
                                                                                                                                                                                                                          -  padding: 8px 24px 0;
                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -mat-form-field {
                                                                                                                                                                                                                          -  font-size: 16px;
                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -/* Card
                                                                                                                                                                                                                          --------------------------------------------------- */
                                                                                                                                                                                                                          -mat-grid-tile {
                                                                                                                                                                                                                          -  mat-card {
                                                                                                                                                                                                                          -    width: calc(100% - 70px);
                                                                                                                                                                                                                          -    height: calc(100% - 70px);
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -    @include mat-elevation-transition;
                                                                                                                                                                                                                          -    @include mat-elevation(2);
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -    &:hover {
                                                                                                                                                                                                                          -      cursor: pointer;
                                                                                                                                                                                                                          -      @include mat-elevation(6);
                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -    &.active {
                                                                                                                                                                                                                          -      @include mat-elevation(8);
                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -    .mat-card-title,
                                                                                                                                                                                                                          -    .mat-card-subtitle {
                                                                                                                                                                                                                          -      white-space: nowrap;
                                                                                                                                                                                                                          -      width: 30em;
                                                                                                                                                                                                                          -      overflow: hidden;
                                                                                                                                                                                                                          -      text-overflow: ellipsis;
                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -    &.mat-bg-primary {
                                                                                                                                                                                                                          -      background: #3f51b5 !important;
                                                                                                                                                                                                                          -      color: #fff !important;
                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                          -    &.mat-bg-accent {
                                                                                                                                                                                                                          -      background-color: #ffc107;
                                                                                                                                                                                                                          -      color: #000;
                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                          -    &.mat-bg-warn {
                                                                                                                                                                                                                          -      background-color: #f44336;
                                                                                                                                                                                                                          -      color: #fff;
                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -/* List
                                                                                                                                                                                                                          --------------------------------------------------- */
                                                                                                                                                                                                                          -mat-list-item {
                                                                                                                                                                                                                          -  //position: relative; // For mdRipple
                                                                                                                                                                                                                          -  &:hover {
                                                                                                                                                                                                                          -    cursor: pointer;
                                                                                                                                                                                                                          -    background: #f5f5f5;
                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                          -  &.active {
                                                                                                                                                                                                                          -    background: #eaeaea;
                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -  .subline {
                                                                                                                                                                                                                          -    color: #999999;
                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -//@mixin md-icon-size($size: 24px) {
                                                                                                                                                                                                                          -//  font-size: $size;
                                                                                                                                                                                                                          -//  height: $size;
                                                                                                                                                                                                                          -//  width: $size;
                                                                                                                                                                                                                          -//}
                                                                                                                                                                                                                          -//
                                                                                                                                                                                                                          -//.mat-icon {
                                                                                                                                                                                                                          -//  @include md-icon-size(16px);
                                                                                                                                                                                                                          -//}
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                          -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AccountsTableComponent.html b/docs/components/AccountsTableComponent.html deleted file mode 100644 index 84e491ecd..000000000 --- a/docs/components/AccountsTableComponent.html +++ /dev/null @@ -1,3130 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            File

                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            - libs/grid/src/lib/containers/accounts-table/accounts-table.component.ts -

                                                                                                                                                                                                                            - - -

                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Extends

                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            - EntitiesComponent -

                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            selectorngx-accounts-table
                                                                                                                                                                                                                            styleUrls../../../../../shared/src/lib/containers/entity/entity.component.scss
                                                                                                                                                                                                                            templateUrl../../../../../shared/src/lib/containers/entity/entity.component.html
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                            -constructor(accountService: AccountService, store: Store, dialog: MatDialog, snack: MatSnackBar, confirmService: AppConfirmService) -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            accountService - AccountService - - No -
                                                                                                                                                                                                                            store - Store - - No -
                                                                                                                                                                                                                            dialog - MatDialog - - No -
                                                                                                                                                                                                                            snack - MatSnackBar - - No -
                                                                                                                                                                                                                            confirmService - AppConfirmService - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - delete - - - -
                                                                                                                                                                                                                            -delete(item: Account) -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            item - Account - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - getNewEntity - - - -
                                                                                                                                                                                                                            -getNewEntity() -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : Account - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - openPopUp - - - -
                                                                                                                                                                                                                            -openPopUp(entity: Account) -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            openPopUp() is used in entity.component.html -if you want different implantation (e.g., add-new-line instead of popup, inline edit) -make a copy of entity.component.html as .component.html and implement your own add/edit logic.

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            entity - Account - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - showDetails - - - -
                                                                                                                                                                                                                            -showDetails(entity: Account) -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            entity - Account - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - applyFilter - - - -
                                                                                                                                                                                                                            -applyFilter(filterValue: string) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:151
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            filterValue - string - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - delete - - - -
                                                                                                                                                                                                                            -delete(item: TEntity) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:88
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            item - TEntity - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Optional - filterPredicate - - - -
                                                                                                                                                                                                                            -filterPredicate(entity: TEntity, filter: string) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:37
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            entity - TEntity - - No -
                                                                                                                                                                                                                            filter - string - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : boolean - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - getById - - - -
                                                                                                                                                                                                                            -getById(id: number) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:84
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            id - number - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - getData - - - -
                                                                                                                                                                                                                            -getData() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:104
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Overwrite this method, to get the data your way.

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : Observable<TEntity[]> - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Optional - getNewEntity - - - -
                                                                                                                                                                                                                            -getNewEntity() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:36
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : TEntity - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - getRouteAnimation - - - -
                                                                                                                                                                                                                            -getRouteAnimation(outlet) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:183
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameOptional
                                                                                                                                                                                                                            outlet - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - isAllFilteredRowsSelected - - - -
                                                                                                                                                                                                                            -isAllFilteredRowsSelected() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:121
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Whether all filtered rows are selected.

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - isMasterToggleChecked - - - -
                                                                                                                                                                                                                            -isMasterToggleChecked() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:126
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Whether the selection it totally matches the filtered rows.

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : boolean - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - isMasterToggleIndeterminate - - - -
                                                                                                                                                                                                                            -isMasterToggleIndeterminate() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:138
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Whether there is a selection that doesn't capture all the -filtered rows there are no filtered rows displayed.

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : boolean - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - masterToggle - - - -
                                                                                                                                                                                                                            -masterToggle() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:143
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Selects all filtered rows if they are not all selected; otherwise clear selection.

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                            -ngAfterViewInit() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:77
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                            -ngOnDestroy() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:75
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:44
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - selectRow - - - -
                                                                                                                                                                                                                            -selectRow(entity: TEntity) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:172
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            entity - TEntity - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - showDetails - - - -
                                                                                                                                                                                                                            -showDetails(entity: TEntity) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:192
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            will be called with entity or undefined

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            entity - TEntity - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - toggleColumnVisibility - - - -
                                                                                                                                                                                                                            -toggleColumnVisibility(column, event) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:194
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameOptional
                                                                                                                                                                                                                            column - No -
                                                                                                                                                                                                                            event - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Protected - update - - - -
                                                                                                                                                                                                                            - - update() -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:108
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - updateOrCreate - - - -
                                                                                                                                                                                                                            -updateOrCreate(entity: TEntity, isNew: boolean) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:92
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                            entity - TEntity - - No -
                                                                                                                                                                                                                            isNew - boolean - - No -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - columns - - - -
                                                                                                                                                                                                                            - columns: - -
                                                                                                                                                                                                                            - Default value : [ - // prettier-ignore - new EntityColumnDef<Account>({ property: 'userId', header: 'No.', displayFn: (entity) => `${entity.id}` }), - // prettier-ignore - // tslint:disable:max-line-length - new EntityColumnDef<Account>({ property: 'Name', header: 'Name', displayFn: (entity) => `${entity.first_name} ${entity.last_name}` }), - new EntityColumnDef<Account>({ property: 'gender', header: 'Gender' }), - // prettier-ignore - new EntityColumnDef<Account>({ property: 'dob', header: 'DoB', displayFn: (entity) => `${moment(entity.dob).format('LL')}` }), - new EntityColumnDef<Account>({ property: 'city', header: 'City', displayFn: entity => `${entity.address.city}` }), - new EntityColumnDef<Account>({ - property: 'state', - header: 'State', - displayFn: entity => `${entity.address.state}`, - }), - ] as EntityColumnDef<Account>[] -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - crumbs - - - -
                                                                                                                                                                                                                            - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                            - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                            - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Grid', link: '/dashboard/grid' }, - { name: 'CRUD Table' }, - ] -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - formRef - - - -
                                                                                                                                                                                                                            - formRef: - -
                                                                                                                                                                                                                            - Default value : AccountEditComponent -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - showActionColumn - - - -
                                                                                                                                                                                                                            - showActionColumn: - -
                                                                                                                                                                                                                            - Default value : true -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - showColumnFilter - - - -
                                                                                                                                                                                                                            - showColumnFilter: - -
                                                                                                                                                                                                                            - Default value : true -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - showToolbar - - - -
                                                                                                                                                                                                                            - showToolbar: - -
                                                                                                                                                                                                                            - Default value : true -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - Optional - actionColumn - - - -
                                                                                                                                                                                                                            - actionColumn: string - -
                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                            - Default value : 'Actions' -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:32
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - columns - - - -
                                                                                                                                                                                                                            - columns: Array<EntityColumnDef<TEntity>> - -
                                                                                                                                                                                                                            - Type : Array<EntityColumnDef<TEntity>> - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:26
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - dataSource - - - -
                                                                                                                                                                                                                            - dataSource: - -
                                                                                                                                                                                                                            - Default value : new MatTableDataSource<TEntity>([]) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:15
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - filterRef - - - -
                                                                                                                                                                                                                            - filterRef: ElementRef - -
                                                                                                                                                                                                                            - Type : ElementRef - -
                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                            - - @ViewChild('filter')
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:23
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - Optional - formRef - - - -
                                                                                                                                                                                                                            - formRef: ComponentType<EntityFormComponent<TEntity>> - -
                                                                                                                                                                                                                            - Type : ComponentType<EntityFormComponent<TEntity>> - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:35
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - loading$ - - - -
                                                                                                                                                                                                                            - loading$: - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:25
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - Optional - maxSelectable - - - -
                                                                                                                                                                                                                            - maxSelectable: number - -
                                                                                                                                                                                                                            - Type : number - -
                                                                                                                                                                                                                            - Default value : 1 -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:31
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - paginator - - - -
                                                                                                                                                                                                                            - paginator: MatPaginator - -
                                                                                                                                                                                                                            - Type : MatPaginator - -
                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                            - - @ViewChild(MatPaginator)
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:19
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - Optional - selectColumn - - - -
                                                                                                                                                                                                                            - selectColumn: string - -
                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                            - Default value : 'select' -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:33
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - selection - - - -
                                                                                                                                                                                                                            - selection: - -
                                                                                                                                                                                                                            - Default value : new SelectionModel<TEntity>(false, []) -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:16
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - Optional - showActionColumn - - - -
                                                                                                                                                                                                                            - showActionColumn: boolean - -
                                                                                                                                                                                                                            - Type : boolean - -
                                                                                                                                                                                                                            - Default value : false -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:30
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - Optional - showColumnFilter - - - -
                                                                                                                                                                                                                            - showColumnFilter: boolean - -
                                                                                                                                                                                                                            - Type : boolean - -
                                                                                                                                                                                                                            - Default value : false -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:29
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - Optional - showToolbar - - - -
                                                                                                                                                                                                                            - showToolbar: boolean - -
                                                                                                                                                                                                                            - Type : boolean - -
                                                                                                                                                                                                                            - Default value : false -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:28
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - sort - - - -
                                                                                                                                                                                                                            - sort: MatSort - -
                                                                                                                                                                                                                            - Type : MatSort - -
                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                            - - @ViewChild(MatSort)
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:21
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            - - - - Readonly - Optional - title - - - -
                                                                                                                                                                                                                            - title: string - -
                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                            - Default value : null -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Inherited from EntitiesComponent -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Defined in EntitiesComponent:27
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            import { Component } from '@angular/core';
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -import { Account, Address, Gender } from '../../models/account.model';
                                                                                                                                                                                                                            -import { AccountService } from '../../services/account.service';
                                                                                                                                                                                                                            -import { EntitiesComponent, EntityColumnDef } from '@ngx-starter-kit/shared';
                                                                                                                                                                                                                            -import { AppConfirmService } from '@ngx-starter-kit/app-confirm';
                                                                                                                                                                                                                            -import { MatDialog, MatSnackBar } from '@angular/material';
                                                                                                                                                                                                                            -import { catchError, tap, concatMap, filter, map, mergeMap } from 'rxjs/operators';
                                                                                                                                                                                                                            -import { throwError } from 'rxjs';
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -import { AccountEditComponent } from '../../components/account-edit/account-edit.component';
                                                                                                                                                                                                                            -import * as moment from 'moment';
                                                                                                                                                                                                                            -import { Navigate } from '@ngxs/router-plugin';
                                                                                                                                                                                                                            -import { Store } from '@ngxs/store';
                                                                                                                                                                                                                            -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -// TODO: search with facets https://github.com/sfeir-open-source/angular-search-experience
                                                                                                                                                                                                                            -// https://ngx.tools/#/search?q=Go
                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                            -  selector: 'ngx-accounts-table',
                                                                                                                                                                                                                            -  templateUrl: '../../../../../shared/src/lib/containers/entity/entity.component.html',
                                                                                                                                                                                                                            -  styleUrls: ['../../../../../shared/src/lib/containers/entity/entity.component.scss'],
                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                            -export class AccountsTableComponent extends EntitiesComponent<Account, AccountService> {
                                                                                                                                                                                                                            -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                            -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                            -    { name: 'Grid', link: '/dashboard/grid' },
                                                                                                                                                                                                                            -    { name: 'CRUD Table' },
                                                                                                                                                                                                                            -  ];
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  // readonly columns = [ { property: 'id'},{ property: 'name'},{ property: 'gender'},{ property: 'age'} ] as EntityColumnDef<Account>[]
                                                                                                                                                                                                                            -  readonly columns = [
                                                                                                                                                                                                                            -    // prettier-ignore
                                                                                                                                                                                                                            -    new EntityColumnDef<Account>({ property: 'userId',  header: 'No.',    displayFn: (entity) => `${entity.id}` }),
                                                                                                                                                                                                                            -    // prettier-ignore
                                                                                                                                                                                                                            -    // tslint:disable:max-line-length
                                                                                                                                                                                                                            -    new EntityColumnDef<Account>({ property: 'Name',    header: 'Name',   displayFn: (entity) => `${entity.first_name} ${entity.last_name}` }),
                                                                                                                                                                                                                            -    new EntityColumnDef<Account>({ property: 'gender', header: 'Gender' }),
                                                                                                                                                                                                                            -    // prettier-ignore
                                                                                                                                                                                                                            -    new EntityColumnDef<Account>({ property: 'dob',     header: 'DoB',    displayFn: (entity) => `${moment(entity.dob).format('LL')}` }),
                                                                                                                                                                                                                            -    new EntityColumnDef<Account>({ property: 'city', header: 'City', displayFn: entity => `${entity.address.city}` }),
                                                                                                                                                                                                                            -    new EntityColumnDef<Account>({
                                                                                                                                                                                                                            -      property: 'state',
                                                                                                                                                                                                                            -      header: 'State',
                                                                                                                                                                                                                            -      displayFn: entity => `${entity.address.state}`,
                                                                                                                                                                                                                            -    }),
                                                                                                                                                                                                                            -  ] as EntityColumnDef<Account>[];
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  // optional
                                                                                                                                                                                                                            -  readonly showActionColumn = true;
                                                                                                                                                                                                                            -  readonly showColumnFilter = true;
                                                                                                                                                                                                                            -  readonly showToolbar = true;
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  readonly formRef = AccountEditComponent;
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  constructor(
                                                                                                                                                                                                                            -    accountService: AccountService,
                                                                                                                                                                                                                            -    private store: Store,
                                                                                                                                                                                                                            -    private dialog: MatDialog,
                                                                                                                                                                                                                            -    private snack: MatSnackBar,
                                                                                                                                                                                                                            -    private confirmService: AppConfirmService,
                                                                                                                                                                                                                            -  ) {
                                                                                                                                                                                                                            -    super(accountService);
                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  // optional
                                                                                                                                                                                                                            -  delete(item: Account) {
                                                                                                                                                                                                                            -    return this.confirmService.confirm('Confirm', `Delete ${item.first_name} ${item.last_name}?`).pipe(
                                                                                                                                                                                                                            -      filter(confirmed => confirmed === true),
                                                                                                                                                                                                                            -      mergeMap(_ => super.delete(item)),
                                                                                                                                                                                                                            -      tap(_ => {
                                                                                                                                                                                                                            -        this.snack.open('Member Deleted!', 'OK', { duration: 5000 });
                                                                                                                                                                                                                            -        this.store.dispatch(new Navigate([`/dashboard/grid/crud-table`]));
                                                                                                                                                                                                                            -      }),
                                                                                                                                                                                                                            -      catchError(error => {
                                                                                                                                                                                                                            -        this.snack.open(error, 'OK', { duration: 10000 });
                                                                                                                                                                                                                            -        return throwError('Ignore Me!');
                                                                                                                                                                                                                            -      }),
                                                                                                                                                                                                                            -    );
                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  // required to override
                                                                                                                                                                                                                            -  getNewEntity(): Account {
                                                                                                                                                                                                                            -    const entity = new Account();
                                                                                                                                                                                                                            -    entity.address = new Address();
                                                                                                                                                                                                                            -    return entity;
                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  // optional
                                                                                                                                                                                                                            -  showDetails(entity: Account) {
                                                                                                                                                                                                                            -    if (entity) {
                                                                                                                                                                                                                            -      this.store.dispatch(new Navigate([`/dashboard/grid/crud-table/${entity.id}`]));
                                                                                                                                                                                                                            -    } else {
                                                                                                                                                                                                                            -      this.store.dispatch(new Navigate(['/dashboard/grid/crud-table']));
                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  // filterPredicate(entity: Account, _filter: string): boolean  {
                                                                                                                                                                                                                            -  //   return entity.first_name.indexOf(_filter) !== -1;
                                                                                                                                                                                                                            -  // }
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  /**
                                                                                                                                                                                                                            -   *  openPopUp() is used in entity.component.html
                                                                                                                                                                                                                            -   *  if you want different implantation (e.g., add-new-line instead of popup, inline edit)
                                                                                                                                                                                                                            -   *  make a copy of entity.component.html as <entity>.component.html and implement your own add/edit logic.
                                                                                                                                                                                                                            -   **/
                                                                                                                                                                                                                            -  openPopUp(entity: Account) {
                                                                                                                                                                                                                            -    let isNew = false;
                                                                                                                                                                                                                            -    if (!entity) {
                                                                                                                                                                                                                            -      isNew = true;
                                                                                                                                                                                                                            -      entity = this.getNewEntity();
                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                            -    const title = isNew ? 'Add Member' : 'Update Member';
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    const dialogRef = this.dialog.open(this.formRef, {
                                                                                                                                                                                                                            -      width: '720px',
                                                                                                                                                                                                                            -      disableClose: true,
                                                                                                                                                                                                                            -      data: { title: title, payload: entity },
                                                                                                                                                                                                                            -    });
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    dialogRef
                                                                                                                                                                                                                            -      .afterClosed()
                                                                                                                                                                                                                            -      .pipe(
                                                                                                                                                                                                                            -        filter(res => res !== false),
                                                                                                                                                                                                                            -        // tap(res => console.log(res)),
                                                                                                                                                                                                                            -        map((res: Account) => {
                                                                                                                                                                                                                            -          if (!isNew) {
                                                                                                                                                                                                                            -            res.id = entity.id;
                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                            -          return res;
                                                                                                                                                                                                                            -        }),
                                                                                                                                                                                                                            -        concatMap((res: Account) => super.updateOrCreate(res, isNew)),
                                                                                                                                                                                                                            -      )
                                                                                                                                                                                                                            -      .subscribe(
                                                                                                                                                                                                                            -        _ => {
                                                                                                                                                                                                                            -          this.snack.open(isNew ? 'Member Created!' : 'Member Updated!', 'OK', { duration: 5000 });
                                                                                                                                                                                                                            -          this.store.dispatch(new Navigate([`/dashboard/grid/crud-table`]));
                                                                                                                                                                                                                            -        },
                                                                                                                                                                                                                            -        error => this.snack.open(error, 'OK', { duration: 10000 }),
                                                                                                                                                                                                                            -      );
                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            <!--FIXME Only used for GRID Demo-->
                                                                                                                                                                                                                            -<ngx-breadcrumbs title="Grid" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                            -<!--FIXME End-->
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -<div fxLayout="column">
                                                                                                                                                                                                                            -<mat-card class="mat-elevation-z8">
                                                                                                                                                                                                                            -  <mat-toolbar *ngIf="showToolbar">
                                                                                                                                                                                                                            -    <mat-form-field fxFlex>
                                                                                                                                                                                                                            -      <input matInput #filter (keyup)="applyFilter($event.target.value)">
                                                                                                                                                                                                                            -      <mat-placeholder>
                                                                                                                                                                                                                            -        <mat-icon>search</mat-icon>Filter
                                                                                                                                                                                                                            -      </mat-placeholder>
                                                                                                                                                                                                                            -      <button mat-button *ngIf="filter.value !== ''" matSuffix mat-icon-button aria-label="Clear" (click)="filter.value= ''">
                                                                                                                                                                                                                            -        <mat-icon>close</mat-icon>
                                                                                                                                                                                                                            -      </button>
                                                                                                                                                                                                                            -    </mat-form-field>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    <button  *ngIf="showColumnFilter" mat-icon-button style="margin-left: 16px" type="button" [matMenuTriggerFor]="columnFilter">
                                                                                                                                                                                                                            -      <mat-icon>filter_list</mat-icon>
                                                                                                                                                                                                                            -    </button>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    <mat-menu #columnFilter="matMenu" yPosition="below" xPosition="before">
                                                                                                                                                                                                                            -      <button class="checkbox-item mat-menu-item" *ngFor="let column of columns"
                                                                                                                                                                                                                            -              (click)="toggleColumnVisibility(column, $event)">
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -        <!--<mat-checkbox [(ngModel)]="column.visible" class="checkbox" #checkbox (click)="$event.stopPropagation()">-->
                                                                                                                                                                                                                            -        <mat-checkbox  [checked]="column.visible" (change)="column.visible = !column.visible" class="checkbox" #checkbox (click)="$event.stopPropagation()">
                                                                                                                                                                                                                            -          {{ column.header }}
                                                                                                                                                                                                                            -        </mat-checkbox>
                                                                                                                                                                                                                            -      </button>
                                                                                                                                                                                                                            -    </mat-menu>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    <button *ngIf="showActionColumn" mat-mini-fab color="primary" style="margin-left: 16px" (click)="openPopUp()" matTooltip="add">
                                                                                                                                                                                                                            -      <mat-icon>add</mat-icon>
                                                                                                                                                                                                                            -    </button>
                                                                                                                                                                                                                            -  </mat-toolbar>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  <mat-progress-bar   *ngIf="loading$ | async" mode="indeterminate"></mat-progress-bar>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  <mat-table #table [dataSource]="dataSource" matSort>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    <!-- Checkbox Column -->
                                                                                                                                                                                                                            -    <ng-container *ngIf="maxSelectable > 0" matColumnDef="select">
                                                                                                                                                                                                                            -      <mat-header-cell *matHeaderCellDef>
                                                                                                                                                                                                                            -        <mat-checkbox (change)="$event ? masterToggle() : null"
                                                                                                                                                                                                                            -                      [disabled]="!dataSource.filteredData.length"
                                                                                                                                                                                                                            -                      [checked]="isMasterToggleChecked()"
                                                                                                                                                                                                                            -                      [indeterminate]="isMasterToggleIndeterminate()">
                                                                                                                                                                                                                            -        </mat-checkbox>
                                                                                                                                                                                                                            -      </mat-header-cell>
                                                                                                                                                                                                                            -      <mat-cell *matCellDef="let row">
                                                                                                                                                                                                                            -        <mat-checkbox (click)="$event.stopPropagation()"
                                                                                                                                                                                                                            -                      (change)="$event ? selectRow(row) : null"
                                                                                                                                                                                                                            -                      [checked]="selection.isSelected(row)">
                                                                                                                                                                                                                            -        </mat-checkbox>
                                                                                                                                                                                                                            -      </mat-cell>
                                                                                                                                                                                                                            -    </ng-container>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    <ng-container *ngFor="let column of columns" [matColumnDef]="column.property">
                                                                                                                                                                                                                            -      <mat-header-cell *matHeaderCellDef mat-sort-header> {{column.header}} </mat-header-cell>
                                                                                                                                                                                                                            -      <mat-cell *matCellDef="let row"> {{column.displayFn(row)}} </mat-cell>
                                                                                                                                                                                                                            -    </ng-container>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    <ng-container *ngIf="showActionColumn" [matColumnDef]="actionColumn" sticky>
                                                                                                                                                                                                                            -      <mat-header-cell *matHeaderCellDef>{{actionColumn}}</mat-header-cell>
                                                                                                                                                                                                                            -      <mat-cell *matCellDef="let entity">
                                                                                                                                                                                                                            -        <button type="button" (click)="openPopUp(entity)" color="primary" mat-icon-button>
                                                                                                                                                                                                                            -          <mat-icon>edit_mode</mat-icon>
                                                                                                                                                                                                                            -        </button>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -        <button type="button" (click)="delete(entity).subscribe()" color="warn" mat-icon-button>
                                                                                                                                                                                                                            -          <mat-icon>delete</mat-icon>
                                                                                                                                                                                                                            -        </button>
                                                                                                                                                                                                                            -      </mat-cell>
                                                                                                                                                                                                                            -    </ng-container>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -    <mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></mat-header-row>
                                                                                                                                                                                                                            -    <mat-row *matRowDef="let row; columns: displayedColumns;" class="row"
                                                                                                                                                                                                                            -             [class.selected]="selection.isSelected(row)"></mat-row>
                                                                                                                                                                                                                            -    <!--<mat-row *matRowDef="let row; columns: displayedColumns;" class="row"-->
                                                                                                                                                                                                                            -             <!--[class.selected]="selection.isSelected(row)" (click)="selectRow(row)"></mat-row>-->
                                                                                                                                                                                                                            -  </mat-table>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -  <mat-paginator #paginator [pageSize]="5" [pageSizeOptions]="[5, 10, 20]" [showFirstLastButtons]="true"></mat-paginator>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -</mat-card>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -</div>
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -<br/><br/>
                                                                                                                                                                                                                            -<!--<div [@routerTransition]="getRouteAnimation(o)">-->
                                                                                                                                                                                                                            -  <router-outlet #o="outlet"></router-outlet>
                                                                                                                                                                                                                            -<!--</div>-->
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            - ../../../../../shared/src/lib/containers/entity/entity.component.scss -

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            :host {
                                                                                                                                                                                                                            -  display: block;
                                                                                                                                                                                                                            -  padding: 1.5%;
                                                                                                                                                                                                                            -  position: relative;
                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -mat-toolbar {
                                                                                                                                                                                                                            -  padding: 8px 24px 0;
                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -mat-form-field {
                                                                                                                                                                                                                            -  font-size: 16px;
                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -mat-table {
                                                                                                                                                                                                                            -  position: relative;
                                                                                                                                                                                                                            -  top: 0;
                                                                                                                                                                                                                            -  max-height: 400px;
                                                                                                                                                                                                                            -  margin: auto;
                                                                                                                                                                                                                            -  padding: 0;
                                                                                                                                                                                                                            -  overflow: auto;
                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -.row {
                                                                                                                                                                                                                            -  //position: relative; // For mdRipple
                                                                                                                                                                                                                            -  &:hover {
                                                                                                                                                                                                                            -    //cursor: pointer;
                                                                                                                                                                                                                            -    background: #f5f5f5;
                                                                                                                                                                                                                            -    //background: #353535; //darl
                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                            -  &:active {
                                                                                                                                                                                                                            -    background: #eaeaea;
                                                                                                                                                                                                                            -    //background: #292929; //darl
                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -.mat-column-select {
                                                                                                                                                                                                                            -  overflow: visible;
                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                            -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AdvancedPieChartWidgetComponent.html b/docs/components/AdvancedPieChartWidgetComponent.html deleted file mode 100644 index 793d967ff..000000000 --- a/docs/components/AdvancedPieChartWidgetComponent.html +++ /dev/null @@ -1,1242 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              File

                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              - libs/widgets/src/lib/components/advanced-pie-chart-widget/advanced-pie-chart-widget.component.ts -

                                                                                                                                                                                                                              - - - -

                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              - OnInit - AfterViewInit -

                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              selectorngx-advanced-pie-chart-widget
                                                                                                                                                                                                                              styleUrls./advanced-pie-chart-widget.component.scss
                                                                                                                                                                                                                              templateUrl./advanced-pie-chart-widget.component.html
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              Inputs
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              Accessors
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                              -constructor() -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              Inputs

                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                              - - data - -

                                                                                                                                                                                                                              - Type : any - -

                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                              - - options - -

                                                                                                                                                                                                                              - Type : AdvancedPieChartWidgetOptions - -

                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - getLegendBackground - - - -
                                                                                                                                                                                                                              -getLegendBackground(index: number) -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                              index - number - - No -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - Returns : any - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - getLegendLabel - - - -
                                                                                                                                                                                                                              -getLegendLabel(index: number) -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                              index - number - - No -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - Returns : any - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - getPercentageValue - - - -
                                                                                                                                                                                                                              -getPercentageValue(value) -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              NameOptional
                                                                                                                                                                                                                              value - No -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - Returns : string - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                              -ngAfterViewInit() -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - ngOnInit - - - -
                                                                                                                                                                                                                              -ngOnInit() -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - reload - - - -
                                                                                                                                                                                                                              -reload() -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - Private - _data - - - -
                                                                                                                                                                                                                              - _data: ChartData - -
                                                                                                                                                                                                                              - Type : ChartData - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - canvas - - - -
                                                                                                                                                                                                                              - canvas: ElementRef - -
                                                                                                                                                                                                                              - Type : ElementRef - -
                                                                                                                                                                                                                              - Decorators : -
                                                                                                                                                                                                                              - - @ViewChild('canvas', {read: ElementRef})
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - chart - - - -
                                                                                                                                                                                                                              - chart: Chart - -
                                                                                                                                                                                                                              - Type : Chart - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - isLoading - - - -
                                                                                                                                                                                                                              - isLoading: boolean - -
                                                                                                                                                                                                                              - Type : boolean - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - - - total - - - -
                                                                                                                                                                                                                              - total: number - -
                                                                                                                                                                                                                              - Type : number - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              - Accessors -

                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - data -
                                                                                                                                                                                                                              - getdata() -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - setdata(data: any) -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                              data - any - - No -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              - - legendData -
                                                                                                                                                                                                                              - getlegendData() -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              import { AfterViewInit, Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';
                                                                                                                                                                                                                              -import * as Chart from 'chart.js';
                                                                                                                                                                                                                              -import { ChartConfiguration, ChartData } from 'chart.js';
                                                                                                                                                                                                                              -import defaultsDeep from 'lodash-es/defaultsDeep';
                                                                                                                                                                                                                              -import { defaultChartOptions } from '../chart-widget/chart-widget-defaults';
                                                                                                                                                                                                                              -import { AdvancedPieChartWidgetOptions } from './advanced-pie-chart-widget-options.interface';
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                              -  selector: 'ngx-advanced-pie-chart-widget',
                                                                                                                                                                                                                              -  templateUrl: './advanced-pie-chart-widget.component.html',
                                                                                                                                                                                                                              -  styleUrls: ['./advanced-pie-chart-widget.component.scss'],
                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                              -export class AdvancedPieChartWidgetComponent implements OnInit, AfterViewInit {
                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                              -  options: AdvancedPieChartWidgetOptions;
                                                                                                                                                                                                                              -  @ViewChild('canvas', { read: ElementRef })
                                                                                                                                                                                                                              -  canvas: ElementRef;
                                                                                                                                                                                                                              -  chart: Chart;
                                                                                                                                                                                                                              -  total: number;
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  isLoading: boolean;
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  constructor() {}
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  private _data: ChartData;
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  get data() {
                                                                                                                                                                                                                              -    return this._data;
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                              -  set data(data: any) {
                                                                                                                                                                                                                              -    let total = 0;
                                                                                                                                                                                                                              -    data.datasets.forEach((dataset: any) => {
                                                                                                                                                                                                                              -      total += dataset.data.reduce((pv, cv) => pv + cv, 0);
                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -    this._data = data;
                                                                                                                                                                                                                              -    this.total = total;
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  get legendData() {
                                                                                                                                                                                                                              -    return this._data.datasets[0].data;
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  getLegendLabel(index: number) {
                                                                                                                                                                                                                              -    return this._data && this._data.labels.length > 0 ? this._data.labels[index] : null;
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  getLegendBackground(index: number) {
                                                                                                                                                                                                                              -    return this._data && this._data.datasets && this._data.datasets[0] && this._data.datasets[0].backgroundColor
                                                                                                                                                                                                                              -      ? this._data.datasets[0].backgroundColor[index]
                                                                                                                                                                                                                              -      : null;
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  ngOnInit() {}
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  ngAfterViewInit() {
                                                                                                                                                                                                                              -    const canvas = this.canvas.nativeElement.getContext('2d');
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -    this.chart = new Chart(canvas, {
                                                                                                                                                                                                                              -      // The type of chart we want to create
                                                                                                                                                                                                                              -      type: 'doughnut',
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -      // The data for our dataset
                                                                                                                                                                                                                              -      data: this.data,
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -      // Configuration options go here
                                                                                                                                                                                                                              -      options: defaultsDeep(
                                                                                                                                                                                                                              -        {
                                                                                                                                                                                                                              -          cutoutPercentage: 70,
                                                                                                                                                                                                                              -          legend: {
                                                                                                                                                                                                                              -            display: false,
                                                                                                                                                                                                                              -          },
                                                                                                                                                                                                                              -        },
                                                                                                                                                                                                                              -        defaultChartOptions,
                                                                                                                                                                                                                              -      ),
                                                                                                                                                                                                                              -    } as ChartConfiguration);
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  getPercentageValue(value) {
                                                                                                                                                                                                                              -    return `${Math.round((value / this.total) * 100)}%`;
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  reload() {
                                                                                                                                                                                                                              -    this.isLoading = true;
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -    setTimeout(() => {
                                                                                                                                                                                                                              -      this.isLoading = false;
                                                                                                                                                                                                                              -    }, 2000);
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              <ngx-card>
                                                                                                                                                                                                                              -  <ngx-card-header>
                                                                                                                                                                                                                              -    <ngx-card-header-title>{{ options?.title }}</ngx-card-header-title>
                                                                                                                                                                                                                              -    <ngx-card-header-sub-title *ngIf="options?.subTitle">{{ options?.subTitle }}</ngx-card-header-sub-title>
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -    <ngx-card-header-actions>
                                                                                                                                                                                                                              -      <button mat-icon-button (click)="reload()">
                                                                                                                                                                                                                              -        <mat-icon>refresh</mat-icon>
                                                                                                                                                                                                                              -      </button>
                                                                                                                                                                                                                              -      <button mat-icon-button [matMenuTriggerFor]="menu">
                                                                                                                                                                                                                              -        <mat-icon>more_vert</mat-icon>
                                                                                                                                                                                                                              -      </button>
                                                                                                                                                                                                                              -    </ngx-card-header-actions>
                                                                                                                                                                                                                              -  </ngx-card-header>
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  <ngx-card-content>
                                                                                                                                                                                                                              -    <div class="content" fxLayout="row">
                                                                                                                                                                                                                              -      <div class="chart" fxFlex="150px">
                                                                                                                                                                                                                              -        <canvas width="150" height="150" #canvas></canvas>
                                                                                                                                                                                                                              -      </div>
                                                                                                                                                                                                                              -      <div class="legend" fxLayout="column" fxFlex="0 1 100%">
                                                                                                                                                                                                                              -        <div class="total-value">{{ total }}</div>
                                                                                                                                                                                                                              -        <div class="total-label">Total Sales</div>
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -        <ngx-scrollbar class="legend-items">
                                                                                                                                                                                                                              -          <div fxLayout="row" fxLayoutAlign="space-between stretch">
                                                                                                                                                                                                                              -            <div class="legend-item" *ngFor="let value of legendData; let i = index" fxLayout="row">
                                                                                                                                                                                                                              -              <div class="item-color" [style.background-color]="getLegendBackground(i)"></div>
                                                                                                                                                                                                                              -              <div fxLayout="column">
                                                                                                                                                                                                                              -                <div class="item-value">{{ value }}</div>
                                                                                                                                                                                                                              -                <div class="item-label">{{ getLegendLabel(i) }}</div>
                                                                                                                                                                                                                              -                <div class="item-percent">{{ getPercentageValue(value) }}</div>
                                                                                                                                                                                                                              -              </div>
                                                                                                                                                                                                                              -            </div>
                                                                                                                                                                                                                              -          </div>
                                                                                                                                                                                                                              -        </ngx-scrollbar>
                                                                                                                                                                                                                              -        <div class="fade-out-overlay"></div>
                                                                                                                                                                                                                              -      </div>
                                                                                                                                                                                                                              -    </div>
                                                                                                                                                                                                                              -  </ngx-card-content>
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  <mat-menu #menu="matMenu">
                                                                                                                                                                                                                              -    <button mat-menu-item>
                                                                                                                                                                                                                              -      <mat-icon> settings</mat-icon>
                                                                                                                                                                                                                              -      <span> Settings </span>
                                                                                                                                                                                                                              -    </button>
                                                                                                                                                                                                                              -    <button mat-menu-item disabled>
                                                                                                                                                                                                                              -      <mat-icon> more</mat-icon>
                                                                                                                                                                                                                              -      <span> More Info </span>
                                                                                                                                                                                                                              -    </button>
                                                                                                                                                                                                                              -    <button mat-menu-item>
                                                                                                                                                                                                                              -      <mat-icon> remove_circle</mat-icon>
                                                                                                                                                                                                                              -      <span> Remove Widget </span>
                                                                                                                                                                                                                              -    </button>
                                                                                                                                                                                                                              -  </mat-menu>
                                                                                                                                                                                                                              -</ngx-card>
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              - ./advanced-pie-chart-widget.component.scss -

                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              @import 'fu/var';
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -.chart {
                                                                                                                                                                                                                              -  padding: $spacing/2 0;
                                                                                                                                                                                                                              -  width: 150px;
                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -.legend {
                                                                                                                                                                                                                              -  margin-left: 16px;
                                                                                                                                                                                                                              -  color: $theme-secondary-text;
                                                                                                                                                                                                                              -  font-weight: 300;
                                                                                                                                                                                                                              -  width: calc(100% - 150px - 16px);
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  .total-value {
                                                                                                                                                                                                                              -    font-size: 36px;
                                                                                                                                                                                                                              -    line-height: normal;
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  .total-label {
                                                                                                                                                                                                                              -    font-size: 24px;
                                                                                                                                                                                                                              -    line-height: normal;
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  .legend-items {
                                                                                                                                                                                                                              -    margin-top: 16px;
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -    .legend-item {
                                                                                                                                                                                                                              -      margin-right: 20px;
                                                                                                                                                                                                                              -      cursor: pointer;
                                                                                                                                                                                                                              -      min-width: 72px;
                                                                                                                                                                                                                              -      transition: color $swift-ease-in-duration $swift-ease-in-timing-function,
                                                                                                                                                                                                                              -        opacity $swift-ease-in-duration $swift-ease-in-timing-function;
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -      &:hover {
                                                                                                                                                                                                                              -        color: $theme-text;
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -        .item-label,
                                                                                                                                                                                                                              -        .item-percent {
                                                                                                                                                                                                                              -          opacity: 1;
                                                                                                                                                                                                                              -        }
                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -      .item-color {
                                                                                                                                                                                                                              -        width: 4px;
                                                                                                                                                                                                                              -        height: 32px;
                                                                                                                                                                                                                              -        margin-top: 6px;
                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -      .item-value {
                                                                                                                                                                                                                              -        font-size: 24px;
                                                                                                                                                                                                                              -        margin-left: 10px;
                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -      .item-label {
                                                                                                                                                                                                                              -        font-size: 12px;
                                                                                                                                                                                                                              -        opacity: 0.7;
                                                                                                                                                                                                                              -        margin-left: 10px;
                                                                                                                                                                                                                              -        margin-top: 2px;
                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -      .item-percent {
                                                                                                                                                                                                                              -        font-size: 24px;
                                                                                                                                                                                                                              -        opacity: 0.7;
                                                                                                                                                                                                                              -        margin-left: 10px;
                                                                                                                                                                                                                              -        margin-top: 4px;
                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -  .fade-out-overlay {
                                                                                                                                                                                                                              -    position: absolute;
                                                                                                                                                                                                                              -    top: 0;
                                                                                                                                                                                                                              -    right: 0;
                                                                                                                                                                                                                              -    bottom: 0;
                                                                                                                                                                                                                              -    height: 100%;
                                                                                                                                                                                                                              -    width: 50px;
                                                                                                                                                                                                                              -    background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AnimationsComponent.html b/docs/components/AnimationsComponent.html deleted file mode 100644 index 15afe97eb..000000000 --- a/docs/components/AnimationsComponent.html +++ /dev/null @@ -1,611 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                - libs/experiments/src/lib/containers/animations/animations.component.ts -

                                                                                                                                                                                                                                - - - -

                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                - OnInit -

                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                selectorngx-animations
                                                                                                                                                                                                                                styleUrls./animations.component.scss
                                                                                                                                                                                                                                templateUrl./animations.component.html
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - - - - - -
                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                - - - - ngOnInit - - - -
                                                                                                                                                                                                                                -ngOnInit() -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                - - - - resetAnimationState - - - -
                                                                                                                                                                                                                                -resetAnimationState() -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                - - - - startAnimation - - - -
                                                                                                                                                                                                                                -startAnimation(state) -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                NameOptional
                                                                                                                                                                                                                                state - No -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                - - - - animationState - - - -
                                                                                                                                                                                                                                - animationState: string - -
                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                - - - - crumbs - - - -
                                                                                                                                                                                                                                - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Animations' }, - ] -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                -import { cardAnimation } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                -  selector: 'ngx-animations',
                                                                                                                                                                                                                                -  templateUrl: './animations.component.html',
                                                                                                                                                                                                                                -  styleUrls: ['./animations.component.scss'],
                                                                                                                                                                                                                                -  animations: [cardAnimation],
                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                -export class AnimationsComponent implements OnInit {
                                                                                                                                                                                                                                -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                -    { name: 'Animations' },
                                                                                                                                                                                                                                -  ];
                                                                                                                                                                                                                                -  animationState: string;
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -  constructor() {}
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -  ngOnInit() {}
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -  startAnimation(state) {
                                                                                                                                                                                                                                -    console.log(state);
                                                                                                                                                                                                                                -    if (!this.animationState) {
                                                                                                                                                                                                                                -      this.animationState = state;
                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -  resetAnimationState() {
                                                                                                                                                                                                                                -    this.animationState = '';
                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                <ngx-breadcrumbs title="Experiments" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                -<mat-card class="example-card"
                                                                                                                                                                                                                                -          [@cardAnimator]="animationState"
                                                                                                                                                                                                                                -          (@cardAnimator.done)="resetAnimationState()"
                                                                                                                                                                                                                                -          (swipeleft)="startAnimation('slideOutLeft')"
                                                                                                                                                                                                                                -          (swiperight)="startAnimation('zoomOutRight')"
                                                                                                                                                                                                                                -          (swipeup)="startAnimation('rotateOutUpRight')"
                                                                                                                                                                                                                                -          (swipedown)="startAnimation('flipOutY')">
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -  <mat-card-content>
                                                                                                                                                                                                                                -    <img mat-card-image src="https://angular.io/assets/images/logos/angular/angular.svg">
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -    <p>
                                                                                                                                                                                                                                -      Learn one way to build applications with Angular and reuse your code and abilities to build apps for any deployment target. For web, mobile web, native mobile and native desktop.
                                                                                                                                                                                                                                -    </p>
                                                                                                                                                                                                                                -  </mat-card-content>
                                                                                                                                                                                                                                -  <mat-card-actions>
                                                                                                                                                                                                                                -    <button mat-raised-button color="primary" (tap)="startAnimation('wobble')">WOBBLE</button>
                                                                                                                                                                                                                                -    <button mat-raised-button color="primary" (tap)="startAnimation('swing')">SWING</button>
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -    <h5>Custom Events</h5>
                                                                                                                                                                                                                                -    <button hammertime  mat-raised-button color="accent" (doubleTap)="startAnimation('jello')">JELLO (doubleTap) </button>
                                                                                                                                                                                                                                -  </mat-card-actions>
                                                                                                                                                                                                                                -</mat-card>
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                - ./animations.component.scss -

                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                :host {
                                                                                                                                                                                                                                -  display: block;
                                                                                                                                                                                                                                -  padding: 1.5%;
                                                                                                                                                                                                                                -  position: relative;
                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -img {
                                                                                                                                                                                                                                -  width: 200px;
                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                -.example-card {
                                                                                                                                                                                                                                -  text-align: center;
                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AppComponent.html b/docs/components/AppComponent.html deleted file mode 100644 index 65c230d95..000000000 --- a/docs/components/AppComponent.html +++ /dev/null @@ -1,506 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  - apps/webapp/src/app/app.component.ts -

                                                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  - OnInit -

                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                  encapsulationViewEncapsulation.None
                                                                                                                                                                                                                                  selectorapp-root
                                                                                                                                                                                                                                  styleUrls./app.component.scss
                                                                                                                                                                                                                                  templateUrl./app.component.html
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                  • - Public - meta -
                                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                  -constructor(sw: ServiceWorkerService, meta: Meta, pageTitleService: PageTitleService) -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                  sw - ServiceWorkerService - - No -
                                                                                                                                                                                                                                  meta - Meta - - No -
                                                                                                                                                                                                                                  pageTitleService - PageTitleService - - No -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                  - - - - ngOnInit - - - -
                                                                                                                                                                                                                                  -ngOnInit() -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                  - - - - Public - meta - - - -
                                                                                                                                                                                                                                  - meta: Meta - -
                                                                                                                                                                                                                                  - Type : Meta - -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  import { Component, OnInit, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                  -import { PageTitleService, ServiceWorkerService } from '@ngx-starter-kit/core';
                                                                                                                                                                                                                                  -import { Meta, Title } from '@angular/platform-browser';
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                  -  selector: 'app-root',
                                                                                                                                                                                                                                  -  templateUrl: './app.component.html',
                                                                                                                                                                                                                                  -  styleUrls: ['./app.component.scss'],
                                                                                                                                                                                                                                  -  encapsulation: ViewEncapsulation.None,
                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                  -export class AppComponent implements OnInit {
                                                                                                                                                                                                                                  -  // HINT: keep PageTitleService injected here, so that, it get initialized during bootstrap
                                                                                                                                                                                                                                  -  constructor(private sw: ServiceWorkerService, public meta: Meta, private pageTitleService: PageTitleService) {
                                                                                                                                                                                                                                  -    meta.addTags([
                                                                                                                                                                                                                                  -      { charset: 'UTF-8' },
                                                                                                                                                                                                                                  -      { name: 'description', content: 'NGX Starter Kit' },
                                                                                                                                                                                                                                  -      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
                                                                                                                                                                                                                                  -      { name: 'keywords', content: 'TypeScript, Angular' },
                                                                                                                                                                                                                                  -    ]);
                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -  ngOnInit() {
                                                                                                                                                                                                                                  -    // Check service worker update
                                                                                                                                                                                                                                  -    this.sw.checkSWUpdate();
                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  <router-outlet></router-outlet>
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  - ./app.component.scss -

                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  app-home-layout {
                                                                                                                                                                                                                                  -  display: flex;
                                                                                                                                                                                                                                  -  flex-direction: column;
                                                                                                                                                                                                                                  -  position: absolute;
                                                                                                                                                                                                                                  -  top: 56px;
                                                                                                                                                                                                                                  -  bottom: 0;
                                                                                                                                                                                                                                  -  left: 0;
                                                                                                                                                                                                                                  -  right: 0;
                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -app-root > ngx-sidenav {
                                                                                                                                                                                                                                  -  flex: 1;
                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -app-root > ngx-home-layout,
                                                                                                                                                                                                                                  -app-root > ngx-dashboard-layout,
                                                                                                                                                                                                                                  -app-root > ngx-admin-layout {
                                                                                                                                                                                                                                  -  overflow-y: auto;
                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -//SUMO
                                                                                                                                                                                                                                  -@media (max-width: 599px) {
                                                                                                                                                                                                                                  -  ngx-home-layout {
                                                                                                                                                                                                                                  -    top: 92px;
                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -  app-root > ngx-home-layout,
                                                                                                                                                                                                                                  -  app-root > ngx-dashboard-layout,
                                                                                                                                                                                                                                  -  app-root > ngx-admin-layout {
                                                                                                                                                                                                                                  -    overflow-y: visible;
                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AppConfirmComponent.html b/docs/components/AppConfirmComponent.html deleted file mode 100644 index 4f9c88c95..000000000 --- a/docs/components/AppConfirmComponent.html +++ /dev/null @@ -1,442 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    - libs/app-confirm/src/lib/app-confirm.component.ts -

                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                    selectorngx-confirm
                                                                                                                                                                                                                                    styleUrls./app-confirm.component.scss
                                                                                                                                                                                                                                    templateUrl./app-confirm.component.html
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                                    -constructor(dialogRef: MatDialogRef, data: any) -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                    dialogRef - MatDialogRef<AppConfirmComponent> - - No -
                                                                                                                                                                                                                                    data - any - - No -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - - - - - - -
                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                    - - - - Public - data - - - -
                                                                                                                                                                                                                                    - data: any - -
                                                                                                                                                                                                                                    - Type : any - -
                                                                                                                                                                                                                                    - Decorators : -
                                                                                                                                                                                                                                    - - @Inject(MAT_DIALOG_DATA)
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                    - - - - Public - dialogRef - - - -
                                                                                                                                                                                                                                    - dialogRef: MatDialogRef<AppConfirmComponent> - -
                                                                                                                                                                                                                                    - Type : MatDialogRef<AppConfirmComponent> - -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
                                                                                                                                                                                                                                    -import { Component, Inject } from '@angular/core';
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                    -  selector: 'ngx-confirm',
                                                                                                                                                                                                                                    -  templateUrl: './app-confirm.component.html',
                                                                                                                                                                                                                                    -  styleUrls: ['./app-confirm.component.scss'],
                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                    -export class AppConfirmComponent {
                                                                                                                                                                                                                                    -  constructor(public dialogRef: MatDialogRef<AppConfirmComponent>, @Inject(MAT_DIALOG_DATA) public data: any) {}
                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    <h1 matDialogTitle>{{ data.title }}</h1>
                                                                                                                                                                                                                                    -<div mat-dialog-content>{{ data.message }}</div>
                                                                                                                                                                                                                                    -<div mat-dialog-actions>
                                                                                                                                                                                                                                    -  <button
                                                                                                                                                                                                                                    -    type="button"
                                                                                                                                                                                                                                    -    mat-raised-button
                                                                                                                                                                                                                                    -    color="primary"
                                                                                                                                                                                                                                    -    (click)="dialogRef.close(true)">OK</button>
                                                                                                                                                                                                                                    -  &nbsp;
                                                                                                                                                                                                                                    -  <span fxFlex></span>
                                                                                                                                                                                                                                    -  <button
                                                                                                                                                                                                                                    -    type="button"
                                                                                                                                                                                                                                    -    color="accent"
                                                                                                                                                                                                                                    -    mat-raised-button
                                                                                                                                                                                                                                    -    (click)="dialogRef.close(false)">Cancel</button>
                                                                                                                                                                                                                                    -</div>
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    - ./app-confirm.component.scss -

                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/AudienceOverviewWidgetComponent.html b/docs/components/AudienceOverviewWidgetComponent.html deleted file mode 100644 index 3099cbaa0..000000000 --- a/docs/components/AudienceOverviewWidgetComponent.html +++ /dev/null @@ -1,1223 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      - libs/widgets/src/lib/components/audience-overview-widget/audience-overview-widget.component.ts -

                                                                                                                                                                                                                                      - - - -

                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      Implements

                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      - AfterViewInit -

                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      selectorngx-audience-overview-widget
                                                                                                                                                                                                                                      styleUrls./audience-overview-widget.component.scss
                                                                                                                                                                                                                                      templateUrl./audience-overview-widget.component.html
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      Inputs
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      Accessors
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                      -constructor() -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      Inputs

                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                      - - options - -

                                                                                                                                                                                                                                      - Type : [] - -

                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - isActive - - - -
                                                                                                                                                                                                                                      -isActive(options) -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      NameOptional
                                                                                                                                                                                                                                      options - No -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - Returns : boolean - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                      -ngAfterViewInit() -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - reload - - - -
                                                                                                                                                                                                                                      -reload() -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - setActiveOptions - - - -
                                                                                                                                                                                                                                      -setActiveOptions(options: AudienceOverviewWidgetOptions) -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                      options - AudienceOverviewWidgetOptions - - No -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - Private - _activeOptions - - - -
                                                                                                                                                                                                                                      - _activeOptions: - -
                                                                                                                                                                                                                                      - Default value : new BehaviorSubject<AudienceOverviewWidgetOptions>({ - label: '', - }) -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - Private - _options - - - -
                                                                                                                                                                                                                                      - _options: AudienceOverviewWidgetOptions[] - -
                                                                                                                                                                                                                                      - Type : AudienceOverviewWidgetOptions[] - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - canvas - - - -
                                                                                                                                                                                                                                      - canvas: ElementRef - -
                                                                                                                                                                                                                                      - Type : ElementRef - -
                                                                                                                                                                                                                                      - Decorators : -
                                                                                                                                                                                                                                      - - @ViewChild('canvas', {read: ElementRef})
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - chart - - - -
                                                                                                                                                                                                                                      - chart: Chart - -
                                                                                                                                                                                                                                      - Type : Chart - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - isLoading - - - -
                                                                                                                                                                                                                                      - isLoading: boolean - -
                                                                                                                                                                                                                                      - Type : boolean - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - - - timeframe - - - -
                                                                                                                                                                                                                                      - timeframe: FormControl - -
                                                                                                                                                                                                                                      - Type : FormControl - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      - Accessors -

                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - options -
                                                                                                                                                                                                                                      - getoptions() -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - setoptions(options: []) -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                      options - [] - - No -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      - - activeOptions -
                                                                                                                                                                                                                                      - getactiveOptions() -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - setactiveOptions(options) -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      NameOptional
                                                                                                                                                                                                                                      options - No -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      import { AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                      -import { FormControl } from '@angular/forms';
                                                                                                                                                                                                                                      -import * as Chart from 'chart.js';
                                                                                                                                                                                                                                      -import { ChartConfiguration } from 'chart.js';
                                                                                                                                                                                                                                      -import defaultsDeep from 'lodash-es/defaultsDeep';
                                                                                                                                                                                                                                      -import { BehaviorSubject } from 'rxjs';
                                                                                                                                                                                                                                      -import { defaultChartOptions } from '../chart-widget/chart-widget-defaults';
                                                                                                                                                                                                                                      -import { AudienceOverviewWidgetOptions } from './audience-overview-widget-options.interface';
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                      -  selector: 'ngx-audience-overview-widget',
                                                                                                                                                                                                                                      -  templateUrl: './audience-overview-widget.component.html',
                                                                                                                                                                                                                                      -  styleUrls: ['./audience-overview-widget.component.scss'],
                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                      -export class AudienceOverviewWidgetComponent implements AfterViewInit {
                                                                                                                                                                                                                                      -  @ViewChild('canvas', { read: ElementRef })
                                                                                                                                                                                                                                      -  canvas: ElementRef;
                                                                                                                                                                                                                                      -  chart: Chart;
                                                                                                                                                                                                                                      -  isLoading: boolean;
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  private _options: AudienceOverviewWidgetOptions[];
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  get options() {
                                                                                                                                                                                                                                      -    return this._options;
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  @Input()
                                                                                                                                                                                                                                      -  set options(options: AudienceOverviewWidgetOptions[]) {
                                                                                                                                                                                                                                      -    if (options) {
                                                                                                                                                                                                                                      -      this._options = options;
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -      options.forEach(option => {
                                                                                                                                                                                                                                      -        if (!option.sum) {
                                                                                                                                                                                                                                      -          const data = option.data.datasets[0].data as number[];
                                                                                                                                                                                                                                      -          option.sum = data.reduce((sum: number, x: number) => sum + x);
                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -        if (!option.gain && option.data.datasets && option.data.datasets.length > 1) {
                                                                                                                                                                                                                                      -          const data1 = option.data.datasets[0].data as number[];
                                                                                                                                                                                                                                      -          const data2 = option.data.datasets[1].data as number[];
                                                                                                                                                                                                                                      -          const sum1 = data1.reduce((sum: number, x: number) => sum + x);
                                                                                                                                                                                                                                      -          const sum2 = data2.reduce((sum: number, x: number) => sum + x);
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -          option.gain = Math.round(((sum1 - sum2) / sum2) * 100 * 100) / 100;
                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                      -      });
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -      this.setActiveOptions(options[0]);
                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  private _activeOptions = new BehaviorSubject<AudienceOverviewWidgetOptions>({
                                                                                                                                                                                                                                      -    label: '',
                                                                                                                                                                                                                                      -  });
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  get activeOptions() {
                                                                                                                                                                                                                                      -    return this._activeOptions.getValue();
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  set activeOptions(options) {
                                                                                                                                                                                                                                      -    this._activeOptions.next(options);
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  timeframe: FormControl;
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  constructor() {
                                                                                                                                                                                                                                      -    this.timeframe = new FormControl('last7');
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  ngAfterViewInit() {
                                                                                                                                                                                                                                      -    this.chart = new Chart(this.canvas.nativeElement.getContext('2d'), <ChartConfiguration>{
                                                                                                                                                                                                                                      -      type: 'line',
                                                                                                                                                                                                                                      -      data: this.activeOptions ? this.activeOptions.data : { labels: [], datasets: [] },
                                                                                                                                                                                                                                      -      options: defaultsDeep(
                                                                                                                                                                                                                                      -        {
                                                                                                                                                                                                                                      -          scales: {
                                                                                                                                                                                                                                      -            xAxes: [
                                                                                                                                                                                                                                      -              {
                                                                                                                                                                                                                                      -                display: true,
                                                                                                                                                                                                                                      -                gridLines: {
                                                                                                                                                                                                                                      -                  display: false,
                                                                                                                                                                                                                                      -                  drawBorder: false,
                                                                                                                                                                                                                                      -                },
                                                                                                                                                                                                                                      -                ticks: {
                                                                                                                                                                                                                                      -                  fontColor: '#9e9e9e',
                                                                                                                                                                                                                                      -                  padding: 12,
                                                                                                                                                                                                                                      -                },
                                                                                                                                                                                                                                      -              },
                                                                                                                                                                                                                                      -            ],
                                                                                                                                                                                                                                      -            yAxes: [
                                                                                                                                                                                                                                      -              {
                                                                                                                                                                                                                                      -                display: true,
                                                                                                                                                                                                                                      -                position: 'right',
                                                                                                                                                                                                                                      -                gridLines: {
                                                                                                                                                                                                                                      -                  drawBorder: false,
                                                                                                                                                                                                                                      -                  offsetGridLines: true,
                                                                                                                                                                                                                                      -                },
                                                                                                                                                                                                                                      -                ticks: {
                                                                                                                                                                                                                                      -                  fontColor: '#9e9e9e',
                                                                                                                                                                                                                                      -                  maxTicksLimit: 5,
                                                                                                                                                                                                                                      -                },
                                                                                                                                                                                                                                      -              },
                                                                                                                                                                                                                                      -            ],
                                                                                                                                                                                                                                      -          },
                                                                                                                                                                                                                                      -          layout: {
                                                                                                                                                                                                                                      -            padding: {
                                                                                                                                                                                                                                      -              left: 5,
                                                                                                                                                                                                                                      -              right: 5,
                                                                                                                                                                                                                                      -              top: 5,
                                                                                                                                                                                                                                      -            },
                                                                                                                                                                                                                                      -          },
                                                                                                                                                                                                                                      -          tooltips: {
                                                                                                                                                                                                                                      -            mode: 'index',
                                                                                                                                                                                                                                      -            intersect: false,
                                                                                                                                                                                                                                      -          },
                                                                                                                                                                                                                                      -          hover: {
                                                                                                                                                                                                                                      -            intersect: true,
                                                                                                                                                                                                                                      -          },
                                                                                                                                                                                                                                      -        },
                                                                                                                                                                                                                                      -        defaultChartOptions,
                                                                                                                                                                                                                                      -      ),
                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    this._activeOptions.asObservable().subscribe(value => {
                                                                                                                                                                                                                                      -      this.chart.data = value.data;
                                                                                                                                                                                                                                      -      this.chart.update(1000);
                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  setActiveOptions(options: AudienceOverviewWidgetOptions) {
                                                                                                                                                                                                                                      -    this.activeOptions = options;
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  isActive(options) {
                                                                                                                                                                                                                                      -    return this.activeOptions === options;
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  reload() {
                                                                                                                                                                                                                                      -    this.isLoading = true;
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    setTimeout(() => {
                                                                                                                                                                                                                                      -      this.isLoading = false;
                                                                                                                                                                                                                                      -    }, 2000);
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      <ngx-card>
                                                                                                                                                                                                                                      -  <div class="header" fxLayout="column" fxLayout.gt-xs="row">
                                                                                                                                                                                                                                      -    <div class="property" *ngFor="let property of options" [class.active]="isActive(property)"
                                                                                                                                                                                                                                      -         fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="8px"
                                                                                                                                                                                                                                      -         fxLayout.gt-xs="column" fxLayoutAlign.gt-xs="start stretch" fxLayoutGap.gt-xs="0"
                                                                                                                                                                                                                                      -         (click)="setActiveOptions(property)">
                                                                                                                                                                                                                                      -      <div class="label" fxFlex="grow">{{ property.label }}</div>
                                                                                                                                                                                                                                      -      <div class="value" fxFlex="grow">{{ property.sum }}</div>
                                                                                                                                                                                                                                      -      <div class="gain" fxFlex="grow" [class.success]="property.gain >= 0" [class.warn]="property.gain < 0">
                                                                                                                                                                                                                                      -        <mat-icon class="icon" *ngIf="property.gain >= 0">trending_up</mat-icon>
                                                                                                                                                                                                                                      -        <mat-icon class="icon" *ngIf="property.gain < 0">trending_down</mat-icon>
                                                                                                                                                                                                                                      -        {{ property.gain }}%
                                                                                                                                                                                                                                      -      </div>
                                                                                                                                                                                                                                      -      <div class="compared" fxFlex="grow">vs last 7 days</div>
                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  <ngx-card-content>
                                                                                                                                                                                                                                      -    <div class="content">
                                                                                                                                                                                                                                      -      <canvas #canvas></canvas>
                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                      -  </ngx-card-content>
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -  <ngx-card-actions class="actions" fxLayout="row" fxLayoutAlign="space-between center">
                                                                                                                                                                                                                                      -    <mat-select class="select" [formControl]="timeframe">
                                                                                                                                                                                                                                      -      <mat-option value="last7">Last 7 Days</mat-option>
                                                                                                                                                                                                                                      -      <mat-option value="last14">Last 14 Days</mat-option>
                                                                                                                                                                                                                                      -      <mat-option value="lastMonth">Last Month</mat-option>
                                                                                                                                                                                                                                      -      <mat-divider></mat-divider>
                                                                                                                                                                                                                                      -      <mat-option value="custom">Custom</mat-option>
                                                                                                                                                                                                                                      -    </mat-select>
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    <button type="button" mat-button color="primary">
                                                                                                                                                                                                                                      -      AUDIENCE OVERVIEW
                                                                                                                                                                                                                                      -    </button>
                                                                                                                                                                                                                                      -  </ngx-card-actions>
                                                                                                                                                                                                                                      -</ngx-card>
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      - ./audience-overview-widget.component.scss -

                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      @import 'fu/var';
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -.header {
                                                                                                                                                                                                                                      -  .property {
                                                                                                                                                                                                                                      -    padding: $spacing;
                                                                                                                                                                                                                                      -    cursor: pointer;
                                                                                                                                                                                                                                      -    border-top: 4px solid transparent;
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    .label {
                                                                                                                                                                                                                                      -      @include mat-typography-level-to-styles($config, body-1);
                                                                                                                                                                                                                                      -      color: $theme-secondary-text;
                                                                                                                                                                                                                                      -      padding-bottom: $spacing/4;
                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    .value {
                                                                                                                                                                                                                                      -      @include mat-typography-level-to-styles($config, headline);
                                                                                                                                                                                                                                      -      font-weight: 300;
                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    .gain {
                                                                                                                                                                                                                                      -      @include mat-typography-level-to-styles($config, caption);
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -      .icon {
                                                                                                                                                                                                                                      -        font-size: 13px;
                                                                                                                                                                                                                                      -        height: 13px;
                                                                                                                                                                                                                                      -        width: 13px;
                                                                                                                                                                                                                                      -        vertical-align: middle;
                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -      &.success {
                                                                                                                                                                                                                                      -        color: $color-success;
                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -      &.warn {
                                                                                                                                                                                                                                      -        color: $theme-color-warn;
                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    .compared {
                                                                                                                                                                                                                                      -      @include mat-typography-level-to-styles($config, caption);
                                                                                                                                                                                                                                      -      color: $theme-secondary-text;
                                                                                                                                                                                                                                      -      visibility: hidden;
                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    &:hover {
                                                                                                                                                                                                                                      -      background: $theme-background-hover;
                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -    &.active {
                                                                                                                                                                                                                                      -      border-color: #4285f4;
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -      .label {
                                                                                                                                                                                                                                      -        color: $theme-text;
                                                                                                                                                                                                                                      -        font-weight: 500;
                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -      .value {
                                                                                                                                                                                                                                      -        font-weight: 400;
                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -      .compared {
                                                                                                                                                                                                                                      -        visibility: visible;
                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -.content {
                                                                                                                                                                                                                                      -  max-width: 100%;
                                                                                                                                                                                                                                      -  display: flex;
                                                                                                                                                                                                                                      -  flex: 1;
                                                                                                                                                                                                                                      -  position: relative;
                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -.actions {
                                                                                                                                                                                                                                      -  .select {
                                                                                                                                                                                                                                      -    width: auto;
                                                                                                                                                                                                                                      -    max-width: 100px;
                                                                                                                                                                                                                                      -    font-size: 14px;
                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/BarChartWidgetComponent.html b/docs/components/BarChartWidgetComponent.html deleted file mode 100644 index 3751260fd..000000000 --- a/docs/components/BarChartWidgetComponent.html +++ /dev/null @@ -1,694 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        - libs/widgets/src/lib/components/bar-chart-widget/bar-chart-widget.component.ts -

                                                                                                                                                                                                                                        - - - -

                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        Implements

                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        - AfterViewInit -

                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                        selectorngx-bar-chart-widget
                                                                                                                                                                                                                                        styleUrls./bar-chart-widget.component.scss
                                                                                                                                                                                                                                        templateUrl./bar-chart-widget.component.html
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        Inputs
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                        -constructor() -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        Inputs

                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                        - - data - -

                                                                                                                                                                                                                                        - Type : ChartData - -

                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                        - - options - -

                                                                                                                                                                                                                                        - Type : BarChartWidgetOptions - -

                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                        - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                        -ngAfterViewInit() -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                        - - - - reload - - - -
                                                                                                                                                                                                                                        -reload() -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                        - - - - canvas - - - -
                                                                                                                                                                                                                                        - canvas: ElementRef - -
                                                                                                                                                                                                                                        - Type : ElementRef - -
                                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                                        - - @ViewChild('canvas', {read: ElementRef})
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                        - - - - chart - - - -
                                                                                                                                                                                                                                        - chart: Chart - -
                                                                                                                                                                                                                                        - Type : Chart - -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                        - - - - isLoading - - - -
                                                                                                                                                                                                                                        - isLoading: boolean - -
                                                                                                                                                                                                                                        - Type : boolean - -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        import { AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                        -import * as Chart from 'chart.js';
                                                                                                                                                                                                                                        -import { ChartConfiguration, ChartData } from 'chart.js';
                                                                                                                                                                                                                                        -import defaultsDeep from 'lodash-es/defaultsDeep';
                                                                                                                                                                                                                                        -import { defaultChartOptions } from '../chart-widget/chart-widget-defaults';
                                                                                                                                                                                                                                        -import { BarChartWidgetOptions } from './bar-chart-widget-options.interface';
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                        -  selector: 'ngx-bar-chart-widget',
                                                                                                                                                                                                                                        -  templateUrl: './bar-chart-widget.component.html',
                                                                                                                                                                                                                                        -  styleUrls: ['./bar-chart-widget.component.scss'],
                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                        -export class BarChartWidgetComponent implements AfterViewInit {
                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                        -  data: ChartData;
                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                        -  options: BarChartWidgetOptions;
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -  @ViewChild('canvas', { read: ElementRef })
                                                                                                                                                                                                                                        -  canvas: ElementRef;
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -  chart: Chart;
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -  isLoading: boolean;
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -  constructor() {}
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -  ngAfterViewInit() {
                                                                                                                                                                                                                                        -    this.chart = new Chart(this.canvas.nativeElement.getContext('2d'), <ChartConfiguration>{
                                                                                                                                                                                                                                        -      type: 'bar',
                                                                                                                                                                                                                                        -      data: this.data,
                                                                                                                                                                                                                                        -      options: defaultsDeep(
                                                                                                                                                                                                                                        -        {
                                                                                                                                                                                                                                        -          layout: {
                                                                                                                                                                                                                                        -            padding: {
                                                                                                                                                                                                                                        -              left: 24,
                                                                                                                                                                                                                                        -              right: 24,
                                                                                                                                                                                                                                        -              top: 16,
                                                                                                                                                                                                                                        -              bottom: 24,
                                                                                                                                                                                                                                        -            },
                                                                                                                                                                                                                                        -          },
                                                                                                                                                                                                                                        -          scales: {
                                                                                                                                                                                                                                        -            xAxes: [
                                                                                                                                                                                                                                        -              {
                                                                                                                                                                                                                                        -                barPercentage: 0.5,
                                                                                                                                                                                                                                        -              },
                                                                                                                                                                                                                                        -            ],
                                                                                                                                                                                                                                        -          },
                                                                                                                                                                                                                                        -          tooltips: {
                                                                                                                                                                                                                                        -            mode: 'index',
                                                                                                                                                                                                                                        -            intersect: false,
                                                                                                                                                                                                                                        -          },
                                                                                                                                                                                                                                        -          hover: {
                                                                                                                                                                                                                                        -            intersect: true,
                                                                                                                                                                                                                                        -          },
                                                                                                                                                                                                                                        -        },
                                                                                                                                                                                                                                        -        defaultChartOptions,
                                                                                                                                                                                                                                        -      ),
                                                                                                                                                                                                                                        -    });
                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -  reload() {
                                                                                                                                                                                                                                        -    this.isLoading = true;
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -    setTimeout(() => {
                                                                                                                                                                                                                                        -      this.isLoading = false;
                                                                                                                                                                                                                                        -    }, 2000);
                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        <ngx-chart-widget class="widget" [style.background]="options.background" [style.color]="options.color">
                                                                                                                                                                                                                                        -  <ngx-chart-widget-header>
                                                                                                                                                                                                                                        -    <ngx-chart-widget-header-title>{{ options.title }}</ngx-chart-widget-header-title>
                                                                                                                                                                                                                                        -    <ngx-chart-widget-header-sub-title>
                                                                                                                                                                                                                                        -      <mat-icon *ngIf="options.gain >= 0">arrow_upward</mat-icon>
                                                                                                                                                                                                                                        -      <mat-icon *ngIf="options.gain < 0">arrow_downward</mat-icon>
                                                                                                                                                                                                                                        -      {{ options.gain }}% {{ options.subTitle }}
                                                                                                                                                                                                                                        -    </ngx-chart-widget-header-sub-title>
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -    <ngx-chart-widget-header-actions>
                                                                                                                                                                                                                                        -      <button mat-icon-button (click)="reload()">
                                                                                                                                                                                                                                        -        <mat-icon>refresh</mat-icon>
                                                                                                                                                                                                                                        -      </button>
                                                                                                                                                                                                                                        -      <button mat-icon-button [matMenuTriggerFor]="menu">
                                                                                                                                                                                                                                        -        <mat-icon>more_vert</mat-icon>
                                                                                                                                                                                                                                        -      </button>
                                                                                                                                                                                                                                        -    </ngx-chart-widget-header-actions>
                                                                                                                                                                                                                                        -  </ngx-chart-widget-header>
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -  <ngx-chart-widget-content class="card-content">
                                                                                                                                                                                                                                        -    <div class="content">
                                                                                                                                                                                                                                        -      <canvas #canvas></canvas>
                                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                                        -  </ngx-chart-widget-content>
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -  <ngx-loading-overlay [isLoading]="isLoading"></ngx-loading-overlay>
                                                                                                                                                                                                                                        -</ngx-chart-widget>
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -<mat-menu #menu="matMenu">
                                                                                                                                                                                                                                        -  <button mat-menu-item>
                                                                                                                                                                                                                                        -    <mat-icon> settings</mat-icon>
                                                                                                                                                                                                                                        -    <span> Settings </span>
                                                                                                                                                                                                                                        -  </button>
                                                                                                                                                                                                                                        -  <button mat-menu-item disabled>
                                                                                                                                                                                                                                        -    <mat-icon> more</mat-icon>
                                                                                                                                                                                                                                        -    <span> More Info </span>
                                                                                                                                                                                                                                        -  </button>
                                                                                                                                                                                                                                        -  <button mat-menu-item>
                                                                                                                                                                                                                                        -    <mat-icon> remove_circle</mat-icon>
                                                                                                                                                                                                                                        -    <span> Remove Widget </span>
                                                                                                                                                                                                                                        -  </button>
                                                                                                                                                                                                                                        -</mat-menu>
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        - ./bar-chart-widget.component.scss -

                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        .card-content {
                                                                                                                                                                                                                                        -  padding: 0 !important;
                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -.content {
                                                                                                                                                                                                                                        -  max-width: 100%;
                                                                                                                                                                                                                                        -  display: flex;
                                                                                                                                                                                                                                        -  flex: 1;
                                                                                                                                                                                                                                        -  position: relative;
                                                                                                                                                                                                                                        -  height: 100%;
                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/BlogComponent.html b/docs/components/BlogComponent.html deleted file mode 100644 index 9f6a318a3..000000000 --- a/docs/components/BlogComponent.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          - libs/home/src/lib/containers/blog/blog.component.ts -

                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                          selectorngx-blog
                                                                                                                                                                                                                                          styleUrls./blog.component.scss
                                                                                                                                                                                                                                          templateUrl./blog.component.html
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                          -constructor() -
                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - - - - - - - -
                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                          -  selector: 'ngx-blog',
                                                                                                                                                                                                                                          -  templateUrl: './blog.component.html',
                                                                                                                                                                                                                                          -  styleUrls: ['./blog.component.scss'],
                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                          -export class BlogComponent {
                                                                                                                                                                                                                                          -  constructor() {}
                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          <div class="default-primary-header">
                                                                                                                                                                                                                                          -  <h1>Blog</h1>
                                                                                                                                                                                                                                          -</div>
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -<!-- via https://en.wikipedia.org/wiki/Pangram -->
                                                                                                                                                                                                                                          -<div class="mat-typography">
                                                                                                                                                                                                                                          -  <h1 class="mat-display-4">How vexingly quick daft zebras jump!</h1>
                                                                                                                                                                                                                                          -  <h1 class="mat-display-3">The wizard quickly jinxed the gnomes before they vaporized.</h1>
                                                                                                                                                                                                                                          -  <h1 class="mat-display-2">The quick brown fox jumps over the lazy dog.</h1>
                                                                                                                                                                                                                                          -  <h1 class="mat-display-1">Grumpy wizards make toxic brew for the evil queen and jack.</h1>
                                                                                                                                                                                                                                          -  <h1>Jackdaws love my big sphinx of quartz.</h1>
                                                                                                                                                                                                                                          -  <h2>The five boxing wizards jump quickly.</h2>
                                                                                                                                                                                                                                          -  <h3>Pack my box with five dozen liquor jugs.</h3>
                                                                                                                                                                                                                                          -  <h4>Bright vixens jump; dozy fowl quack.</h4>
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -  <div class="mat-body">
                                                                                                                                                                                                                                          -    <p>
                                                                                                                                                                                                                                          -      Lucas ipsum dolor sit amet coruscant fisto hutt dantooine darth binks amidala kessel grievous
                                                                                                                                                                                                                                          -      mara. Ackbar mandalore skywalker calamari. Calrissian binks tusken raider kit. Darth binks
                                                                                                                                                                                                                                          -      chewbacca skywalker. Moff baba padmé antilles darth ponda twi'lek darth. Dagobah naboo mara
                                                                                                                                                                                                                                          -      jawa dagobah ackbar ackbar darth. Mara mace r2-d2 mon naboo darth dantooine leia. Droid
                                                                                                                                                                                                                                          -      chewbacca mace han. Wampa hutt qui-gon solo jango secura tusken raider yoda. Droid boba mon
                                                                                                                                                                                                                                          -      mandalore jinn han binks. Maul darth kit wedge mace utapau darth darth fett.
                                                                                                                                                                                                                                          -    </p>
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -    <p>
                                                                                                                                                                                                                                          -      Antilles antilles secura yavin. Leia luke owen hutt baba yoda hoth obi-wan. Moff thrawn solo
                                                                                                                                                                                                                                          -      jango mon. Antilles lobot hutt tusken raider moff jade kessel binks. Moff ewok sidious naboo
                                                                                                                                                                                                                                          -      darth ventress tusken raider. Bothan yavin moff fett organa binks jade binks. Mara moff darth
                                                                                                                                                                                                                                          -      jade sidious. Darth binks obi-wan padmé dagobah hutt ponda antilles ackbar. Fett gamorrean
                                                                                                                                                                                                                                          -      obi-wan sidious hutt maul. Organa darth k-3po kessel aayla. Hoth c-3po amidala biggs kenobi
                                                                                                                                                                                                                                          -      twi'lek twi'lek ahsoka. Obi-wan ackbar windu wicket kit c-3po.
                                                                                                                                                                                                                                          -    </p>
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -    <p>
                                                                                                                                                                                                                                          -      Hutt naboo greedo skywalker hutt luuke ben. Hutt chewbacca jabba solo calrissian jade yoda
                                                                                                                                                                                                                                          -      amidala zabrak. Solo luke antilles c-3p0. Sith darth skywalker fett solo hutt skywalker c-3p0
                                                                                                                                                                                                                                          -      skywalker. Skywalker skywalker solo kessel darth fett. Skywalker skywalker c-3po jango.
                                                                                                                                                                                                                                          -      Alderaan darth boba calamari. Wicket alderaan darth darth chewbacca jango. Darth darth
                                                                                                                                                                                                                                          -      chewbacca ponda solo grievous hutt calrissian lando. Darth mon watto vader chewbacca.
                                                                                                                                                                                                                                          -      Lando mace luke yavin darth wookiee c-3po. Moff kessel skywalker yoda c-3po yavin.
                                                                                                                                                                                                                                          -    </p>
                                                                                                                                                                                                                                          -  </div>
                                                                                                                                                                                                                                          -</div>
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          - ./blog.component.scss -

                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/BreadcrumbsComponent.html b/docs/components/BreadcrumbsComponent.html deleted file mode 100644 index 89707f786..000000000 --- a/docs/components/BreadcrumbsComponent.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            - libs/breadcrumbs/src/lib/breadcrumbs.component.ts -

                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            - OnInit -

                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                            changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                            selectorngx-breadcrumbs
                                                                                                                                                                                                                                            styleUrls./breadcrumbs.component.scss
                                                                                                                                                                                                                                            templateUrl./breadcrumbs.component.html
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            Inputs
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                            -constructor() -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            Inputs

                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                            - - crumbs - -

                                                                                                                                                                                                                                            - Type : ReadonlyArray<Crumb> - -

                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                            - - title - -

                                                                                                                                                                                                                                            - Type : string - -

                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -export interface Crumb {
                                                                                                                                                                                                                                            -  name: string;
                                                                                                                                                                                                                                            -  link?: string;
                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                            -  selector: 'ngx-breadcrumbs',
                                                                                                                                                                                                                                            -  templateUrl: './breadcrumbs.component.html',
                                                                                                                                                                                                                                            -  styleUrls: ['./breadcrumbs.component.scss'],
                                                                                                                                                                                                                                            -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                            -export class BreadcrumbsComponent implements OnInit {
                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                            -  readonly title: string;
                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                            -  crumbs: ReadonlyArray<Crumb>;
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -  constructor() {}
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -  ngOnInit() {}
                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            <div class="title">{{ title }}</div>
                                                                                                                                                                                                                                            -<div class="crumbs" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                            -  <div class="crumb" *ngFor="let crumb of crumbs; let last = last" [ngSwitch]="!!crumb.link" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                            -    <a *ngSwitchCase="true" class="crumb link" [routerLink]="[crumb.link]">{{ crumb.name }}</a>
                                                                                                                                                                                                                                            -    <div *ngSwitchDefault class="link">{{ crumb.name }}</div>
                                                                                                                                                                                                                                            -    <mat-icon *ngIf="!last" class="chevron">chevron_right</mat-icon>
                                                                                                                                                                                                                                            -  </div>
                                                                                                                                                                                                                                            -</div>
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            - ./breadcrumbs.component.scss -

                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            $spacing: 24px;
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -:host {
                                                                                                                                                                                                                                            -  margin-bottom: $spacing;
                                                                                                                                                                                                                                            -  display: block;
                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/Card.html b/docs/components/Card.html deleted file mode 100644 index ec9e5fd02..000000000 --- a/docs/components/Card.html +++ /dev/null @@ -1,477 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              - libs/widgets/src/lib/components/card/card.component.ts -

                                                                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                              changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                              selectorngx-card
                                                                                                                                                                                                                                              styleUrls./card.component.scss
                                                                                                                                                                                                                                              templateUrl./card.component.html
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              HostBindings
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - - - - -
                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              HostBindings

                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                              - - - - class.ngx-card - - - -
                                                                                                                                                                                                                                              - class.ngx-card: - -
                                                                                                                                                                                                                                              - Default value : true -
                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - - - - -
                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              import { ChangeDetectionStrategy, Component, Directive, HostBinding, Input, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -/* tslint:disable */
                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                              -  selector: 'ngx-card',
                                                                                                                                                                                                                                              -  templateUrl: './card.component.html',
                                                                                                                                                                                                                                              -  styleUrls: ['./card.component.scss'],
                                                                                                                                                                                                                                              -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                              -export class Card {
                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card')
                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                              -  selector: 'ngx-card-header',
                                                                                                                                                                                                                                              -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                              -  template: `
                                                                                                                                                                                                                                              -    <div class="ngx-card-header-title-group">
                                                                                                                                                                                                                                              -      <ng-content select="ngx-card-header-title"></ng-content>
                                                                                                                                                                                                                                              -      <ng-content select="ngx-card-header-sub-title"></ng-content>
                                                                                                                                                                                                                                              -    </div>
                                                                                                                                                                                                                                              -    <ng-content></ng-content>
                                                                                                                                                                                                                                              -    <ng-content select="ngx-card-header-actions"></ng-content>
                                                                                                                                                                                                                                              -  `,
                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                              -export class CardHeader {
                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-header')
                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                              -  selector: 'ngx-card-content',
                                                                                                                                                                                                                                              -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                              -  template: `
                                                                                                                                                                                                                                              -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                              -export class CardContent {
                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-content')
                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                              -  selector: 'ngx-card-header-title',
                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                              -export class CardHeaderTitle {
                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-header-title')
                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                              -  selector: 'ngx-card-header-sub-title',
                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                              -export class CardHeaderSubTitle {
                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-header-sub-title')
                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                              -  selector: 'ngx-card-header-actions',
                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                              -export class CardHeaderActions {
                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-header-actions')
                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                              -  selector: 'ngx-card-actions',
                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                              -export class CardActions {
                                                                                                                                                                                                                                              -  /** Position of the actions inside the card. */
                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                              -  align: 'start' | 'end' = 'start';
                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-actions')
                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-actions-align-end')
                                                                                                                                                                                                                                              -  isEnd2 = this.align === 'end';
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              <ng-content></ng-content>
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              - ./card.component.scss -

                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              @import 'fu/var';
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -:host {
                                                                                                                                                                                                                                              -  background: white;
                                                                                                                                                                                                                                              -  border-radius: 2px;
                                                                                                                                                                                                                                              -  display: flex;
                                                                                                                                                                                                                                              -  flex-direction: column;
                                                                                                                                                                                                                                              -  flex: 1;
                                                                                                                                                                                                                                              -  position: relative;
                                                                                                                                                                                                                                              -  max-width: 100%;
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -  @include mat-elevation($card-elevation);
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -.ngx-card {
                                                                                                                                                                                                                                              -  background: white;
                                                                                                                                                                                                                                              -  border-radius: 2px;
                                                                                                                                                                                                                                              -  display: flex;
                                                                                                                                                                                                                                              -  flex-direction: column;
                                                                                                                                                                                                                                              -  flex: 1;
                                                                                                                                                                                                                                              -  position: relative;
                                                                                                                                                                                                                                              -  max-width: 100%;
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -  @include mat-elevation($card-elevation);
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -:host /deep/ {
                                                                                                                                                                                                                                              -  .ngx-card-header {
                                                                                                                                                                                                                                              -    padding: $spacing;
                                                                                                                                                                                                                                              -    display: flex;
                                                                                                                                                                                                                                              -    justify-content: flex-start;
                                                                                                                                                                                                                                              -    align-items: flex-start;
                                                                                                                                                                                                                                              -    align-content: flex-start;
                                                                                                                                                                                                                                              -    white-space: nowrap;
                                                                                                                                                                                                                                              -    overflow: hidden;
                                                                                                                                                                                                                                              -    //border-bottom: 1px solid $theme-divider;
                                                                                                                                                                                                                                              -    //background: $theme-app-bar;
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -    .ngx-card-header-title-group {
                                                                                                                                                                                                                                              -      display: flex;
                                                                                                                                                                                                                                              -      flex-direction: column;
                                                                                                                                                                                                                                              -      justify-content: flex-start;
                                                                                                                                                                                                                                              -      margin-right: $spacing;
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -      .ngx-card-header-title {
                                                                                                                                                                                                                                              -        white-space: nowrap;
                                                                                                                                                                                                                                              -        @include mat-typography-level-to-styles($config, subheading-1);
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -        display: flex;
                                                                                                                                                                                                                                              -        flex-direction: row;
                                                                                                                                                                                                                                              -        justify-content: flex-start;
                                                                                                                                                                                                                                              -        align-items: center;
                                                                                                                                                                                                                                              -        align-content: center;
                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -      .ngx-card-header-sub-title {
                                                                                                                                                                                                                                              -        white-space: nowrap;
                                                                                                                                                                                                                                              -        font-size: 13px;
                                                                                                                                                                                                                                              -        color: $theme-secondary-text;
                                                                                                                                                                                                                                              -        @include mat-typography-level-to-styles($config, body-1);
                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -    .ngx-card-header-actions {
                                                                                                                                                                                                                                              -      flex: 1;
                                                                                                                                                                                                                                              -      display: flex;
                                                                                                                                                                                                                                              -      justify-content: flex-end;
                                                                                                                                                                                                                                              -      color: $theme-icon;
                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -  .ngx-card-content {
                                                                                                                                                                                                                                              -    padding: 0 $spacing $spacing;
                                                                                                                                                                                                                                              -    flex: 1;
                                                                                                                                                                                                                                              -    display: flex;
                                                                                                                                                                                                                                              -    flex-direction: column;
                                                                                                                                                                                                                                              -    overflow: hidden;
                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -  .ngx-card-actions {
                                                                                                                                                                                                                                              -    padding: $spacing/3 $spacing/1.5;
                                                                                                                                                                                                                                              -    border-top: 1px solid $theme-divider;
                                                                                                                                                                                                                                              -    display: flex;
                                                                                                                                                                                                                                              -    flex-direction: row;
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -    button + button {
                                                                                                                                                                                                                                              -      margin-left: $spacing/3;
                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -    &.ngx-card-actions-align-end {
                                                                                                                                                                                                                                              -      justify-content: flex-end;
                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/CardComponent.html b/docs/components/CardComponent.html deleted file mode 100644 index 6211b3116..000000000 --- a/docs/components/CardComponent.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                - libs/experiments/src/lib/components/card/card.component.ts -

                                                                                                                                                                                                                                                - - - - - -
                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                selectorngx-card
                                                                                                                                                                                                                                                styleUrls./card.component.scss
                                                                                                                                                                                                                                                templateUrl./card.component.html
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - - - - - - - -
                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                import { Component } from '@angular/core';
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                -  selector: 'ngx-card',
                                                                                                                                                                                                                                                -  templateUrl: './card.component.html',
                                                                                                                                                                                                                                                -  styleUrls: ['./card.component.scss'],
                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                -export class CardComponent {
                                                                                                                                                                                                                                                -  constructor() {}
                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                <div
                                                                                                                                                                                                                                                -  gdAreas="header header | side content | footer footer"
                                                                                                                                                                                                                                                -  gdGap="16px"
                                                                                                                                                                                                                                                -  gdRows="auto auto auto"
                                                                                                                                                                                                                                                -  gdAreas.lt-md="header | side | content | footer"
                                                                                                                                                                                                                                                -  gdRows.lt-md="auto auto auto auto"
                                                                                                                                                                                                                                                ->
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -  <div class="header" gdArea="header">
                                                                                                                                                                                                                                                -    Header
                                                                                                                                                                                                                                                -  </div>
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -  <div class="side" gdArea="side">
                                                                                                                                                                                                                                                -    Side
                                                                                                                                                                                                                                                -  </div>
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -  <div class="content" gdArea="content">
                                                                                                                                                                                                                                                -    Content
                                                                                                                                                                                                                                                -  </div>
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -  <div class="footer" gdArea="footer">
                                                                                                                                                                                                                                                -    Footer
                                                                                                                                                                                                                                                -  </div>
                                                                                                                                                                                                                                                -</div>
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                - ./card.component.scss -

                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                :host {
                                                                                                                                                                                                                                                -  display: block;
                                                                                                                                                                                                                                                -  padding: 32px;
                                                                                                                                                                                                                                                -  border: 1px solid black;
                                                                                                                                                                                                                                                -  border-radius: 8px;
                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                -.header {
                                                                                                                                                                                                                                                -  background-color: #e3e3e3;
                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                -.side {
                                                                                                                                                                                                                                                -  background-color: #e3e3ff;
                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                -.content {
                                                                                                                                                                                                                                                -  background-color: #e3ffe3;
                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                -.footer {
                                                                                                                                                                                                                                                -  background-color: #ffe3e3;
                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/CardContent.html b/docs/components/CardContent.html deleted file mode 100644 index eea43c0b4..000000000 --- a/docs/components/CardContent.html +++ /dev/null @@ -1,363 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  - libs/widgets/src/lib/components/card/card.component.ts -

                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                  changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                  selectorngx-card-content
                                                                                                                                                                                                                                                  template
                                                                                                                                                                                                                                                  <ng-content></ng-content>
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  HostBindings
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - - - - -
                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  HostBindings

                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                  - - - - class.ngx-card-content - - - -
                                                                                                                                                                                                                                                  - class.ngx-card-content: - -
                                                                                                                                                                                                                                                  - Default value : true -
                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - - - - -
                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  import { ChangeDetectionStrategy, Component, Directive, HostBinding, Input, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -/* tslint:disable */
                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                  -  selector: 'ngx-card',
                                                                                                                                                                                                                                                  -  templateUrl: './card.component.html',
                                                                                                                                                                                                                                                  -  styleUrls: ['./card.component.scss'],
                                                                                                                                                                                                                                                  -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                  -export class Card {
                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-card')
                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                  -  selector: 'ngx-card-header',
                                                                                                                                                                                                                                                  -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                  -  template: `
                                                                                                                                                                                                                                                  -    <div class="ngx-card-header-title-group">
                                                                                                                                                                                                                                                  -      <ng-content select="ngx-card-header-title"></ng-content>
                                                                                                                                                                                                                                                  -      <ng-content select="ngx-card-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                  -    <ng-content></ng-content>
                                                                                                                                                                                                                                                  -    <ng-content select="ngx-card-header-actions"></ng-content>
                                                                                                                                                                                                                                                  -  `,
                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                  -export class CardHeader {
                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-card-header')
                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                  -  selector: 'ngx-card-content',
                                                                                                                                                                                                                                                  -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                  -  template: `
                                                                                                                                                                                                                                                  -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                  -export class CardContent {
                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-card-content')
                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -@Directive({
                                                                                                                                                                                                                                                  -  selector: 'ngx-card-header-title',
                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                  -export class CardHeaderTitle {
                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-card-header-title')
                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -@Directive({
                                                                                                                                                                                                                                                  -  selector: 'ngx-card-header-sub-title',
                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                  -export class CardHeaderSubTitle {
                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-card-header-sub-title')
                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -@Directive({
                                                                                                                                                                                                                                                  -  selector: 'ngx-card-header-actions',
                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                  -export class CardHeaderActions {
                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-card-header-actions')
                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -@Directive({
                                                                                                                                                                                                                                                  -  selector: 'ngx-card-actions',
                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                  -export class CardActions {
                                                                                                                                                                                                                                                  -  /** Position of the actions inside the card. */
                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                  -  align: 'start' | 'end' = 'start';
                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-card-actions')
                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-card-actions-align-end')
                                                                                                                                                                                                                                                  -  isEnd2 = this.align === 'end';
                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/CardHeader.html b/docs/components/CardHeader.html deleted file mode 100644 index e2449106a..000000000 --- a/docs/components/CardHeader.html +++ /dev/null @@ -1,369 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    - libs/widgets/src/lib/components/card/card.component.ts -

                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                    changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                    selectorngx-card-header
                                                                                                                                                                                                                                                    template
                                                                                                                                                                                                                                                    <div class="ngx-card-header-title-group">
                                                                                                                                                                                                                                                    -  <ng-content select="ngx-card-header-title"></ng-content>
                                                                                                                                                                                                                                                    -  <ng-content select="ngx-card-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                    -</div>
                                                                                                                                                                                                                                                    -<ng-content></ng-content>
                                                                                                                                                                                                                                                    -<ng-content select="ngx-card-header-actions"></ng-content>
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    HostBindings
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - - - - -
                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    HostBindings

                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                    - - - - class.ngx-card-header - - - -
                                                                                                                                                                                                                                                    - class.ngx-card-header: - -
                                                                                                                                                                                                                                                    - Default value : true -
                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - - - - -
                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    import { ChangeDetectionStrategy, Component, Directive, HostBinding, Input, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -/* tslint:disable */
                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                    -  selector: 'ngx-card',
                                                                                                                                                                                                                                                    -  templateUrl: './card.component.html',
                                                                                                                                                                                                                                                    -  styleUrls: ['./card.component.scss'],
                                                                                                                                                                                                                                                    -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                    -export class Card {
                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-card')
                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                    -  selector: 'ngx-card-header',
                                                                                                                                                                                                                                                    -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                    -  template: `
                                                                                                                                                                                                                                                    -    <div class="ngx-card-header-title-group">
                                                                                                                                                                                                                                                    -      <ng-content select="ngx-card-header-title"></ng-content>
                                                                                                                                                                                                                                                    -      <ng-content select="ngx-card-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                    -    <ng-content></ng-content>
                                                                                                                                                                                                                                                    -    <ng-content select="ngx-card-header-actions"></ng-content>
                                                                                                                                                                                                                                                    -  `,
                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                    -export class CardHeader {
                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-card-header')
                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                    -  selector: 'ngx-card-content',
                                                                                                                                                                                                                                                    -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                    -  template: `
                                                                                                                                                                                                                                                    -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                    -export class CardContent {
                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-card-content')
                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -@Directive({
                                                                                                                                                                                                                                                    -  selector: 'ngx-card-header-title',
                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                    -export class CardHeaderTitle {
                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-card-header-title')
                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -@Directive({
                                                                                                                                                                                                                                                    -  selector: 'ngx-card-header-sub-title',
                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                    -export class CardHeaderSubTitle {
                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-card-header-sub-title')
                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -@Directive({
                                                                                                                                                                                                                                                    -  selector: 'ngx-card-header-actions',
                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                    -export class CardHeaderActions {
                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-card-header-actions')
                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -@Directive({
                                                                                                                                                                                                                                                    -  selector: 'ngx-card-actions',
                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                    -export class CardActions {
                                                                                                                                                                                                                                                    -  /** Position of the actions inside the card. */
                                                                                                                                                                                                                                                    -  @Input()
                                                                                                                                                                                                                                                    -  align: 'start' | 'end' = 'start';
                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-card-actions')
                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-card-actions-align-end')
                                                                                                                                                                                                                                                    -  isEnd2 = this.align === 'end';
                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ChartWidget.html b/docs/components/ChartWidget.html deleted file mode 100644 index ee6c2e1f2..000000000 --- a/docs/components/ChartWidget.html +++ /dev/null @@ -1,436 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts -

                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                      changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                      selectorngx-chart-widget
                                                                                                                                                                                                                                                      styleUrls./chart-widget.component.scss
                                                                                                                                                                                                                                                      templateUrl./chart-widget.component.html
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      HostBindings
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      HostBindings

                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                      - - - - class.ngx-chart-widget - - - -
                                                                                                                                                                                                                                                      - class.ngx-chart-widget: - -
                                                                                                                                                                                                                                                      - Default value : true -
                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      import { ChangeDetectionStrategy, Component, Directive, HostBinding, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                      -/* tslint:disable */
                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget',
                                                                                                                                                                                                                                                      -  templateUrl: './chart-widget.component.html',
                                                                                                                                                                                                                                                      -  styleUrls: ['./chart-widget.component.scss'],
                                                                                                                                                                                                                                                      -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                      -export class ChartWidget {
                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget')
                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-header',
                                                                                                                                                                                                                                                      -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                      -  template: `
                                                                                                                                                                                                                                                      -    <div class="ngx-chart-widget-header-title-group">
                                                                                                                                                                                                                                                      -      <ng-content select="ngx-chart-widget-header-title"></ng-content>
                                                                                                                                                                                                                                                      -      <ng-content select="ngx-chart-widget-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                      -    <ng-content select="ngx-chart-widget-header-actions"></ng-content>
                                                                                                                                                                                                                                                      -  `,
                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                      -export class ChartWidgetHeader {
                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-header')
                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -@Directive({
                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-header-title',
                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                      -export class ChartWidgetHeaderTitle {
                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-header-title')
                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -@Directive({
                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-header-sub-title',
                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                      -export class ChartWidgetHeaderSubTitle {
                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-header-sub-title')
                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -@Directive({
                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-header-actions',
                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                      -export class ChartWidgetHeaderActions {
                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-header-actions')
                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-content',
                                                                                                                                                                                                                                                      -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                      -  template: `
                                                                                                                                                                                                                                                      -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                      -export class ChartWidgetContent {
                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-content')
                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      <ng-content></ng-content>
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      - ./chart-widget.component.scss -

                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      @import 'fu/var';
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -:host {
                                                                                                                                                                                                                                                      -  background: white;
                                                                                                                                                                                                                                                      -  border-radius: 2px;
                                                                                                                                                                                                                                                      -  display: flex;
                                                                                                                                                                                                                                                      -  flex-direction: column;
                                                                                                                                                                                                                                                      -  flex: 1 1 auto;
                                                                                                                                                                                                                                                      -  position: relative;
                                                                                                                                                                                                                                                      -  max-width: 100%;
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -  @include mat-elevation($card-elevation);
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -.ngx-chart-widget {
                                                                                                                                                                                                                                                      -  background: white;
                                                                                                                                                                                                                                                      -  border-radius: 2px;
                                                                                                                                                                                                                                                      -  display: flex;
                                                                                                                                                                                                                                                      -  flex-direction: column;
                                                                                                                                                                                                                                                      -  flex: 1 1 auto;
                                                                                                                                                                                                                                                      -  position: relative;
                                                                                                                                                                                                                                                      -  max-width: 100%;
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -  @include mat-elevation($card-elevation);
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -:host /deep/ {
                                                                                                                                                                                                                                                      -  .ngx-chart-widget-header {
                                                                                                                                                                                                                                                      -    padding: $spacing/1.5 $spacing;
                                                                                                                                                                                                                                                      -    display: flex;
                                                                                                                                                                                                                                                      -    justify-content: space-between;
                                                                                                                                                                                                                                                      -    align-items: center;
                                                                                                                                                                                                                                                      -    align-content: center;
                                                                                                                                                                                                                                                      -    white-space: nowrap;
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -    .ngx-chart-widget-header-title-group {
                                                                                                                                                                                                                                                      -      display: flex;
                                                                                                                                                                                                                                                      -      flex-direction: column;
                                                                                                                                                                                                                                                      -      justify-content: flex-start;
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -      .ngx-chart-widget-header-title {
                                                                                                                                                                                                                                                      -        @include mat-typography-level-to-styles($config, subheading-1);
                                                                                                                                                                                                                                                      -        font-weight: 500;
                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -      .ngx-chart-widget-header-sub-title {
                                                                                                                                                                                                                                                      -        @include mat-typography-level-to-styles($config, caption);
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -        .mat-icon {
                                                                                                                                                                                                                                                      -          width: 14px;
                                                                                                                                                                                                                                                      -          height: 14px;
                                                                                                                                                                                                                                                      -          font-size: 14px;
                                                                                                                                                                                                                                                      -          vertical-align: text-top;
                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -    .ngx-chart-widget-header-actions {
                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -  .ngx-chart-widget-content {
                                                                                                                                                                                                                                                      -    padding: $spacing/1.5 $spacing $spacing;
                                                                                                                                                                                                                                                      -    display: flex;
                                                                                                                                                                                                                                                      -    flex-direction: column;
                                                                                                                                                                                                                                                      -    flex: 1 1 auto;
                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ChartWidgetContent.html b/docs/components/ChartWidgetContent.html deleted file mode 100644 index 38fbf69de..000000000 --- a/docs/components/ChartWidgetContent.html +++ /dev/null @@ -1,348 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts -

                                                                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                        changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                        selectorngx-chart-widget-content
                                                                                                                                                                                                                                                        template
                                                                                                                                                                                                                                                        <ng-content></ng-content>
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        HostBindings
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - - - - -
                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        HostBindings

                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                        - - - - class.ngx-chart-widget-content - - - -
                                                                                                                                                                                                                                                        - class.ngx-chart-widget-content: - -
                                                                                                                                                                                                                                                        - Default value : true -
                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - - - - -
                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        import { ChangeDetectionStrategy, Component, Directive, HostBinding, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                        -/* tslint:disable */
                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                        -  selector: 'ngx-chart-widget',
                                                                                                                                                                                                                                                        -  templateUrl: './chart-widget.component.html',
                                                                                                                                                                                                                                                        -  styleUrls: ['./chart-widget.component.scss'],
                                                                                                                                                                                                                                                        -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                        -export class ChartWidget {
                                                                                                                                                                                                                                                        -  @HostBinding('class.ngx-chart-widget')
                                                                                                                                                                                                                                                        -  bodyClass = true;
                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                        -  selector: 'ngx-chart-widget-header',
                                                                                                                                                                                                                                                        -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                        -  template: `
                                                                                                                                                                                                                                                        -    <div class="ngx-chart-widget-header-title-group">
                                                                                                                                                                                                                                                        -      <ng-content select="ngx-chart-widget-header-title"></ng-content>
                                                                                                                                                                                                                                                        -      <ng-content select="ngx-chart-widget-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                                                        -    <ng-content select="ngx-chart-widget-header-actions"></ng-content>
                                                                                                                                                                                                                                                        -  `,
                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                        -export class ChartWidgetHeader {
                                                                                                                                                                                                                                                        -  @HostBinding('class.ngx-chart-widget-header')
                                                                                                                                                                                                                                                        -  bodyClass = true;
                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -@Directive({
                                                                                                                                                                                                                                                        -  selector: 'ngx-chart-widget-header-title',
                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                        -export class ChartWidgetHeaderTitle {
                                                                                                                                                                                                                                                        -  @HostBinding('class.ngx-chart-widget-header-title')
                                                                                                                                                                                                                                                        -  bodyClass = true;
                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -@Directive({
                                                                                                                                                                                                                                                        -  selector: 'ngx-chart-widget-header-sub-title',
                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                        -export class ChartWidgetHeaderSubTitle {
                                                                                                                                                                                                                                                        -  @HostBinding('class.ngx-chart-widget-header-sub-title')
                                                                                                                                                                                                                                                        -  bodyClass = true;
                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -@Directive({
                                                                                                                                                                                                                                                        -  selector: 'ngx-chart-widget-header-actions',
                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                        -export class ChartWidgetHeaderActions {
                                                                                                                                                                                                                                                        -  @HostBinding('class.ngx-chart-widget-header-actions')
                                                                                                                                                                                                                                                        -  bodyClass = true;
                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                        -  selector: 'ngx-chart-widget-content',
                                                                                                                                                                                                                                                        -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                        -  template: `
                                                                                                                                                                                                                                                        -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                        -export class ChartWidgetContent {
                                                                                                                                                                                                                                                        -  @HostBinding('class.ngx-chart-widget-content')
                                                                                                                                                                                                                                                        -  bodyClass = true;
                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ChartWidgetHeader.html b/docs/components/ChartWidgetHeader.html deleted file mode 100644 index a9eaa4eb8..000000000 --- a/docs/components/ChartWidgetHeader.html +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts -

                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                          changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                          selectorngx-chart-widget-header
                                                                                                                                                                                                                                                          template
                                                                                                                                                                                                                                                          <div class="ngx-chart-widget-header-title-group">
                                                                                                                                                                                                                                                          -  <ng-content select="ngx-chart-widget-header-title"></ng-content>
                                                                                                                                                                                                                                                          -  <ng-content select="ngx-chart-widget-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                          -</div>
                                                                                                                                                                                                                                                          -<ng-content select="ngx-chart-widget-header-actions"></ng-content>
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          HostBindings
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - - - - -
                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          HostBindings

                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                          - - - - class.ngx-chart-widget-header - - - -
                                                                                                                                                                                                                                                          - class.ngx-chart-widget-header: - -
                                                                                                                                                                                                                                                          - Default value : true -
                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - - - - -
                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          import { ChangeDetectionStrategy, Component, Directive, HostBinding, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                          -/* tslint:disable */
                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                          -  selector: 'ngx-chart-widget',
                                                                                                                                                                                                                                                          -  templateUrl: './chart-widget.component.html',
                                                                                                                                                                                                                                                          -  styleUrls: ['./chart-widget.component.scss'],
                                                                                                                                                                                                                                                          -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                          -export class ChartWidget {
                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-chart-widget')
                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                          -  selector: 'ngx-chart-widget-header',
                                                                                                                                                                                                                                                          -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                          -  template: `
                                                                                                                                                                                                                                                          -    <div class="ngx-chart-widget-header-title-group">
                                                                                                                                                                                                                                                          -      <ng-content select="ngx-chart-widget-header-title"></ng-content>
                                                                                                                                                                                                                                                          -      <ng-content select="ngx-chart-widget-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                          -    </div>
                                                                                                                                                                                                                                                          -    <ng-content select="ngx-chart-widget-header-actions"></ng-content>
                                                                                                                                                                                                                                                          -  `,
                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                          -export class ChartWidgetHeader {
                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-chart-widget-header')
                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                          -  selector: 'ngx-chart-widget-header-title',
                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                          -export class ChartWidgetHeaderTitle {
                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-chart-widget-header-title')
                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                          -  selector: 'ngx-chart-widget-header-sub-title',
                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                          -export class ChartWidgetHeaderSubTitle {
                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-chart-widget-header-sub-title')
                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                          -  selector: 'ngx-chart-widget-header-actions',
                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                          -export class ChartWidgetHeaderActions {
                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-chart-widget-header-actions')
                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                          -  selector: 'ngx-chart-widget-content',
                                                                                                                                                                                                                                                          -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                          -  template: `
                                                                                                                                                                                                                                                          -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                          -export class ChartWidgetContent {
                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-chart-widget-content')
                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ChatBoxComponent.html b/docs/components/ChatBoxComponent.html deleted file mode 100644 index dbfae0288..000000000 --- a/docs/components/ChatBoxComponent.html +++ /dev/null @@ -1,1311 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            - libs/chat-box/src/lib/chat-box.component.ts -

                                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            - OnInit - OnDestroy -

                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            selectorngx-chat-box
                                                                                                                                                                                                                                                            styleUrls./chat-box.component.scss
                                                                                                                                                                                                                                                            templateUrl./chat-box.component.html
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            -constructor(store: Store) -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                            store - Store - - No -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - checkTyping - - - -
                                                                                                                                                                                                                                                            -checkTyping() -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - Private - focus - - - -
                                                                                                                                                                                                                                                            - - focus() -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                            -ngOnDestroy() -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - Async - sendMessageToBot - - - -
                                                                                                                                                                                                                                                            - - sendMessageToBot() -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - Async - startTalkingToBot - - - -
                                                                                                                                                                                                                                                            - - startTalkingToBot() -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - Returns : any - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - Public - toggleChatBox - - - -
                                                                                                                                                                                                                                                            - - toggleChatBox() -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - bottom - - - -
                                                                                                                                                                                                                                                            - bottom: ElementRef - -
                                                                                                                                                                                                                                                            - Type : ElementRef - -
                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                            - - @ViewChild('bottom')
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - canUseSpeechRecognition - - - -
                                                                                                                                                                                                                                                            - canUseSpeechRecognition: - -
                                                                                                                                                                                                                                                            - Default value : false -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - canUseSpeechSynthesis - - - -
                                                                                                                                                                                                                                                            - canUseSpeechSynthesis: - -
                                                                                                                                                                                                                                                            - Default value : false -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - conversations$ - - - -
                                                                                                                                                                                                                                                            - conversations$: Observable<Conversation[]> - -
                                                                                                                                                                                                                                                            - Type : Observable<Conversation[]> - -
                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                            - - @Select(ChatBoxState.getConversations)
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - input - - - -
                                                                                                                                                                                                                                                            - input: ElementRef<HTMLInputElement> - -
                                                                                                                                                                                                                                                            - Type : ElementRef<HTMLInputElement> - -
                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                            - - @ViewChild('input')
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - selectedConversation$ - - - -
                                                                                                                                                                                                                                                            - selectedConversation$: Observable<Conversation> - -
                                                                                                                                                                                                                                                            - Type : Observable<Conversation> - -
                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                            - - @Select(ChatBoxState.getSelectedConversation)
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - showChatBox - - - -
                                                                                                                                                                                                                                                            - showChatBox: - -
                                                                                                                                                                                                                                                            - Default value : false -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - typing - - - -
                                                                                                                                                                                                                                                            - typing: - -
                                                                                                                                                                                                                                                            - Default value : false -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            - - - - voices - - - -
                                                                                                                                                                                                                                                            - voices: SpeechSynthesisVoice[] - -
                                                                                                                                                                                                                                                            - Type : SpeechSynthesisVoice[] - -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            import {
                                                                                                                                                                                                                                                            -  AfterViewInit,
                                                                                                                                                                                                                                                            -  Component,
                                                                                                                                                                                                                                                            -  ElementRef,
                                                                                                                                                                                                                                                            -  OnDestroy,
                                                                                                                                                                                                                                                            -  OnInit,
                                                                                                                                                                                                                                                            -  QueryList,
                                                                                                                                                                                                                                                            -  ViewChild,
                                                                                                                                                                                                                                                            -  ViewChildren,
                                                                                                                                                                                                                                                            -} from '@angular/core';
                                                                                                                                                                                                                                                            -import { scrollFabAnimation } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                                            -import { fromEvent, Observable } from 'rxjs';
                                                                                                                                                                                                                                                            -import { filter, take, takeUntil } from 'rxjs/operators';
                                                                                                                                                                                                                                                            -import { Select, Store } from '@ngxs/store';
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -import { ChatMessage, Conversation, ModeType } from './chat-message.model';
                                                                                                                                                                                                                                                            -import { ChatBoxState } from './state/chat-box.store';
                                                                                                                                                                                                                                                            -import { AddMessage, CreateNewConversation, FetchConversations, StartVoiceCommand } from './state/chat-box.actions';
                                                                                                                                                                                                                                                            -import { SendMessage } from './state/chat-box.actions';
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                            -  selector: 'ngx-chat-box',
                                                                                                                                                                                                                                                            -  templateUrl: './chat-box.component.html',
                                                                                                                                                                                                                                                            -  styleUrls: ['./chat-box.component.scss'],
                                                                                                                                                                                                                                                            -  animations: [scrollFabAnimation],
                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                            -export class ChatBoxComponent implements OnInit, OnDestroy {
                                                                                                                                                                                                                                                            -  showChatBox = false;
                                                                                                                                                                                                                                                            -  typing = false;
                                                                                                                                                                                                                                                            -  @ViewChild('bottom')
                                                                                                                                                                                                                                                            -  bottom: ElementRef;
                                                                                                                                                                                                                                                            -  @ViewChild('input')
                                                                                                                                                                                                                                                            -  input: ElementRef<HTMLInputElement>;
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  @Select(ChatBoxState.getConversations)
                                                                                                                                                                                                                                                            -  conversations$: Observable<Conversation[]>;
                                                                                                                                                                                                                                                            -  @Select(ChatBoxState.getSelectedConversation)
                                                                                                                                                                                                                                                            -  selectedConversation$: Observable<Conversation>;
                                                                                                                                                                                                                                                            -  voices: SpeechSynthesisVoice[];
                                                                                                                                                                                                                                                            -  canUseSpeechRecognition = false;
                                                                                                                                                                                                                                                            -  canUseSpeechSynthesis = false;
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  constructor(private store: Store) {
                                                                                                                                                                                                                                                            -    this.canUseSpeechRecognition = this.store.selectSnapshot(ChatBoxState.canUseSpeechRecognition);
                                                                                                                                                                                                                                                            -    this.canUseSpeechSynthesis = this.store.selectSnapshot(ChatBoxState.canUseSpeechSynthesis);
                                                                                                                                                                                                                                                            -    this.voices = this.store.selectSnapshot(ChatBoxState.getVoices);
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  ngOnInit() {
                                                                                                                                                                                                                                                            -    this.store.dispatch(new FetchConversations());
                                                                                                                                                                                                                                                            -    // TODO: only create new Conversation when user select one are more avatars and click +
                                                                                                                                                                                                                                                            -    if (!this.store.selectSnapshot(ChatBoxState.getSelectedConversation)) {
                                                                                                                                                                                                                                                            -      this.store.dispatch(new CreateNewConversation());
                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  ngOnDestroy() {}
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  private focus() {
                                                                                                                                                                                                                                                            -    setTimeout(() => {
                                                                                                                                                                                                                                                            -      this.input.nativeElement.focus();
                                                                                                                                                                                                                                                            -      if (this.bottom !== undefined) {
                                                                                                                                                                                                                                                            -        this.bottom.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'nearest' });
                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                            -      this.checkTyping();
                                                                                                                                                                                                                                                            -    }, 100);
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  async sendMessageToBot() {
                                                                                                                                                                                                                                                            -    const selectedConversation = this.store.selectSnapshot(ChatBoxState.getSelectedConversation);
                                                                                                                                                                                                                                                            -    this.store.dispatch(new SendMessage({ message: this.input.nativeElement.value }));
                                                                                                                                                                                                                                                            -    this.input.nativeElement.value = '';
                                                                                                                                                                                                                                                            -    this.focus();
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  async startTalkingToBot() {
                                                                                                                                                                                                                                                            -    this.store.dispatch(new StartVoiceCommand());
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  public toggleChatBox() {
                                                                                                                                                                                                                                                            -    this.showChatBox = !this.showChatBox;
                                                                                                                                                                                                                                                            -    if (this.showChatBox) {
                                                                                                                                                                                                                                                            -      this.focus();
                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  checkTyping() {
                                                                                                                                                                                                                                                            -    console.log('in checkTyping');
                                                                                                                                                                                                                                                            -    const keyDowns = fromEvent<KeyboardEvent>(this.input.nativeElement, 'keydown');
                                                                                                                                                                                                                                                            -    const enterUp = fromEvent<KeyboardEvent>(this.input.nativeElement, 'keyup').pipe(
                                                                                                                                                                                                                                                            -      filter((x: any) => x.key === 'Enter'),
                                                                                                                                                                                                                                                            -      take(1),
                                                                                                                                                                                                                                                            -    );
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -    const typing = keyDowns
                                                                                                                                                                                                                                                            -      .pipe(
                                                                                                                                                                                                                                                            -        // map(true),
                                                                                                                                                                                                                                                            -        takeUntil(enterUp),
                                                                                                                                                                                                                                                            -      )
                                                                                                                                                                                                                                                            -      .subscribe(() => (this.typing = true), () => (this.typing = false), () => (this.typing = false));
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            <button mat-fab class="chat-button" (click)="toggleChatBox()" [@scrollAnimation]="showChatBox? 'hide' : 'show'">
                                                                                                                                                                                                                                                            -  <mat-icon>chat_bubble</mat-icon>
                                                                                                                                                                                                                                                            -</button>
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -<div cdkDrag fxLayout='column' class="chat-box"
                                                                                                                                                                                                                                                            -     resizable [directions]="['bottom', 'top', 'left', 'right', 'top-left', 'bottom-left', 'top-right', 'bottom-right']"
                                                                                                                                                                                                                                                            -     [@scrollAnimation]="showChatBox? 'show' : 'hide'">
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  <mat-toolbar fxFlex fxLayout="row" fxLayoutAlign="start center"
                                                                                                                                                                                                                                                            -               class="header mat-elevation-z2" color="primary"
                                                                                                                                                                                                                                                            -               cdkDragHandle>
                                                                                                                                                                                                                                                            -    <span fxFlex>ChatBox</span>
                                                                                                                                                                                                                                                            -    <span fxFlex="grow"><!-- fill space --></span>
                                                                                                                                                                                                                                                            -    <!--<ngx-led color="orange" size="10px" [blink]=true></ngx-led>-->
                                                                                                                                                                                                                                                            -    <button *ngIf="canUseSpeechSynthesis" mat-icon-button>
                                                                                                                                                                                                                                                            -      <mat-icon (click)="drawer.toggle()">settings</mat-icon>
                                                                                                                                                                                                                                                            -    </button>
                                                                                                                                                                                                                                                            -    <button mat-icon-button>
                                                                                                                                                                                                                                                            -      <mat-icon (click)="toggleChatBox()">close</mat-icon>
                                                                                                                                                                                                                                                            -    </button>
                                                                                                                                                                                                                                                            -  </mat-toolbar>
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  <mat-drawer-container fxFlex="grow" [hasBackdrop]="false">
                                                                                                                                                                                                                                                            -    <mat-drawer mode="over" position="end" #drawer>
                                                                                                                                                                                                                                                            -      <mat-toolbar color="accent">Preferences</mat-toolbar>
                                                                                                                                                                                                                                                            -      <mat-accordion>
                                                                                                                                                                                                                                                            -        <mat-expansion-panel [expanded]="true">
                                                                                                                                                                                                                                                            -          <mat-expansion-panel-header>
                                                                                                                                                                                                                                                            -            <mat-panel-title>Voice</mat-panel-title>
                                                                                                                                                                                                                                                            -          </mat-expansion-panel-header>
                                                                                                                                                                                                                                                            -          <ng-template matExpansionPanelContent>
                                                                                                                                                                                                                                                            -            <ngx-text-to-speech-preferences></ngx-text-to-speech-preferences>
                                                                                                                                                                                                                                                            -          </ng-template>
                                                                                                                                                                                                                                                            -        </mat-expansion-panel>
                                                                                                                                                                                                                                                            -        <mat-expansion-panel>
                                                                                                                                                                                                                                                            -          <mat-expansion-panel-header>
                                                                                                                                                                                                                                                            -            <mat-panel-title>Other</mat-panel-title>
                                                                                                                                                                                                                                                            -          </mat-expansion-panel-header>
                                                                                                                                                                                                                                                            -          <p>TODO: Other Settings</p>
                                                                                                                                                                                                                                                            -        </mat-expansion-panel>
                                                                                                                                                                                                                                                            -      </mat-accordion>
                                                                                                                                                                                                                                                            -    </mat-drawer>
                                                                                                                                                                                                                                                            -    <mat-drawer-content fxFlex="grow" class="body">
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -      <div *ngFor="let message of (selectedConversation$ | async).messages"
                                                                                                                                                                                                                                                            -           class="message"
                                                                                                                                                                                                                                                            -           [ngClass]="{ 'from': message.isIncoming, 'to': message.isOutgoing }">
                                                                                                                                                                                                                                                            -        {{ message.render() }}
                                                                                                                                                                                                                                                            -      </div>
                                                                                                                                                                                                                                                            -      <div style="position: fixed; bottom: 60px;">
                                                                                                                                                                                                                                                            -        <typing-indicator *ngIf="typing"></typing-indicator>
                                                                                                                                                                                                                                                            -      </div>
                                                                                                                                                                                                                                                            -      <div #bottom></div><br/><br/><br/><br/>
                                                                                                                                                                                                                                                            -    </mat-drawer-content>
                                                                                                                                                                                                                                                            -  </mat-drawer-container>
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  <mat-divider></mat-divider>
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  <mat-form-field fxFlex class="input" color="primary">
                                                                                                                                                                                                                                                            -    <mat-icon matPrefix *ngIf="canUseSpeechRecognition" (click)="startTalkingToBot()">keyboard_voice</mat-icon>
                                                                                                                                                                                                                                                            -    <input #input matInput type="text"
                                                                                                                                                                                                                                                            -           (keyup.enter)="sendMessageToBot()" (keyup.escape)="showChatBox = false"
                                                                                                                                                                                                                                                            -           placeholder="Ask anything..." autocomplete="off" x-webkit-speech>
                                                                                                                                                                                                                                                            -    <mat-icon matSuffix (click)="sendMessageToBot()">send</mat-icon>
                                                                                                                                                                                                                                                            -  </mat-form-field>
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -</div>
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            - ./chat-box.component.scss -

                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            //@import "animation-helper";
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -//.flex-vert-center {
                                                                                                                                                                                                                                                            -//  display: flex;
                                                                                                                                                                                                                                                            -//  align-items: center;
                                                                                                                                                                                                                                                            -//}
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -/* CHAT BUTTON
                                                                                                                                                                                                                                                            --------------------------------------------------- */
                                                                                                                                                                                                                                                            -.chat-button {
                                                                                                                                                                                                                                                            -  position: fixed !important;
                                                                                                                                                                                                                                                            -  bottom: 25px;
                                                                                                                                                                                                                                                            -  right: 25px;
                                                                                                                                                                                                                                                            -  z-index: 5;
                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -/* CHAT BOX
                                                                                                                                                                                                                                                            --------------------------------------------------- */
                                                                                                                                                                                                                                                            -.chat-box {
                                                                                                                                                                                                                                                            -  background: #efefef;
                                                                                                                                                                                                                                                            -  position: fixed;
                                                                                                                                                                                                                                                            -  bottom: 50px;
                                                                                                                                                                                                                                                            -  right: 30px;
                                                                                                                                                                                                                                                            -  width: 351px;
                                                                                                                                                                                                                                                            -  height: 60vh;
                                                                                                                                                                                                                                                            -  min-width: 350px;
                                                                                                                                                                                                                                                            -  min-height: 400px;
                                                                                                                                                                                                                                                            -  max-width: 85vw;
                                                                                                                                                                                                                                                            -  max-height: 85vh;
                                                                                                                                                                                                                                                            -  border-radius: 5px;
                                                                                                                                                                                                                                                            -  z-index: 10;
                                                                                                                                                                                                                                                            -  box-shadow: 0px 5px 35px 9px #ccc;
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  /* Medium devices (tablets, 768px and up)*/
                                                                                                                                                                                                                                                            -  @media (min-width: 768px) {
                                                                                                                                                                                                                                                            -    min-height: 30vh;
                                                                                                                                                                                                                                                            -    height: 40vh;
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -  /* Large devices (desktops, 992px and up)*/
                                                                                                                                                                                                                                                            -  @media (min-width: 992px) {
                                                                                                                                                                                                                                                            -    height: 60vh;
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  /* Chat Drawer */
                                                                                                                                                                                                                                                            -  //mat-drawer {
                                                                                                                                                                                                                                                            -  //  width: 280px;
                                                                                                                                                                                                                                                            -  //}
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  /* Chat Header */
                                                                                                                                                                                                                                                            -  .header {
                                                                                                                                                                                                                                                            -    min-height: 72px !important;
                                                                                                                                                                                                                                                            -    border-top-left-radius: 5px;
                                                                                                                                                                                                                                                            -    border-top-right-radius: 5px;
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  /* Chat Messages */
                                                                                                                                                                                                                                                            -  .body {
                                                                                                                                                                                                                                                            -    padding: 15px;
                                                                                                                                                                                                                                                            -    overflow-y: scroll;
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -    @media only screen and (max-width: 500px) {
                                                                                                                                                                                                                                                            -      height: 40vh;
                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -    /* Chat Messages */
                                                                                                                                                                                                                                                            -    .message {
                                                                                                                                                                                                                                                            -      padding: 8px 16px;
                                                                                                                                                                                                                                                            -      font-weight: 400;
                                                                                                                                                                                                                                                            -      text-transform: none;
                                                                                                                                                                                                                                                            -      text-align: center;
                                                                                                                                                                                                                                                            -      font-size: 16px;
                                                                                                                                                                                                                                                            -      letter-spacing: 0.5px;
                                                                                                                                                                                                                                                            -      margin: 0 0 2px 0;
                                                                                                                                                                                                                                                            -      max-width: 65%;
                                                                                                                                                                                                                                                            -      float: none;
                                                                                                                                                                                                                                                            -      clear: both;
                                                                                                                                                                                                                                                            -      line-height: 1.5em;
                                                                                                                                                                                                                                                            -      transition: all 200ms;
                                                                                                                                                                                                                                                            -      box-sizing: content-box;
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -      &.to {
                                                                                                                                                                                                                                                            -        color: #212121;
                                                                                                                                                                                                                                                            -        background: rgba(255, 255, 255, 0.84);
                                                                                                                                                                                                                                                            -        border-radius: 5px 15px 15px 15px;
                                                                                                                                                                                                                                                            -        text-align: left;
                                                                                                                                                                                                                                                            -        word-break: break-all;
                                                                                                                                                                                                                                                            -        transform-origin: left top;
                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                            -      &.from {
                                                                                                                                                                                                                                                            -        color: #fff;
                                                                                                                                                                                                                                                            -        background: rgba(44, 44, 44, 0.67);
                                                                                                                                                                                                                                                            -        box-shadow: none;
                                                                                                                                                                                                                                                            -        float: right;
                                                                                                                                                                                                                                                            -        position: relative;
                                                                                                                                                                                                                                                            -        transform-origin: right top;
                                                                                                                                                                                                                                                            -        margin: 8px 0 10px 2px;
                                                                                                                                                                                                                                                            -        border-radius: 15px 15px 5px 15px;
                                                                                                                                                                                                                                                            -        text-align: center;
                                                                                                                                                                                                                                                            -        display: inline-block;
                                                                                                                                                                                                                                                            -        text-decoration: none;
                                                                                                                                                                                                                                                            -        word-break: normal;
                                                                                                                                                                                                                                                            -        /* animation-duration: 1s; */
                                                                                                                                                                                                                                                            -        animation-name: animate-reply;
                                                                                                                                                                                                                                                            -        animation-play-state: paused;
                                                                                                                                                                                                                                                            -        animation-fill-mode: forwards;
                                                                                                                                                                                                                                                            -        /* opacity: 0; */
                                                                                                                                                                                                                                                            -        transform: translate3d(0px, 0px, 0px);
                                                                                                                                                                                                                                                            -        animation-delay: -3s;
                                                                                                                                                                                                                                                            -        -webkit-animation-delay: -3s;
                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -      &.to + &.to,
                                                                                                                                                                                                                                                            -      &.from + &.from {
                                                                                                                                                                                                                                                            -        margin-top: -10px;
                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -  /* Chat Input */
                                                                                                                                                                                                                                                            -  .input {
                                                                                                                                                                                                                                                            -    padding: 10px 10px 10px;
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -    border-bottom-right-radius: 5px;
                                                                                                                                                                                                                                                            -    border-bottom-left-radius: 5px;
                                                                                                                                                                                                                                                            -    overflow: hidden;
                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                            -  //.input > * {
                                                                                                                                                                                                                                                            -  //  width: 100%;
                                                                                                                                                                                                                                                            -  //}
                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -/* Chat Content */
                                                                                                                                                                                                                                                            -.card-content {
                                                                                                                                                                                                                                                            -  white-space: nowrap;
                                                                                                                                                                                                                                                            -  overflow: hidden;
                                                                                                                                                                                                                                                            -  text-overflow: ellipsis;
                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ChatCardComponent.html b/docs/components/ChatCardComponent.html deleted file mode 100644 index be533f8cc..000000000 --- a/docs/components/ChatCardComponent.html +++ /dev/null @@ -1,348 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              - libs/chat-box/src/lib/components/chat-card/chat-card.component.ts -

                                                                                                                                                                                                                                                              - - - -

                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              - OnInit -

                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                              selectorngx-chat-card
                                                                                                                                                                                                                                                              styleUrls./chat-card.component.scss
                                                                                                                                                                                                                                                              templateUrl./chat-card.component.html
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                              -constructor() -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                              - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                              -ngOnInit() -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                              -  selector: 'ngx-chat-card',
                                                                                                                                                                                                                                                              -  templateUrl: './chat-card.component.html',
                                                                                                                                                                                                                                                              -  styleUrls: ['./chat-card.component.scss'],
                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                              -export class ChatCardComponent implements OnInit {
                                                                                                                                                                                                                                                              -  constructor() {}
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -  ngOnInit() {}
                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              <p>
                                                                                                                                                                                                                                                              -  chat-card works!
                                                                                                                                                                                                                                                              -</p>
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              - ./chat-card.component.scss -

                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ClapButtonComponent.html b/docs/components/ClapButtonComponent.html deleted file mode 100644 index 56ad83f4c..000000000 --- a/docs/components/ClapButtonComponent.html +++ /dev/null @@ -1,466 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                - libs/experiments/src/lib/containers/clap-button/clap-button.component.ts -

                                                                                                                                                                                                                                                                - - - - - -
                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                selectorapp-clap-button
                                                                                                                                                                                                                                                                styles - :host { - display: block; - padding: 1.5%; - position: relative; - } - .container { - min-height: 100vh; - display: flex; - justify-content: center; - align-items: center; - } -
                                                                                                                                                                                                                                                                template
                                                                                                                                                                                                                                                                <ngx-breadcrumbs title="Micro Interactions" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                -<div class="container">
                                                                                                                                                                                                                                                                -  <ngx-clap
                                                                                                                                                                                                                                                                -    [totalCounter]="totalCounter"
                                                                                                                                                                                                                                                                -    [userCounter]="userCounter"
                                                                                                                                                                                                                                                                -    (userCounterChange)="userCounter = userCounter + 1"
                                                                                                                                                                                                                                                                -  >
                                                                                                                                                                                                                                                                -  </ngx-clap>
                                                                                                                                                                                                                                                                -</div>
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                Accessors
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - - - - - - - -
                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                - - - - crumbs - - - -
                                                                                                                                                                                                                                                                - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Clap Button' }, - ] -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                - - - - userCounter - - - -
                                                                                                                                                                                                                                                                - userCounter: number - -
                                                                                                                                                                                                                                                                - Type : number - -
                                                                                                                                                                                                                                                                - Default value : 0 -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                - Accessors -

                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                - - totalCounter -
                                                                                                                                                                                                                                                                - gettotalCounter() -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                -  selector: 'app-clap-button',
                                                                                                                                                                                                                                                                -  template: `
                                                                                                                                                                                                                                                                -    <ngx-breadcrumbs title="Micro Interactions" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                -    <div class="container">
                                                                                                                                                                                                                                                                -      <ngx-clap
                                                                                                                                                                                                                                                                -        [totalCounter]="totalCounter"
                                                                                                                                                                                                                                                                -        [userCounter]="userCounter"
                                                                                                                                                                                                                                                                -        (userCounterChange)="userCounter = userCounter + 1"
                                                                                                                                                                                                                                                                -      >
                                                                                                                                                                                                                                                                -      </ngx-clap>
                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                -  `,
                                                                                                                                                                                                                                                                -  styles: [
                                                                                                                                                                                                                                                                -    `
                                                                                                                                                                                                                                                                -      :host {
                                                                                                                                                                                                                                                                -        display: block;
                                                                                                                                                                                                                                                                -        padding: 1.5%;
                                                                                                                                                                                                                                                                -        position: relative;
                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                -      .container {
                                                                                                                                                                                                                                                                -        min-height: 100vh;
                                                                                                                                                                                                                                                                -        display: flex;
                                                                                                                                                                                                                                                                -        justify-content: center;
                                                                                                                                                                                                                                                                -        align-items: center;
                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                -    `,
                                                                                                                                                                                                                                                                -  ],
                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                -export class ClapButtonComponent {
                                                                                                                                                                                                                                                                -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                -    { name: 'Clap Button' },
                                                                                                                                                                                                                                                                -  ];
                                                                                                                                                                                                                                                                -  userCounter = 0;
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -  get totalCounter() {
                                                                                                                                                                                                                                                                -    return this.userCounter + 1000;
                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                -      :host {
                                                                                                                                                                                                                                                                -        display: block;
                                                                                                                                                                                                                                                                -        padding: 1.5%;
                                                                                                                                                                                                                                                                -        position: relative;
                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                -      .container {
                                                                                                                                                                                                                                                                -        min-height: 100vh;
                                                                                                                                                                                                                                                                -        display: flex;
                                                                                                                                                                                                                                                                -        justify-content: center;
                                                                                                                                                                                                                                                                -        align-items: center;
                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                -    
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ClapComponent.html b/docs/components/ClapComponent.html deleted file mode 100644 index fe3d8875b..000000000 --- a/docs/components/ClapComponent.html +++ /dev/null @@ -1,534 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  - libs/clap/src/lib/clap.component.ts -

                                                                                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  - OnInit -

                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                  changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                                  selectorngx-clap
                                                                                                                                                                                                                                                                  styles - :host { - position: relative; - } -
                                                                                                                                                                                                                                                                  template
                                                                                                                                                                                                                                                                  <ngx-counter-bubble
                                                                                                                                                                                                                                                                  -  *ngIf="showBubble$ | async"
                                                                                                                                                                                                                                                                  -  [counter]="userCounter" >
                                                                                                                                                                                                                                                                  -</ngx-counter-bubble>
                                                                                                                                                                                                                                                                  -<ngx-total-counter
                                                                                                                                                                                                                                                                  -  *ngIf="!(showBubble$ | async)"
                                                                                                                                                                                                                                                                  -  [counter]="totalCounter">
                                                                                                                                                                                                                                                                  -</ngx-total-counter>
                                                                                                                                                                                                                                                                  -<ngx-fab
                                                                                                                                                                                                                                                                  -  (click)="userCounterChange.emit()"
                                                                                                                                                                                                                                                                  -  [counter]="userCounter">
                                                                                                                                                                                                                                                                  -</ngx-fab>
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  Inputs
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  Outputs
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  Inputs

                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                  - - totalCounter - -

                                                                                                                                                                                                                                                                  - Type : number - -

                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                  - - userCounter - -

                                                                                                                                                                                                                                                                  - Type : number - -

                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  Outputs

                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                  - - userCounterChange - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                  - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                  -ngOnInit() -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                  - - - - showBubble$ - - - -
                                                                                                                                                                                                                                                                  - showBubble$: Observable<boolean> - -
                                                                                                                                                                                                                                                                  - Type : Observable<boolean> - -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
                                                                                                                                                                                                                                                                  -import { merge, Observable } from 'rxjs';
                                                                                                                                                                                                                                                                  -import { debounceTime, mapTo } from 'rxjs/operators';
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                  -  selector: 'ngx-clap',
                                                                                                                                                                                                                                                                  -  template: `
                                                                                                                                                                                                                                                                  -  <ngx-counter-bubble
                                                                                                                                                                                                                                                                  -    *ngIf="showBubble$ | async"
                                                                                                                                                                                                                                                                  -    [counter]="userCounter" >
                                                                                                                                                                                                                                                                  -  </ngx-counter-bubble>
                                                                                                                                                                                                                                                                  -  <ngx-total-counter
                                                                                                                                                                                                                                                                  -    *ngIf="!(showBubble$ | async)"
                                                                                                                                                                                                                                                                  -    [counter]="totalCounter">
                                                                                                                                                                                                                                                                  -  </ngx-total-counter>
                                                                                                                                                                                                                                                                  -  <ngx-fab
                                                                                                                                                                                                                                                                  -    (click)="userCounterChange.emit()"
                                                                                                                                                                                                                                                                  -    [counter]="userCounter">
                                                                                                                                                                                                                                                                  -  </ngx-fab>
                                                                                                                                                                                                                                                                  -  `,
                                                                                                                                                                                                                                                                  -  styles: [
                                                                                                                                                                                                                                                                  -    `
                                                                                                                                                                                                                                                                  -      :host {
                                                                                                                                                                                                                                                                  -        position: relative;
                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                  -    `,
                                                                                                                                                                                                                                                                  -  ],
                                                                                                                                                                                                                                                                  -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                  -export class ClapComponent implements OnInit {
                                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                                  -  totalCounter: number;
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                                  -  userCounter: number;
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -  @Output()
                                                                                                                                                                                                                                                                  -  userCounterChange = new EventEmitter<void>();
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -  showBubble$: Observable<boolean>;
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -  ngOnInit() {
                                                                                                                                                                                                                                                                  -    const change$ = this.userCounterChange.asObservable();
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -    const showBubble$ = change$.pipe(mapTo(true));
                                                                                                                                                                                                                                                                  -    const hideBubble$ = change$.pipe(
                                                                                                                                                                                                                                                                  -      debounceTime(400),
                                                                                                                                                                                                                                                                  -      mapTo(false),
                                                                                                                                                                                                                                                                  -    );
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -    this.showBubble$ = merge(showBubble$, hideBubble$);
                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                  -      :host {
                                                                                                                                                                                                                                                                  -        position: relative;
                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                  -    
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ContextMenuComponent-1.html b/docs/components/ContextMenuComponent-1.html deleted file mode 100644 index e8fe79b80..000000000 --- a/docs/components/ContextMenuComponent-1.html +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    - libs/experiments/src/lib/containers/context-menu/context-menu.component.ts -

                                                                                                                                                                                                                                                                    - - - -

                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    Implements

                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    - OnInit -

                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                    selectorngx-context-menu
                                                                                                                                                                                                                                                                    styleUrls./context-menu.component.scss
                                                                                                                                                                                                                                                                    templateUrl./context-menu.component.html
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                    -constructor() -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                    - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                    -ngOnInit() -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                    - - - - crumbs - - - -
                                                                                                                                                                                                                                                                    - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                    - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                    - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Context Menu' }, - ] -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                    -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                    -  selector: 'ngx-context-menu',
                                                                                                                                                                                                                                                                    -  templateUrl: './context-menu.component.html',
                                                                                                                                                                                                                                                                    -  styleUrls: ['./context-menu.component.scss'],
                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                    -export class ContextMenuComponent implements OnInit {
                                                                                                                                                                                                                                                                    -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                    -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                    -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                    -    { name: 'Context Menu' },
                                                                                                                                                                                                                                                                    -  ];
                                                                                                                                                                                                                                                                    -  constructor() {}
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -  ngOnInit() {}
                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    <ngx-breadcrumbs title="Experiments" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                    -<mat-card>
                                                                                                                                                                                                                                                                    -  <mat-list role="list">
                                                                                                                                                                                                                                                                    -    <mat-list-item [contextMenu]="myContextMenu">Right click me to see the menu 1</mat-list-item>
                                                                                                                                                                                                                                                                    -    <mat-list-item [contextMenu]="myContextMenu">Right click me to see the menu 2</mat-list-item>
                                                                                                                                                                                                                                                                    -    <mat-list-item [contextMenu]="myContextMenu">Right click me to see the menu 3</mat-list-item>
                                                                                                                                                                                                                                                                    -  </mat-list>
                                                                                                                                                                                                                                                                    -</mat-card>
                                                                                                                                                                                                                                                                    -<ng-template #myContextMenu>
                                                                                                                                                                                                                                                                    -  <context-menu>
                                                                                                                                                                                                                                                                    -    <button mat-button>Select all</button>
                                                                                                                                                                                                                                                                    -    <button mat-button>Edit Row</button>
                                                                                                                                                                                                                                                                    -    <button mat-button>Quick tag</button>
                                                                                                                                                                                                                                                                    -    <button mat-button>Copy selected column</button>
                                                                                                                                                                                                                                                                    -    <button mat-button>Copy selected row</button>
                                                                                                                                                                                                                                                                    -    <button mat-button>Delete</button>
                                                                                                                                                                                                                                                                    -  </context-menu>
                                                                                                                                                                                                                                                                    -</ng-template>
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    - ./context-menu.component.scss -

                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    :host {
                                                                                                                                                                                                                                                                    -  display: block;
                                                                                                                                                                                                                                                                    -  padding: 1.5%;
                                                                                                                                                                                                                                                                    -  position: relative;
                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ContextMenuComponent.html b/docs/components/ContextMenuComponent.html deleted file mode 100644 index 9df5ffd70..000000000 --- a/docs/components/ContextMenuComponent.html +++ /dev/null @@ -1,333 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      - libs/context-menu/src/lib/context-menu.component.ts -

                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                      changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                                      selectorcontext-menu
                                                                                                                                                                                                                                                                      styleUrls./context-menu.component.scss
                                                                                                                                                                                                                                                                      templateUrl./context-menu.component.html
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      HostBindings
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      HostBindings

                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                      - - - - class.mat-elevation-z2 - - - -
                                                                                                                                                                                                                                                                      - class.mat-elevation-z2: - -
                                                                                                                                                                                                                                                                      - Default value : true -
                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      import { Component, ChangeDetectionStrategy, HostListener, HostBinding } from '@angular/core';
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                      -  selector: 'context-menu',
                                                                                                                                                                                                                                                                      -  templateUrl: './context-menu.component.html',
                                                                                                                                                                                                                                                                      -  styleUrls: ['./context-menu.component.scss'],
                                                                                                                                                                                                                                                                      -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                      -export class ContextMenuComponent {
                                                                                                                                                                                                                                                                      -  @HostBinding('class.mat-elevation-z2')
                                                                                                                                                                                                                                                                      -  public elevation = true;
                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      <ng-content></ng-content>
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      - ./context-menu.component.scss -

                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      :host {
                                                                                                                                                                                                                                                                      -  background: #fff;
                                                                                                                                                                                                                                                                      -  min-width: 112px;
                                                                                                                                                                                                                                                                      -  max-width: 280px;
                                                                                                                                                                                                                                                                      -  padding-top: 8px;
                                                                                                                                                                                                                                                                      -  padding-bottom: 8px;
                                                                                                                                                                                                                                                                      -  display: block;
                                                                                                                                                                                                                                                                      -  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14),
                                                                                                                                                                                                                                                                      -    0px 1px 5px 0px rgba(0, 0, 0, 0.12);
                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -:host /deep/ button {
                                                                                                                                                                                                                                                                      -  display: block;
                                                                                                                                                                                                                                                                      -  width: 100%;
                                                                                                                                                                                                                                                                      -  text-align: left;
                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/CounterBubbleComponent.html b/docs/components/CounterBubbleComponent.html deleted file mode 100644 index b09022cd8..000000000 --- a/docs/components/CounterBubbleComponent.html +++ /dev/null @@ -1,423 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        - libs/clap/src/lib/components/counter-bubble.component.ts -

                                                                                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                        changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                                        selectorngx-counter-bubble
                                                                                                                                                                                                                                                                        styles - :host { - background-color: #02b875; - color: white; - position: absolute; - width: 42px; - height: 42px; - left: calc(50% - 21px); - top: -64px; - font-size: 12px; - border-radius: 50%; - display: flex; - justify-content: center; - align-items: center; - } -
                                                                                                                                                                                                                                                                        template
                                                                                                                                                                                                                                                                        +{{counter}}
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        Inputs
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        HostBindings
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        Inputs

                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                        - - counter - -

                                                                                                                                                                                                                                                                        - Type : number - -

                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        HostBindings

                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                        - - - - @visibilityChange - - - -
                                                                                                                                                                                                                                                                        - @visibilityChange: - -
                                                                                                                                                                                                                                                                        - Default value : true -
                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - - - - -
                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        import { transition, trigger, useAnimation } from '@angular/animations';
                                                                                                                                                                                                                                                                        -import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
                                                                                                                                                                                                                                                                        -import { pulseAnimation, slideInAnimation, slideOutAnimation } from '../animations';
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                                        -  selector: 'ngx-counter-bubble',
                                                                                                                                                                                                                                                                        -  template: `+{{counter}}`,
                                                                                                                                                                                                                                                                        -  styles: [
                                                                                                                                                                                                                                                                        -    `
                                                                                                                                                                                                                                                                        -      :host {
                                                                                                                                                                                                                                                                        -        background-color: #02b875;
                                                                                                                                                                                                                                                                        -        color: white;
                                                                                                                                                                                                                                                                        -        position: absolute;
                                                                                                                                                                                                                                                                        -        width: 42px;
                                                                                                                                                                                                                                                                        -        height: 42px;
                                                                                                                                                                                                                                                                        -        left: calc(50% - 21px);
                                                                                                                                                                                                                                                                        -        top: -64px;
                                                                                                                                                                                                                                                                        -        font-size: 12px;
                                                                                                                                                                                                                                                                        -        border-radius: 50%;
                                                                                                                                                                                                                                                                        -        display: flex;
                                                                                                                                                                                                                                                                        -        justify-content: center;
                                                                                                                                                                                                                                                                        -        align-items: center;
                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                        -    `,
                                                                                                                                                                                                                                                                        -  ],
                                                                                                                                                                                                                                                                        -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                        -  animations: [
                                                                                                                                                                                                                                                                        -    trigger('visibilityChange', [
                                                                                                                                                                                                                                                                        -      transition(':enter', [
                                                                                                                                                                                                                                                                        -        useAnimation(slideInAnimation, {
                                                                                                                                                                                                                                                                        -          params: { from: '20%', timings: '200ms ease-in' },
                                                                                                                                                                                                                                                                        -        }),
                                                                                                                                                                                                                                                                        -      ]),
                                                                                                                                                                                                                                                                        -      transition(':leave', [
                                                                                                                                                                                                                                                                        -        useAnimation(slideOutAnimation, {
                                                                                                                                                                                                                                                                        -          params: { to: '-200%', timings: '200ms ease-in' },
                                                                                                                                                                                                                                                                        -        }),
                                                                                                                                                                                                                                                                        -      ]),
                                                                                                                                                                                                                                                                        -    ]),
                                                                                                                                                                                                                                                                        -    trigger('counterChange', [
                                                                                                                                                                                                                                                                        -      transition(
                                                                                                                                                                                                                                                                        -        ':increment',
                                                                                                                                                                                                                                                                        -        useAnimation(pulseAnimation, {
                                                                                                                                                                                                                                                                        -          params: {
                                                                                                                                                                                                                                                                        -            timings: '200ms',
                                                                                                                                                                                                                                                                        -            scale: 1.2,
                                                                                                                                                                                                                                                                        -          },
                                                                                                                                                                                                                                                                        -        }),
                                                                                                                                                                                                                                                                        -      ),
                                                                                                                                                                                                                                                                        -    ]),
                                                                                                                                                                                                                                                                        -  ],
                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                        -export class CounterBubbleComponent {
                                                                                                                                                                                                                                                                        -  @HostBinding('@counterChange')
                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                        -  counter: number;
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -  @HostBinding('@visibilityChange')
                                                                                                                                                                                                                                                                        -  animation = true;
                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                        -      :host {
                                                                                                                                                                                                                                                                        -        background-color: #02b875;
                                                                                                                                                                                                                                                                        -        color: white;
                                                                                                                                                                                                                                                                        -        position: absolute;
                                                                                                                                                                                                                                                                        -        width: 42px;
                                                                                                                                                                                                                                                                        -        height: 42px;
                                                                                                                                                                                                                                                                        -        left: calc(50% - 21px);
                                                                                                                                                                                                                                                                        -        top: -64px;
                                                                                                                                                                                                                                                                        -        font-size: 12px;
                                                                                                                                                                                                                                                                        -        border-radius: 50%;
                                                                                                                                                                                                                                                                        -        display: flex;
                                                                                                                                                                                                                                                                        -        justify-content: center;
                                                                                                                                                                                                                                                                        -        align-items: center;
                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                        -    
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/DashboardLayoutComponent.html b/docs/components/DashboardLayoutComponent.html deleted file mode 100644 index 1d0262e1a..000000000 --- a/docs/components/DashboardLayoutComponent.html +++ /dev/null @@ -1,1032 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          - libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.ts -

                                                                                                                                                                                                                                                                          - - - -

                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          Implements

                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          - OnInit - OnDestroy -

                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          selectorngx-dashboard-layout
                                                                                                                                                                                                                                                                          styleUrls./dashboard-layout.component.scss
                                                                                                                                                                                                                                                                          templateUrl./dashboard-layout.component.html
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          -constructor(router: Router, store: Store, actions$: Actions, media: ObservableMedia, oauthService: OAuthService) -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                          router - Router - - No -
                                                                                                                                                                                                                                                                          store - Store - - No -
                                                                                                                                                                                                                                                                          actions$ - Actions - - No -
                                                                                                                                                                                                                                                                          media - ObservableMedia - - No -
                                                                                                                                                                                                                                                                          oauthService - OAuthService - - No -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - getRouteDepth - - - -
                                                                                                                                                                                                                                                                          -getRouteDepth(outlet) -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          NameOptional
                                                                                                                                                                                                                                                                          outlet - No -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                          -ngOnDestroy() -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                          -ngOnInit() -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                          - Properties -

                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - Private - _mediaSubscription - - - -
                                                                                                                                                                                                                                                                          - _mediaSubscription: Subscription - -
                                                                                                                                                                                                                                                                          - Type : Subscription - -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - Private - _routerEventsSubscription - - - -
                                                                                                                                                                                                                                                                          - _routerEventsSubscription: Subscription - -
                                                                                                                                                                                                                                                                          - Type : Subscription - -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - crumbs$ - - - -
                                                                                                                                                                                                                                                                          - crumbs$: - -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - depth$ - - - -
                                                                                                                                                                                                                                                                          - depth$: - -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - isMobile - - - -
                                                                                                                                                                                                                                                                          - isMobile: - -
                                                                                                                                                                                                                                                                          - Default value : false -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - quickpanelOpen - - - -
                                                                                                                                                                                                                                                                          - quickpanelOpen: - -
                                                                                                                                                                                                                                                                          - Default value : false -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - sidenav - - - -
                                                                                                                                                                                                                                                                          - sidenav: - -
                                                                                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                                                                                          - - @ViewChild('sidenav')
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - sidenavMode - - - -
                                                                                                                                                                                                                                                                          - sidenavMode: string - -
                                                                                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                                                                                          - Default value : 'side' -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          - - - - sidenavOpen - - - -
                                                                                                                                                                                                                                                                          - sidenavOpen: - -
                                                                                                                                                                                                                                                                          - Default value : true -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                          -import { Subscription } from 'rxjs';
                                                                                                                                                                                                                                                                          -import { MediaChange, ObservableMedia } from '@angular/flex-layout';
                                                                                                                                                                                                                                                                          -import { NavigationEnd, Router } from '@angular/router';
                                                                                                                                                                                                                                                                          -import { routeAnimation, hierarchicalRouteAnimation } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                                                          -import { Actions, Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                          -import { ConnectWebSocket, DisconnectWebSocket } from '@ngx-starter-kit/socketio-plugin';
                                                                                                                                                                                                                                                                          -import { OAuthService } from 'angular-oauth2-oidc';
                                                                                                                                                                                                                                                                          -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                          -import { RouterState } from '@ngxs/router-plugin';
                                                                                                                                                                                                                                                                          -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                          -  selector: 'ngx-dashboard-layout',
                                                                                                                                                                                                                                                                          -  templateUrl: './dashboard-layout.component.html',
                                                                                                                                                                                                                                                                          -  styleUrls: ['./dashboard-layout.component.scss'],
                                                                                                                                                                                                                                                                          -  animations: [routeAnimation],
                                                                                                                                                                                                                                                                          -  // animations: [hierarchicalRouteAnimation],
                                                                                                                                                                                                                                                                          -  // encapsulation: ViewEncapsulation.None
                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                          -export class DashboardLayoutComponent implements OnInit, OnDestroy {
                                                                                                                                                                                                                                                                          -  @ViewChild('sidenav')
                                                                                                                                                                                                                                                                          -  sidenav;
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  private _mediaSubscription: Subscription;
                                                                                                                                                                                                                                                                          -  private _routerEventsSubscription: Subscription;
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  quickpanelOpen = false;
                                                                                                                                                                                                                                                                          -  sidenavOpen = true;
                                                                                                                                                                                                                                                                          -  sidenavMode = 'side';
                                                                                                                                                                                                                                                                          -  isMobile = false;
                                                                                                                                                                                                                                                                          -  crumbs$;
                                                                                                                                                                                                                                                                          -  depth$;
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  constructor(
                                                                                                                                                                                                                                                                          -    private router: Router,
                                                                                                                                                                                                                                                                          -    private store: Store,
                                                                                                                                                                                                                                                                          -    private actions$: Actions,
                                                                                                                                                                                                                                                                          -    private media: ObservableMedia,
                                                                                                                                                                                                                                                                          -    private oauthService: OAuthService,
                                                                                                                                                                                                                                                                          -  ) {}
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  ngOnInit() {
                                                                                                                                                                                                                                                                          -    this.crumbs$ = this.store
                                                                                                                                                                                                                                                                          -      .select<any>(RouterState.state)
                                                                                                                                                                                                                                                                          -      .pipe(map(state => Array.from(state.breadcrumbs, ([key, value]) => ({ name: key, link: '/' + value }))));
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -    this.depth$ = this.store.select<any>(RouterState.state).pipe(map(state => state.data.depth));
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -    this._mediaSubscription = this.media.subscribe((change: MediaChange) => {
                                                                                                                                                                                                                                                                          -      const isMobile = change.mqAlias === 'xs' || change.mqAlias === 'sm';
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -      this.isMobile = isMobile;
                                                                                                                                                                                                                                                                          -      this.sidenavMode = isMobile ? 'over' : 'side';
                                                                                                                                                                                                                                                                          -      this.sidenavOpen = !isMobile;
                                                                                                                                                                                                                                                                          -    });
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -    this._routerEventsSubscription = this.router.events.subscribe(event => {
                                                                                                                                                                                                                                                                          -      if (event instanceof NavigationEnd && this.isMobile) {
                                                                                                                                                                                                                                                                          -        this.sidenav.close();
                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                          -    });
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -    setTimeout(() => {
                                                                                                                                                                                                                                                                          -      window.dispatchEvent(new Event('resize'));
                                                                                                                                                                                                                                                                          -    }, 2000);
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -    // Disable WebSocket in mock mode
                                                                                                                                                                                                                                                                          -    if (environment.envName !== 'mock') {
                                                                                                                                                                                                                                                                          -      this.store.dispatch(
                                                                                                                                                                                                                                                                          -        new ConnectWebSocket({
                                                                                                                                                                                                                                                                          -          url: environment.WS_EVENT_BUS_URL,
                                                                                                                                                                                                                                                                          -          tokenFn: () => this.oauthService.getAccessToken(),
                                                                                                                                                                                                                                                                          -        }),
                                                                                                                                                                                                                                                                          -      );
                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  ngOnDestroy() {
                                                                                                                                                                                                                                                                          -    this._mediaSubscription.unsubscribe();
                                                                                                                                                                                                                                                                          -    this.store.dispatch(new DisconnectWebSocket());
                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  getRouteDepth(outlet) {
                                                                                                                                                                                                                                                                          -    return outlet.activatedRouteData['depth'] || 1;
                                                                                                                                                                                                                                                                          -    // return outlet.isActivated ? outlet.activatedRoute : ''
                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          <!--<ngx-rainbow></ngx-rainbow>-->
                                                                                                                                                                                                                                                                          -<mat-sidenav-container class="dashboard-container">
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  <mat-sidenav class="quickpanel" [opened]="quickpanelOpen" position="end" align="end" mode="over" #quickpanel>
                                                                                                                                                                                                                                                                          -    <ngx-quickpanel></ngx-quickpanel>
                                                                                                                                                                                                                                                                          -  </mat-sidenav>
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  <mat-sidenav class="sidenav" [opened]="sidenavOpen" align="start" role="navigation" [mode]="sidenavMode" ngxIconSidenav #sidenav>
                                                                                                                                                                                                                                                                          -    <ngx-sidenav></ngx-sidenav>
                                                                                                                                                                                                                                                                          -  </mat-sidenav>
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  <mat-sidenav-content class="content-container" fxLayout="column">
                                                                                                                                                                                                                                                                          -    <ngx-toolbar [quickpanel]="quickpanel" [sidenav]="sidenav"></ngx-toolbar>
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -    <perfect-scrollbar>
                                                                                                                                                                                                                                                                          -        <div class="route-container" [@routeAnimation]="depth$ | async">
                                                                                                                                                                                                                                                                          -          <!--<ngx-breadcrumbs title="Dashboard" [crumbs]="crumbs$ | async"></ngx-breadcrumbs>-->
                                                                                                                                                                                                                                                                          -          <router-outlet></router-outlet>
                                                                                                                                                                                                                                                                          -          <ngx-chat-box></ngx-chat-box>
                                                                                                                                                                                                                                                                          -        </div>
                                                                                                                                                                                                                                                                          -    </perfect-scrollbar>
                                                                                                                                                                                                                                                                          -  </mat-sidenav-content>
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -</mat-sidenav-container>
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          - ./dashboard-layout.component.scss -

                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          @import 'var';
                                                                                                                                                                                                                                                                          -@import '~@angular/material/theming';
                                                                                                                                                                                                                                                                          -@import 'constants';
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -.dashboard-container {
                                                                                                                                                                                                                                                                          -  height: 100%;
                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -mat-sidenav.quickpanel {
                                                                                                                                                                                                                                                                          -  z-index: 100;
                                                                                                                                                                                                                                                                          -  width: 330px;
                                                                                                                                                                                                                                                                          -  min-width: 330px;
                                                                                                                                                                                                                                                                          -  max-width: 330px;
                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -@media screen and ($mat-small) {
                                                                                                                                                                                                                                                                          -  mat-sidenav.quickpanel {
                                                                                                                                                                                                                                                                          -    width: 250px;
                                                                                                                                                                                                                                                                          -    min-width: 250px;
                                                                                                                                                                                                                                                                          -    max-width: 250px;
                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -  button.user-button {
                                                                                                                                                                                                                                                                          -    min-width: 72px;
                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -/**
                                                                                                                                                                                                                                                                          - * deep TODO
                                                                                                                                                                                                                                                                          - */
                                                                                                                                                                                                                                                                          -:host /deep/ {
                                                                                                                                                                                                                                                                          -  @media screen and (min-width: 960px) {
                                                                                                                                                                                                                                                                          -    .mat-drawer-backdrop {
                                                                                                                                                                                                                                                                          -      z-index: 50 !important;
                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -.main-container {
                                                                                                                                                                                                                                                                          -  overflow-y: auto;
                                                                                                                                                                                                                                                                          -  overflow-x: hidden;
                                                                                                                                                                                                                                                                          -  height: calc(100% - #{$mat-toolbar-height-desktop});
                                                                                                                                                                                                                                                                          -  position: relative;
                                                                                                                                                                                                                                                                          -  @media ($mat-xsmall) {
                                                                                                                                                                                                                                                                          -    height: calc(100% - #{$mat-toolbar-height-mobile-portrait});
                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -.content-container {
                                                                                                                                                                                                                                                                          -  height: 100%;
                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/DonutChartWidgetComponent.html b/docs/components/DonutChartWidgetComponent.html deleted file mode 100644 index 1389052fc..000000000 --- a/docs/components/DonutChartWidgetComponent.html +++ /dev/null @@ -1,713 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            - libs/widgets/src/lib/components/donut-chart-widget/donut-chart-widget.component.ts -

                                                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            - AfterViewInit -

                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            selectorngx-donut-chart-widget
                                                                                                                                                                                                                                                                            styleUrls./donut-chart-widget.component.scss
                                                                                                                                                                                                                                                                            templateUrl./donut-chart-widget.component.html
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            Inputs
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                            -constructor() -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            Inputs

                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                            - - data - -

                                                                                                                                                                                                                                                                            - Type : ChartData - -

                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                            - - options - -

                                                                                                                                                                                                                                                                            - Type : LineChartWidgetOptions - -

                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                            -ngAfterViewInit() -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            - - - - reload - - - -
                                                                                                                                                                                                                                                                            -reload() -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            - - - - canvas - - - -
                                                                                                                                                                                                                                                                            - canvas: ElementRef - -
                                                                                                                                                                                                                                                                            - Type : ElementRef - -
                                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                                            - - @ViewChild('canvas', {read: ElementRef})
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            - - - - chart - - - -
                                                                                                                                                                                                                                                                            - chart: Chart - -
                                                                                                                                                                                                                                                                            - Type : Chart - -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            - - - - isLoading - - - -
                                                                                                                                                                                                                                                                            - isLoading: boolean - -
                                                                                                                                                                                                                                                                            - Type : boolean - -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            import { AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                            -import * as Chart from 'chart.js';
                                                                                                                                                                                                                                                                            -import { ChartConfiguration, ChartData } from 'chart.js';
                                                                                                                                                                                                                                                                            -import * as ChartJSPieceLabelPlugin from 'chart.piecelabel.js';
                                                                                                                                                                                                                                                                            -import defaultsDeep from 'lodash-es/defaultsDeep';
                                                                                                                                                                                                                                                                            -import { defaultChartOptions } from '../chart-widget/chart-widget-defaults';
                                                                                                                                                                                                                                                                            -import { LineChartWidgetOptions } from '../line-chart-widget/line-chart-widget-options.interface';
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                            -  selector: 'ngx-donut-chart-widget',
                                                                                                                                                                                                                                                                            -  templateUrl: './donut-chart-widget.component.html',
                                                                                                                                                                                                                                                                            -  styleUrls: ['./donut-chart-widget.component.scss'],
                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                            -export class DonutChartWidgetComponent implements AfterViewInit {
                                                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                                                            -  data: ChartData;
                                                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                                                            -  options: LineChartWidgetOptions;
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  @ViewChild('canvas', { read: ElementRef })
                                                                                                                                                                                                                                                                            -  canvas: ElementRef;
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  chart: Chart;
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  isLoading: boolean;
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  constructor() {}
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                            -    this.chart = new Chart(this.canvas.nativeElement.getContext('2d'), <ChartConfiguration>{
                                                                                                                                                                                                                                                                            -      type: 'pie',
                                                                                                                                                                                                                                                                            -      data: this.data,
                                                                                                                                                                                                                                                                            -      options: defaultsDeep(
                                                                                                                                                                                                                                                                            -        {
                                                                                                                                                                                                                                                                            -          layout: {
                                                                                                                                                                                                                                                                            -            padding: {
                                                                                                                                                                                                                                                                            -              left: 5,
                                                                                                                                                                                                                                                                            -              right: 5,
                                                                                                                                                                                                                                                                            -              top: 5,
                                                                                                                                                                                                                                                                            -            },
                                                                                                                                                                                                                                                                            -          },
                                                                                                                                                                                                                                                                            -          plugins: [ChartJSPieceLabelPlugin],
                                                                                                                                                                                                                                                                            -          pieceLabel: {
                                                                                                                                                                                                                                                                            -            render: 'label',
                                                                                                                                                                                                                                                                            -            arc: true,
                                                                                                                                                                                                                                                                            -            position: 'border',
                                                                                                                                                                                                                                                                            -            fontColor: '#FFFFFF',
                                                                                                                                                                                                                                                                            -          },
                                                                                                                                                                                                                                                                            -        },
                                                                                                                                                                                                                                                                            -        defaultChartOptions,
                                                                                                                                                                                                                                                                            -      ),
                                                                                                                                                                                                                                                                            -    });
                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  reload() {
                                                                                                                                                                                                                                                                            -    this.isLoading = true;
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -    setTimeout(() => {
                                                                                                                                                                                                                                                                            -      this.isLoading = false;
                                                                                                                                                                                                                                                                            -    }, 2000);
                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            <ngx-card>
                                                                                                                                                                                                                                                                            -  <ngx-card-header>
                                                                                                                                                                                                                                                                            -    <ngx-card-header-title>
                                                                                                                                                                                                                                                                            -      {{ options.title }}
                                                                                                                                                                                                                                                                            -    </ngx-card-header-title>
                                                                                                                                                                                                                                                                            -    <ngx-card-header-sub-title>
                                                                                                                                                                                                                                                                            -      {{ options.subTitle }}
                                                                                                                                                                                                                                                                            -    </ngx-card-header-sub-title>
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -    <ngx-card-header-actions>
                                                                                                                                                                                                                                                                            -      <button mat-icon-button (click)="reload()">
                                                                                                                                                                                                                                                                            -        <mat-icon>refresh</mat-icon>
                                                                                                                                                                                                                                                                            -      </button>
                                                                                                                                                                                                                                                                            -      <button mat-icon-button [matMenuTriggerFor]="menu">
                                                                                                                                                                                                                                                                            -        <mat-icon>more_vert</mat-icon>
                                                                                                                                                                                                                                                                            -      </button>
                                                                                                                                                                                                                                                                            -    </ngx-card-header-actions>
                                                                                                                                                                                                                                                                            -  </ngx-card-header>
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  <ngx-card-content>
                                                                                                                                                                                                                                                                            -    <div class="content">
                                                                                                                                                                                                                                                                            -      <canvas #canvas></canvas>
                                                                                                                                                                                                                                                                            -    </div>
                                                                                                                                                                                                                                                                            -  </ngx-card-content>
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  <ngx-card-actions class="footer" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                            -    <div class="section" fxFlex="grow" fxLayout="column" fxLayoutAlign="center center">
                                                                                                                                                                                                                                                                            -      <div class="value">1096</div>
                                                                                                                                                                                                                                                                            -      <div class="label">Total Sales</div>
                                                                                                                                                                                                                                                                            -    </div>
                                                                                                                                                                                                                                                                            -    <div class="section" fxFlex="grow" fxLayout="column" fxLayoutAlign="center center">
                                                                                                                                                                                                                                                                            -      <div class="value">598</div>
                                                                                                                                                                                                                                                                            -      <div class="label">Top Categories</div>
                                                                                                                                                                                                                                                                            -    </div>
                                                                                                                                                                                                                                                                            -  </ngx-card-actions>
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -  <ngx-loading-overlay [isLoading]="isLoading"></ngx-loading-overlay>
                                                                                                                                                                                                                                                                            -</ngx-card>
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -<mat-menu #menu="matMenu">
                                                                                                                                                                                                                                                                            -  <button mat-menu-item>
                                                                                                                                                                                                                                                                            -    <mat-icon> settings</mat-icon>
                                                                                                                                                                                                                                                                            -    <span> Settings </span>
                                                                                                                                                                                                                                                                            -  </button>
                                                                                                                                                                                                                                                                            -  <button mat-menu-item disabled>
                                                                                                                                                                                                                                                                            -    <mat-icon> more</mat-icon>
                                                                                                                                                                                                                                                                            -    <span> More Info </span>
                                                                                                                                                                                                                                                                            -  </button>
                                                                                                                                                                                                                                                                            -  <button mat-menu-item>
                                                                                                                                                                                                                                                                            -    <mat-icon> remove_circle</mat-icon>
                                                                                                                                                                                                                                                                            -    <span> Remove Widget </span>
                                                                                                                                                                                                                                                                            -  </button>
                                                                                                                                                                                                                                                                            -</mat-menu>
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            - ./donut-chart-widget.component.scss -

                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            @import 'fu/var';
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -.content {
                                                                                                                                                                                                                                                                            -  max-width: 100%;
                                                                                                                                                                                                                                                                            -  display: flex;
                                                                                                                                                                                                                                                                            -  flex: 1;
                                                                                                                                                                                                                                                                            -  position: relative;
                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -.footer {
                                                                                                                                                                                                                                                                            -  .section {
                                                                                                                                                                                                                                                                            -    &:first-child {
                                                                                                                                                                                                                                                                            -      border-right: 1px solid $theme-divider;
                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -    .value {
                                                                                                                                                                                                                                                                            -      @include mat-typography-level-to-styles($config, display-1);
                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -    .label {
                                                                                                                                                                                                                                                                            -      @include mat-typography-level-to-styles($config, body-1);
                                                                                                                                                                                                                                                                            -      color: $theme-secondary-text;
                                                                                                                                                                                                                                                                            -      text-transform: uppercase;
                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/FabComponent.html b/docs/components/FabComponent.html deleted file mode 100644 index 990de5b31..000000000 --- a/docs/components/FabComponent.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              - libs/clap/src/lib/components/fab.component.ts -

                                                                                                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                              changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                                              selectorngx-fab
                                                                                                                                                                                                                                                                              styles - :host { - border: 1px solid rgba(0, 0, 0, 0.7); - color: #02b875; - width: 64px; - height: 64px; - border-radius: 50%; - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - user-select: none; - box-shadow: 2px 2px 7px 0px rgba(0, 0, 0, 0.6); - } -
                                                                                                                                                                                                                                                                              template
                                                                                                                                                                                                                                                                              <i class="material-icons">pan_tool</i>
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              Inputs
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              Inputs

                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                              - - counter - -

                                                                                                                                                                                                                                                                              - Type : number - -

                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              import { transition, trigger, useAnimation } from '@angular/animations';
                                                                                                                                                                                                                                                                              -import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
                                                                                                                                                                                                                                                                              -import { pulseAnimation } from '../animations';
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                              -  selector: 'ngx-fab',
                                                                                                                                                                                                                                                                              -  template: `
                                                                                                                                                                                                                                                                              -    <i class="material-icons">pan_tool</i>
                                                                                                                                                                                                                                                                              -  `,
                                                                                                                                                                                                                                                                              -  styles: [
                                                                                                                                                                                                                                                                              -    `
                                                                                                                                                                                                                                                                              -      :host {
                                                                                                                                                                                                                                                                              -        border: 1px solid rgba(0, 0, 0, 0.7);
                                                                                                                                                                                                                                                                              -        color: #02b875;
                                                                                                                                                                                                                                                                              -        width: 64px;
                                                                                                                                                                                                                                                                              -        height: 64px;
                                                                                                                                                                                                                                                                              -        border-radius: 50%;
                                                                                                                                                                                                                                                                              -        display: flex;
                                                                                                                                                                                                                                                                              -        justify-content: center;
                                                                                                                                                                                                                                                                              -        align-items: center;
                                                                                                                                                                                                                                                                              -        cursor: pointer;
                                                                                                                                                                                                                                                                              -        user-select: none;
                                                                                                                                                                                                                                                                              -        box-shadow: 2px 2px 7px 0px rgba(0, 0, 0, 0.6);
                                                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                                                              -    `,
                                                                                                                                                                                                                                                                              -  ],
                                                                                                                                                                                                                                                                              -  animations: [
                                                                                                                                                                                                                                                                              -    trigger('counterChange', [
                                                                                                                                                                                                                                                                              -      transition(
                                                                                                                                                                                                                                                                              -        ':increment',
                                                                                                                                                                                                                                                                              -        useAnimation(pulseAnimation, {
                                                                                                                                                                                                                                                                              -          params: {
                                                                                                                                                                                                                                                                              -            timings: '400ms cubic-bezier(.11,.99,.83,.43)',
                                                                                                                                                                                                                                                                              -            scale: 1.05,
                                                                                                                                                                                                                                                                              -          },
                                                                                                                                                                                                                                                                              -        }),
                                                                                                                                                                                                                                                                              -      ),
                                                                                                                                                                                                                                                                              -    ]),
                                                                                                                                                                                                                                                                              -  ],
                                                                                                                                                                                                                                                                              -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                              -export class FabComponent {
                                                                                                                                                                                                                                                                              -  @HostBinding('@counterChange')
                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                              -  counter: number;
                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                              -      :host {
                                                                                                                                                                                                                                                                              -        border: 1px solid rgba(0, 0, 0, 0.7);
                                                                                                                                                                                                                                                                              -        color: #02b875;
                                                                                                                                                                                                                                                                              -        width: 64px;
                                                                                                                                                                                                                                                                              -        height: 64px;
                                                                                                                                                                                                                                                                              -        border-radius: 50%;
                                                                                                                                                                                                                                                                              -        display: flex;
                                                                                                                                                                                                                                                                              -        justify-content: center;
                                                                                                                                                                                                                                                                              -        align-items: center;
                                                                                                                                                                                                                                                                              -        cursor: pointer;
                                                                                                                                                                                                                                                                              -        user-select: none;
                                                                                                                                                                                                                                                                              -        box-shadow: 2px 2px 7px 0px rgba(0, 0, 0, 0.6);
                                                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                                                              -    
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/FeaturesComponent.html b/docs/components/FeaturesComponent.html deleted file mode 100644 index 65223a1e2..000000000 --- a/docs/components/FeaturesComponent.html +++ /dev/null @@ -1,698 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                - libs/home/src/lib/containers/features/features.component.ts -

                                                                                                                                                                                                                                                                                - - - -

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                - OnInit -

                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                selectorngx-features
                                                                                                                                                                                                                                                                                styleUrls./features.component.scss
                                                                                                                                                                                                                                                                                templateUrl./features.component.html
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - - - - - - -
                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                -ngOnInit() -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                - - - - openLink - - - -
                                                                                                                                                                                                                                                                                -openLink(link: string) -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                link - string - - No -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                - - - - routeAnimationsElements - - - -
                                                                                                                                                                                                                                                                                - routeAnimationsElements: - -
                                                                                                                                                                                                                                                                                - Default value : ROUTE_ANIMATIONS_ELEMENTS -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                - - - - versions - - - -
                                                                                                                                                                                                                                                                                - versions: - -
                                                                                                                                                                                                                                                                                - Default value : env.versions -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -import { environment as env } from '@env/environment';
                                                                                                                                                                                                                                                                                -import { ROUTE_ANIMATIONS_ELEMENTS } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                -  selector: 'ngx-features',
                                                                                                                                                                                                                                                                                -  templateUrl: './features.component.html',
                                                                                                                                                                                                                                                                                -  styleUrls: ['./features.component.scss'],
                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                -export class FeaturesComponent implements OnInit {
                                                                                                                                                                                                                                                                                -  routeAnimationsElements = ROUTE_ANIMATIONS_ELEMENTS;
                                                                                                                                                                                                                                                                                -  versions = env.versions;
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -  ngOnInit() {}
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -  openLink(link: string) {
                                                                                                                                                                                                                                                                                -    window.open(link, '_blank');
                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                <div class="default-primary-header">
                                                                                                                                                                                                                                                                                -  <h1>Features</h1>
                                                                                                                                                                                                                                                                                -</div>
                                                                                                                                                                                                                                                                                -<div class="features-container" fxLayout="column">
                                                                                                                                                                                                                                                                                -  <div fxLayout="row wrap" fxLayout.lt-sm="column" fxLayoutGap="20px grid"fxLayoutGap="20px grid">
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%"
                                                                                                                                                                                                                                                                                -         [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title><code>{{versions.angular}}</code>Angular</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>
                                                                                                                                                                                                                                                                                -          Modern powerful framework
                                                                                                                                                                                                                                                                                -        </mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://angular.io/docs/ts/latest/" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/angular/angular" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>code</mat-icon>
                                                                                                                                                                                                                                                                                -            Github
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title><code>{{versions.material}}</code>Angular Material</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>
                                                                                                                                                                                                                                                                                -          Material design component library
                                                                                                                                                                                                                                                                                -        </mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://material.angular.io/" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/angular/material2/" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>code</mat-icon>
                                                                                                                                                                                                                                                                                -            Github
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title><code>{{versions.angularCli}}</code>Angular Cli</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>
                                                                                                                                                                                                                                                                                -          Responsive layout from battle tested, world most famous UI library
                                                                                                                                                                                                                                                                                -        </mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/angular/angular-cli/wiki/generate" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/angular/angular-cli" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>code</mat-icon>
                                                                                                                                                                                                                                                                                -            Github
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title><code>{{versions.ngxs}}</code>NGXS</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>
                                                                                                                                                                                                                                                                                -          NGXS is a state management pattern + library for Angular.
                                                                                                                                                                                                                                                                                -        </mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://amcdnl.gitbooks.io/ngxs" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/amcdnl/ngxs" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>code</mat-icon>
                                                                                                                                                                                                                                                                                -            Github
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title><code>{{versions.rxjs}}</code>RxJS</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>
                                                                                                                                                                                                                                                                                -          Reactive programming with async collections using Observables.
                                                                                                                                                                                                                                                                                -        </mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="http://reactivex.io/rxjs/" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/ReactiveX/RxJS" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>code</mat-icon>
                                                                                                                                                                                                                                                                                -            Github
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title><code>{{versions.flexLayout}}</code>Flex-Layout</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>
                                                                                                                                                                                                                                                                                -          Responsive layout from battle tested, world most famous UI library
                                                                                                                                                                                                                                                                                -        </mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/angular/flex-layout/wiki" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/angular/flex-layout" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>code</mat-icon>
                                                                                                                                                                                                                                                                                -            Github
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title><code>{{versions.typescript}}</code>Typescript</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>Superior developer experience, code completion, refactoring and less bugs</mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://github.com/Microsoft/TypeScript" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>code</mat-icon>
                                                                                                                                                                                                                                                                                -            Github
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://www.typescriptlang.org/docs/home.html" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title>Themes</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>Flexible theming support for provided and custom components</mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://material.angular.io/guide/theming" target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -          <a mat-button
                                                                                                                                                                                                                                                                                -             href="https://medium.com/@tomastrajan/the-complete-guide-to-angular-material-themes-4d165a9d24d1"
                                                                                                                                                                                                                                                                                -             target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>redeem</mat-icon>
                                                                                                                                                                                                                                                                                -            Blog
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -    <div fxFlex="0 1 calc(33.3% - 20px)" fxFlex.lt-md="0 1 calc(50% - 20px)" fxFlex.lt-sm="100%" [ngClass]="routeAnimationsElements">
                                                                                                                                                                                                                                                                                -      <mat-card>
                                                                                                                                                                                                                                                                                -        <mat-card-title>Lazy loading</mat-card-title>
                                                                                                                                                                                                                                                                                -        <mat-card-subtitle>Faster startup time with lazy loaded feature modules</mat-card-subtitle>
                                                                                                                                                                                                                                                                                -        <mat-card-actions>
                                                                                                                                                                                                                                                                                -          <a mat-button href="https://angular.io/docs/ts/latest/guide/router.html#!#lazy-loading-route-config"
                                                                                                                                                                                                                                                                                -             target="_blank">
                                                                                                                                                                                                                                                                                -            <mat-icon>library_books</mat-icon>
                                                                                                                                                                                                                                                                                -            Docs
                                                                                                                                                                                                                                                                                -          </a>
                                                                                                                                                                                                                                                                                -        </mat-card-actions>
                                                                                                                                                                                                                                                                                -      </mat-card>
                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                -  </div>
                                                                                                                                                                                                                                                                                -</div>
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                - ./features.component.scss -

                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                @import '~@angular/material/theming';
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -.features-container {
                                                                                                                                                                                                                                                                                -  display: block;
                                                                                                                                                                                                                                                                                -  padding: 1.2%;
                                                                                                                                                                                                                                                                                -  position: relative;
                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -mat-card {
                                                                                                                                                                                                                                                                                -  mat-card-title {
                                                                                                                                                                                                                                                                                -    position: relative;
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -    code {
                                                                                                                                                                                                                                                                                -      position: absolute;
                                                                                                                                                                                                                                                                                -      top: 11px;
                                                                                                                                                                                                                                                                                -      right: 0;
                                                                                                                                                                                                                                                                                -      float: right;
                                                                                                                                                                                                                                                                                -      font-size: 10px;
                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                -  mat-card-subtitle {
                                                                                                                                                                                                                                                                                -    padding-top: 8px;
                                                                                                                                                                                                                                                                                -    min-height: 60px;
                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -  @media ($mat-xsmall) {
                                                                                                                                                                                                                                                                                -    mat-card-subtitle {
                                                                                                                                                                                                                                                                                -      min-height: auto;
                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -  a {
                                                                                                                                                                                                                                                                                -    i {
                                                                                                                                                                                                                                                                                -      position: relative;
                                                                                                                                                                                                                                                                                -      top: -1px;
                                                                                                                                                                                                                                                                                -      left: -3px;
                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/FileUploadComponent.html b/docs/components/FileUploadComponent.html deleted file mode 100644 index 2f956ed37..000000000 --- a/docs/components/FileUploadComponent.html +++ /dev/null @@ -1,960 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  - libs/experiments/src/lib/containers/file-upload/file-upload.component.ts -

                                                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  providers - FileUploadService -
                                                                                                                                                                                                                                                                                  selectorngx-file-upload
                                                                                                                                                                                                                                                                                  styleUrls./file-upload.component.scss
                                                                                                                                                                                                                                                                                  templateUrl./file-upload.component.html
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  -constructor(snackBar: MatSnackBar, uploadService: FileUploadService) -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                  snackBar - MatSnackBar - - No -
                                                                                                                                                                                                                                                                                  uploadService - FileUploadService - - No -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  - - - - pondHandleAddFile - - - -
                                                                                                                                                                                                                                                                                  -pondHandleAddFile(event: any) -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                  event - any - - No -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  - - - - pondHandleInit - - - -
                                                                                                                                                                                                                                                                                  -pondHandleInit() -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  - - - - crumbs - - - -
                                                                                                                                                                                                                                                                                  - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                  - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                  - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'File Upload' }, - ] -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  - - - - myFiles - - - -
                                                                                                                                                                                                                                                                                  - myFiles: [] - -
                                                                                                                                                                                                                                                                                  - Type : [] - -
                                                                                                                                                                                                                                                                                  - Default value : [] -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  - - - - myPond - - - -
                                                                                                                                                                                                                                                                                  - myPond: any - -
                                                                                                                                                                                                                                                                                  - Type : any - -
                                                                                                                                                                                                                                                                                  - Decorators : -
                                                                                                                                                                                                                                                                                  - - @ViewChild('myPond')
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  - - - - pondOptions - - - -
                                                                                                                                                                                                                                                                                  - pondOptions: object - -
                                                                                                                                                                                                                                                                                  - Type : object - -
                                                                                                                                                                                                                                                                                  - Default value : { - name: 'filepond', - multiple: true, - maxFiles: 3, - maxFileSize: '1MB', - instantUpload: false, - server: this.uploadToServer, - acceptedFileTypes: 'image/*, application/pdf, application/*, text/plain, text/csv, .vsd', - } -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  - - - - Public - snackBar - - - -
                                                                                                                                                                                                                                                                                  - snackBar: MatSnackBar - -
                                                                                                                                                                                                                                                                                  - Type : MatSnackBar - -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  - - - - uploadToServer - - - -
                                                                                                                                                                                                                                                                                  - uploadToServer: object - -
                                                                                                                                                                                                                                                                                  - Type : object - -
                                                                                                                                                                                                                                                                                  - Default value : { - process: (fieldName, file, metadata, load, error, progress, abort) => { - // Create data object containing the file and the file metadata - const formData = new FormData(); - formData.append(fieldName, file, file.name); - formData.append(fieldName, JSON.stringify(metadata)); - this.uploadService.uploadFile(file, {}, 'tenant1').subscribe( - data => { - this.myPond.removeFiles(); - this.snackBar.open(`Uploaded Successfully`, '', { - duration: 3000, - }); - }, - err => { - console.error(`File Upload Error: ${err.message}`); - this.snackBar.open(`File Upload Error: ${err.message}`, '', { - duration: 3000, - }); - }, - ); - - // Progress indicator supported, set progress to 25% of 1 - progress(true, 0.25, 1); - - // progress(false); // for infinite upload mode - - // Fake completion after 1 second - const timer = setTimeout(() => { - load('unique-file-id'); // or { body: 'unique-file-id' } - }, 1000); - - // Should expose an abort method so the request can be cancelled by the user - return { - abort: () => { - // abort your request here (we clear timer for demo purposes) - clearTimeout(timer); - - // updates FilePond interface - abort(); - }, - }; - }, - - revert: (uniqueFileId, load, error) => { - // Should get a file object here - // ... - - // Can call the error method if something is wrong, should exit after - // error('oh my goodness'); - - // Should call the load method when done, no parameters required - load(); - }, - - load: (uniqueFileId, load, error, progress, abort, headers) => { - // Should get a file object here - // ... - - // Can call the error method if something is wrong, should exit after - error('oh my goodness'); - - // Can call the header method to supply FilePond with early response header string - // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders - // headers(headersString); - - // Should call the progress method to update the progress to 100% before calling load - // (endlessMode, loadedSize, totalSize) - progress(true, 0, 1024); - - // Should call the load method with a file object or blob when done - // load(file); - - // Should expose an abort method so the request can be cancelled - return { - abort: () => { - // User tapped abort, cancel our ongoing actions here - - // Let FilePond know the request has been cancelled - abort(); - }, - }; - }, - - fetch: (url, load, error, progress, abort, headers) => {}, - - restore: (uniqueFileId, load, error, progress, abort, headers) => {}, - } -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  import { Component, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                  -import { MatSnackBar } from '@angular/material';
                                                                                                                                                                                                                                                                                  -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                  -import { FileUploadService } from './file-upload.service';
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                  -  selector: 'ngx-file-upload',
                                                                                                                                                                                                                                                                                  -  templateUrl: './file-upload.component.html',
                                                                                                                                                                                                                                                                                  -  styleUrls: ['./file-upload.component.scss'],
                                                                                                                                                                                                                                                                                  -  providers: [FileUploadService],
                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                  -export class FileUploadComponent {
                                                                                                                                                                                                                                                                                  -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                  -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                  -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                  -    { name: 'File Upload' },
                                                                                                                                                                                                                                                                                  -  ];
                                                                                                                                                                                                                                                                                  -  @ViewChild('myPond')
                                                                                                                                                                                                                                                                                  -  myPond: any;
                                                                                                                                                                                                                                                                                  -  myFiles = [];
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -  // Ref: https://pqina.nl/filepond/docs/patterns/api/server/
                                                                                                                                                                                                                                                                                  -  uploadToServer = {
                                                                                                                                                                                                                                                                                  -    process: (fieldName, file, metadata, load, error, progress, abort) => {
                                                                                                                                                                                                                                                                                  -      // Create data object containing the file and the file metadata
                                                                                                                                                                                                                                                                                  -      const formData = new FormData();
                                                                                                                                                                                                                                                                                  -      formData.append(fieldName, file, file.name);
                                                                                                                                                                                                                                                                                  -      formData.append(fieldName, JSON.stringify(metadata));
                                                                                                                                                                                                                                                                                  -      this.uploadService.uploadFile(file, {}, 'tenant1').subscribe(
                                                                                                                                                                                                                                                                                  -        data => {
                                                                                                                                                                                                                                                                                  -          this.myPond.removeFiles();
                                                                                                                                                                                                                                                                                  -          this.snackBar.open(`Uploaded Successfully`, '', {
                                                                                                                                                                                                                                                                                  -            duration: 3000,
                                                                                                                                                                                                                                                                                  -          });
                                                                                                                                                                                                                                                                                  -        },
                                                                                                                                                                                                                                                                                  -        err => {
                                                                                                                                                                                                                                                                                  -          console.error(`File Upload Error: ${err.message}`);
                                                                                                                                                                                                                                                                                  -          this.snackBar.open(`File Upload Error: ${err.message}`, '', {
                                                                                                                                                                                                                                                                                  -            duration: 3000,
                                                                                                                                                                                                                                                                                  -          });
                                                                                                                                                                                                                                                                                  -        },
                                                                                                                                                                                                                                                                                  -      );
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Progress indicator supported, set progress to 25% of 1
                                                                                                                                                                                                                                                                                  -      progress(true, 0.25, 1);
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // progress(false); // for infinite upload mode
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Fake completion after 1 second
                                                                                                                                                                                                                                                                                  -      const timer = setTimeout(() => {
                                                                                                                                                                                                                                                                                  -        load('unique-file-id'); // or { body: 'unique-file-id' }
                                                                                                                                                                                                                                                                                  -      }, 1000);
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Should expose an abort method so the request can be cancelled by the user
                                                                                                                                                                                                                                                                                  -      return {
                                                                                                                                                                                                                                                                                  -        abort: () => {
                                                                                                                                                                                                                                                                                  -          // abort your request here (we clear timer for demo purposes)
                                                                                                                                                                                                                                                                                  -          clearTimeout(timer);
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -          // updates FilePond interface
                                                                                                                                                                                                                                                                                  -          abort();
                                                                                                                                                                                                                                                                                  -        },
                                                                                                                                                                                                                                                                                  -      };
                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -    revert: (uniqueFileId, load, error) => {
                                                                                                                                                                                                                                                                                  -      // Should get a file object here
                                                                                                                                                                                                                                                                                  -      // ...
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Can call the error method if something is wrong, should exit after
                                                                                                                                                                                                                                                                                  -      // error('oh my goodness');
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Should call the load method when done, no parameters required
                                                                                                                                                                                                                                                                                  -      load();
                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -    load: (uniqueFileId, load, error, progress, abort, headers) => {
                                                                                                                                                                                                                                                                                  -      // Should get a file object here
                                                                                                                                                                                                                                                                                  -      // ...
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Can call the error method if something is wrong, should exit after
                                                                                                                                                                                                                                                                                  -      error('oh my goodness');
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Can call the header method to supply FilePond with early response header string
                                                                                                                                                                                                                                                                                  -      // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders
                                                                                                                                                                                                                                                                                  -      // headers(headersString);
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Should call the progress method to update the progress to 100% before calling load
                                                                                                                                                                                                                                                                                  -      // (endlessMode, loadedSize, totalSize)
                                                                                                                                                                                                                                                                                  -      progress(true, 0, 1024);
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Should call the load method with a file object or blob when done
                                                                                                                                                                                                                                                                                  -      // load(file);
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -      // Should expose an abort method so the request can be cancelled
                                                                                                                                                                                                                                                                                  -      return {
                                                                                                                                                                                                                                                                                  -        abort: () => {
                                                                                                                                                                                                                                                                                  -          // User tapped abort, cancel our ongoing actions here
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -          // Let FilePond know the request has been cancelled
                                                                                                                                                                                                                                                                                  -          abort();
                                                                                                                                                                                                                                                                                  -        },
                                                                                                                                                                                                                                                                                  -      };
                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -    fetch: (url, load, error, progress, abort, headers) => {},
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -    restore: (uniqueFileId, load, error, progress, abort, headers) => {},
                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -  pondOptions = {
                                                                                                                                                                                                                                                                                  -    name: 'filepond',
                                                                                                                                                                                                                                                                                  -    multiple: true,
                                                                                                                                                                                                                                                                                  -    maxFiles: 3,
                                                                                                                                                                                                                                                                                  -    maxFileSize: '1MB',
                                                                                                                                                                                                                                                                                  -    instantUpload: false,
                                                                                                                                                                                                                                                                                  -    server: this.uploadToServer,
                                                                                                                                                                                                                                                                                  -    acceptedFileTypes: 'image/*, application/pdf, application/*, text/plain, text/csv, .vsd',
                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -  constructor(public snackBar: MatSnackBar, private uploadService: FileUploadService) {}
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -  pondHandleInit() {
                                                                                                                                                                                                                                                                                  -    console.log('FilePond has initialised', this.myPond);
                                                                                                                                                                                                                                                                                  -    // FilePond instance methods are available on `this.myPond`
                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -  pondHandleAddFile(event: any) {
                                                                                                                                                                                                                                                                                  -    console.log('A file was added', event);
                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  <ngx-breadcrumbs title="Experiments" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                                  -<mat-card>
                                                                                                                                                                                                                                                                                  -  <file-pond #myPond
                                                                                                                                                                                                                                                                                  -             [files]="myFiles"
                                                                                                                                                                                                                                                                                  -             [options]="pondOptions"
                                                                                                                                                                                                                                                                                  -             (oninit)="pondHandleInit()"
                                                                                                                                                                                                                                                                                  -             (onaddfile)="pondHandleAddFile($event)">
                                                                                                                                                                                                                                                                                  -  </file-pond>
                                                                                                                                                                                                                                                                                  -</mat-card>
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  - ./file-upload.component.scss -

                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  :host {
                                                                                                                                                                                                                                                                                  -  display: block;
                                                                                                                                                                                                                                                                                  -  padding: 1.5%;
                                                                                                                                                                                                                                                                                  -  position: relative;
                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/FooterComponent.html b/docs/components/FooterComponent.html deleted file mode 100644 index 14ec41ac1..000000000 --- a/docs/components/FooterComponent.html +++ /dev/null @@ -1,529 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    - libs/home/src/lib/components/footer/footer.component.ts -

                                                                                                                                                                                                                                                                                    - - - -

                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    Implements

                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    - OnInit -

                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                    selectorngx-footer
                                                                                                                                                                                                                                                                                    styleUrls./footer.component.scss
                                                                                                                                                                                                                                                                                    templateUrl./footer.component.html
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    Accessors
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                    -constructor() -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                    - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                    -ngOnInit() -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                    - - - - environment - - - -
                                                                                                                                                                                                                                                                                    - environment: - -
                                                                                                                                                                                                                                                                                    - Default value : environment.envName -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    - Accessors -

                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                    - - version -
                                                                                                                                                                                                                                                                                    - getversion() -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                    -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                    -import { version as appVersion } from '../../../../../../package.json';
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                    -  selector: 'ngx-footer',
                                                                                                                                                                                                                                                                                    -  templateUrl: './footer.component.html',
                                                                                                                                                                                                                                                                                    -  styleUrls: ['./footer.component.scss'],
                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                    -export class FooterComponent implements OnInit {
                                                                                                                                                                                                                                                                                    -  environment = environment.envName;
                                                                                                                                                                                                                                                                                    -  constructor() {}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -  ngOnInit() {}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -  get version() {
                                                                                                                                                                                                                                                                                    -    if (appVersion) {
                                                                                                                                                                                                                                                                                    -      return appVersion;
                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                    -    return '';
                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    <footer class="default-footer">
                                                                                                                                                                                                                                                                                    -  <div class="default-footer-list">
                                                                                                                                                                                                                                                                                    -    <div class="default-footer-logo">
                                                                                                                                                                                                                                                                                    -      <div class="footer-logo">
                                                                                                                                                                                                                                                                                    -        <img class="default-footer-angular-logo"
                                                                                                                                                                                                                                                                                    -             src="assets/img/homepage/angular-white-transparent.svg"
                                                                                                                                                                                                                                                                                    -             alt="angular">
                                                                                                                                                                                                                                                                                    -        <span><a href="https://angular.io">Learn Angular</a></span>
                                                                                                                                                                                                                                                                                    -      </div>
                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -    <div class="default-footer-version">
                                                                                                                                                                                                                                                                                    -      <span class="version">Current Version: {{version}}-{{environment}}</span>
                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -    <div class="default-footer-copyright">
                                                                                                                                                                                                                                                                                    -      <span>Powered by Sumo ©2010-2018.</span>
                                                                                                                                                                                                                                                                                    -      <span>Code licensed under an MIT-style License.</span>
                                                                                                                                                                                                                                                                                    -      <span>Documentation licensed under CC BY 4.0.</span>
                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                    -</footer>
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    - ./footer.component.scss -

                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    .default-footer {
                                                                                                                                                                                                                                                                                    -  padding: 12px;
                                                                                                                                                                                                                                                                                    -  font-size: 12px;
                                                                                                                                                                                                                                                                                    -  //z-index: 2;
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -.default-footer-list {
                                                                                                                                                                                                                                                                                    -  align-items: center;
                                                                                                                                                                                                                                                                                    -  display: flex;
                                                                                                                                                                                                                                                                                    -  flex-flow: row wrap;
                                                                                                                                                                                                                                                                                    -  padding: 8px;
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -.default-footer-logo {
                                                                                                                                                                                                                                                                                    -  flex: 1;
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -.default-footer-angular-logo {
                                                                                                                                                                                                                                                                                    -  height: 50px;
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -.default-footer-version {
                                                                                                                                                                                                                                                                                    -  flex: 1;
                                                                                                                                                                                                                                                                                    -  text-align: center;
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -.default-footer-copyright {
                                                                                                                                                                                                                                                                                    -  display: flex;
                                                                                                                                                                                                                                                                                    -  flex: 1;
                                                                                                                                                                                                                                                                                    -  justify-content: flex-end;
                                                                                                                                                                                                                                                                                    -  flex-direction: column;
                                                                                                                                                                                                                                                                                    -  min-width: 225px;
                                                                                                                                                                                                                                                                                    -  text-align: center;
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -.default-footer-logo span {
                                                                                                                                                                                                                                                                                    -  display: inline-block;
                                                                                                                                                                                                                                                                                    -  line-height: 50px;
                                                                                                                                                                                                                                                                                    -  margin: 0 40px;
                                                                                                                                                                                                                                                                                    -  vertical-align: bottom;
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -  a {
                                                                                                                                                                                                                                                                                    -    font-size: 16px;
                                                                                                                                                                                                                                                                                    -    padding: 0;
                                                                                                                                                                                                                                                                                    -    text-decoration: none;
                                                                                                                                                                                                                                                                                    -    color: inherit;
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -    &:hover {
                                                                                                                                                                                                                                                                                    -      text-decoration: underline;
                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -@media screen and (max-width: 884px) {
                                                                                                                                                                                                                                                                                    -  .default-footer-list {
                                                                                                                                                                                                                                                                                    -    flex-direction: column;
                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/FullscreenToggleComponent.html b/docs/components/FullscreenToggleComponent.html deleted file mode 100644 index af2398f63..000000000 --- a/docs/components/FullscreenToggleComponent.html +++ /dev/null @@ -1,462 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      - libs/toolbar/src/lib/components/fullscreen-toggle/fullscreen-toggle.component.ts -

                                                                                                                                                                                                                                                                                      - - - -

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      Implements

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      - OnInit -

                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                      selectorngx-fullscreen-toggle
                                                                                                                                                                                                                                                                                      styleUrls./fullscreen-toggle.component.scss
                                                                                                                                                                                                                                                                                      templateUrl./fullscreen-toggle.component.html
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                      -constructor() -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                      - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                      -ngOnInit() -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                      - - - - toggleFullscreen - - - -
                                                                                                                                                                                                                                                                                      -toggleFullscreen() -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                      - - - - isFullscreen - - - -
                                                                                                                                                                                                                                                                                      - isFullscreen: boolean - -
                                                                                                                                                                                                                                                                                      - Type : boolean - -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                      -import * as screenfull from 'screenfull';
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                      -  selector: 'ngx-fullscreen-toggle',
                                                                                                                                                                                                                                                                                      -  templateUrl: './fullscreen-toggle.component.html',
                                                                                                                                                                                                                                                                                      -  styleUrls: ['./fullscreen-toggle.component.scss'],
                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                      -export class FullscreenToggleComponent implements OnInit {
                                                                                                                                                                                                                                                                                      -  isFullscreen: boolean;
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -  constructor() {}
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -  ngOnInit() {}
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -  toggleFullscreen() {
                                                                                                                                                                                                                                                                                      -    if (screenfull.enabled) {
                                                                                                                                                                                                                                                                                      -      screenfull.toggle();
                                                                                                                                                                                                                                                                                      -      this.isFullscreen = !this.isFullscreen;
                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      <button class="button" mat-button (click)="toggleFullscreen()" fxFlex="grow">
                                                                                                                                                                                                                                                                                      -  <mat-icon *ngIf="!isFullscreen">fullscreen</mat-icon>
                                                                                                                                                                                                                                                                                      -  <mat-icon *ngIf="isFullscreen">fullscreen_exit</mat-icon>
                                                                                                                                                                                                                                                                                      -</button>
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      - ./fullscreen-toggle.component.scss -

                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      @import 'fu/var';
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -.button {
                                                                                                                                                                                                                                                                                      -  border-radius: 0;
                                                                                                                                                                                                                                                                                      -  padding: 0;
                                                                                                                                                                                                                                                                                      -  min-width: $toolbar-button-width;
                                                                                                                                                                                                                                                                                      -  color: $toolbar-button-icon-color;
                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/HeaderComponent.html b/docs/components/HeaderComponent.html deleted file mode 100644 index 238166251..000000000 --- a/docs/components/HeaderComponent.html +++ /dev/null @@ -1,731 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        - libs/home/src/lib/components/header/header.component.ts -

                                                                                                                                                                                                                                                                                        - - - -

                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        Implements

                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        - OnInit -

                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        selectorngx-home-header
                                                                                                                                                                                                                                                                                        styleUrls./header.component.scss
                                                                                                                                                                                                                                                                                        templateUrl./header.component.html
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        -constructor(store: Store) -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                        store - Store - - No -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        - - - - Public - login - - - -
                                                                                                                                                                                                                                                                                        - - login() -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        - - - - Public - logout - - - -
                                                                                                                                                                                                                                                                                        - - logout() -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                        -ngOnInit() -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        - - - - Public - signup - - - -
                                                                                                                                                                                                                                                                                        - - signup() -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        - - - - isLoggedIn$ - - - -
                                                                                                                                                                                                                                                                                        - isLoggedIn$: Observable<boolean> - -
                                                                                                                                                                                                                                                                                        - Type : Observable<boolean> - -
                                                                                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                                                                                        - - @Select(AuthState.isLoggedIn)
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        - - - - navigation - - - -
                                                                                                                                                                                                                                                                                        - navigation: [] - -
                                                                                                                                                                                                                                                                                        - Type : [] - -
                                                                                                                                                                                                                                                                                        - Default value : [ - { link: 'about', label: 'About' }, - { link: 'blog', label: 'Blog' }, - { link: 'features', label: 'Features' }, - ] -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                        -import { Store, Select } from '@ngxs/store';
                                                                                                                                                                                                                                                                                        -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                        -import { Login, Logout } from '@ngx-starter-kit/auth';
                                                                                                                                                                                                                                                                                        -import { AuthState } from '@ngx-starter-kit/auth';
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                                                        -  selector: 'ngx-home-header',
                                                                                                                                                                                                                                                                                        -  templateUrl: './header.component.html',
                                                                                                                                                                                                                                                                                        -  styleUrls: ['./header.component.scss'],
                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                        -export class HeaderComponent implements OnInit {
                                                                                                                                                                                                                                                                                        -  @Select(AuthState.isLoggedIn)
                                                                                                                                                                                                                                                                                        -  isLoggedIn$: Observable<boolean>;
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -  navigation = [
                                                                                                                                                                                                                                                                                        -    { link: 'about', label: 'About' },
                                                                                                                                                                                                                                                                                        -    { link: 'blog', label: 'Blog' },
                                                                                                                                                                                                                                                                                        -    { link: 'features', label: 'Features' },
                                                                                                                                                                                                                                                                                        -  ];
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -  constructor(private store: Store) {}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -  ngOnInit() {}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -  public login() {
                                                                                                                                                                                                                                                                                        -    this.store.dispatch(new Login());
                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -  public logout() {
                                                                                                                                                                                                                                                                                        -    this.store.dispatch(new Logout());
                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -  public signup() {}
                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        <mat-toolbar color="primary" class="default-navbar-header mat-elevation-z6">
                                                                                                                                                                                                                                                                                        -  <mat-toolbar-row fxLayout="row" fxLayoutAlign="space-between center">
                                                                                                                                                                                                                                                                                        -    <a mat-button href="/" aria-label="Angular Material">
                                                                                                                                                                                                                                                                                        -      <img class="default-angular-logo"
                                                                                                                                                                                                                                                                                        -           src="assets/img/homepage/angular-white-transparent.svg"
                                                                                                                                                                                                                                                                                        -           alt="angular">
                                                                                                                                                                                                                                                                                        -      <span>SUMO</span>
                                                                                                                                                                                                                                                                                        -    </a>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -    <button mat-button fxShow fxHide.lt-md routerLink="/home"
                                                                                                                                                                                                                                                                                        -            routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">Intro
                                                                                                                                                                                                                                                                                        -    </button>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -    <span fxFlex><!-- fill space --></span>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -    <mat-nav-list>
                                                                                                                                                                                                                                                                                        -      <a mat-button fxShow fxHide.lt-md *ngFor="let item of navigation"
                                                                                                                                                                                                                                                                                        -         [routerLink]="[item.link]" routerLinkActive="active">
                                                                                                                                                                                                                                                                                        -        {{item.label}}
                                                                                                                                                                                                                                                                                        -      </a>
                                                                                                                                                                                                                                                                                        -    </mat-nav-list>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -    <theme-picker fxShow fxHide.lt-sm></theme-picker>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -    <button mat-icon-button [matMenuTriggerFor]="menu" matTooltip="Signup">
                                                                                                                                                                                                                                                                                        -      <mat-icon class="default-menu-icon">person_outline</mat-icon>
                                                                                                                                                                                                                                                                                        -    </button>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -    <mat-menu #menu="matMenu">
                                                                                                                                                                                                                                                                                        -      <ng-container *ngLet="(isLoggedIn$ | async) as isLoggedIn">
                                                                                                                                                                                                                                                                                        -      <button (click)="login()" mat-menu-item [disabled]="isLoggedIn">
                                                                                                                                                                                                                                                                                        -        <mat-icon>fingerprint</mat-icon>
                                                                                                                                                                                                                                                                                        -        <span>Login</span>
                                                                                                                                                                                                                                                                                        -      </button>
                                                                                                                                                                                                                                                                                        -      <button *ngIf="!isLoggedIn" (click)="signup()" mat-menu-item>
                                                                                                                                                                                                                                                                                        -        <mat-icon>cake</mat-icon>
                                                                                                                                                                                                                                                                                        -        <span>Signup</span>
                                                                                                                                                                                                                                                                                        -      </button>
                                                                                                                                                                                                                                                                                        -      <button (click)="logout()" mat-menu-item [disabled]="!isLoggedIn">
                                                                                                                                                                                                                                                                                        -        <mat-icon>lock_open</mat-icon>
                                                                                                                                                                                                                                                                                        -        <span style="padding-right: 40px;" ngStyle.lt-sm="padding-right: 10px;">Logout</span>
                                                                                                                                                                                                                                                                                        -      </button>
                                                                                                                                                                                                                                                                                        -      </ng-container>
                                                                                                                                                                                                                                                                                        -    </mat-menu>
                                                                                                                                                                                                                                                                                        -  </mat-toolbar-row>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -  <mat-toolbar-row fxLayout="row" fxLayoutAlign="space-between center" fxHide fxShow.lt-sm>
                                                                                                                                                                                                                                                                                        -    <a mat-button *ngFor="let item of navigation"
                                                                                                                                                                                                                                                                                        -       [routerLink]="[item.link]" routerLinkActive="active">
                                                                                                                                                                                                                                                                                        -      {{item.label}}
                                                                                                                                                                                                                                                                                        -    </a>
                                                                                                                                                                                                                                                                                        -  </mat-toolbar-row>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -</mat-toolbar>
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        - ./header.component.scss -

                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        :host {
                                                                                                                                                                                                                                                                                        -  position: sticky;
                                                                                                                                                                                                                                                                                        -  top: 0;
                                                                                                                                                                                                                                                                                        -  left: 0;
                                                                                                                                                                                                                                                                                        -  right: 0;
                                                                                                                                                                                                                                                                                        -  z-index: 2;
                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -mat-toolbar {
                                                                                                                                                                                                                                                                                        -  height: 56px !important;
                                                                                                                                                                                                                                                                                        -  min-height: 56px !important;
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -  mat-toolbar-row {
                                                                                                                                                                                                                                                                                        -    height: 56px !important;
                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -mat-nav-list {
                                                                                                                                                                                                                                                                                        -  padding-top: 0;
                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -.default-angular-logo {
                                                                                                                                                                                                                                                                                        -  height: 26px;
                                                                                                                                                                                                                                                                                        -  margin: 0 4px 3px 0;
                                                                                                                                                                                                                                                                                        -  vertical-align: middle;
                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -.default-menu-icon {
                                                                                                                                                                                                                                                                                        -  font-size: 36px;
                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -:host ::ng-deep theme-picker {
                                                                                                                                                                                                                                                                                        -  .mat-icon-button {
                                                                                                                                                                                                                                                                                        -    margin-left: 50px;
                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/HomeLayoutComponent.html b/docs/components/HomeLayoutComponent.html deleted file mode 100644 index caf90854e..000000000 --- a/docs/components/HomeLayoutComponent.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          - libs/home/src/lib/containers/home-layout/home-layout.component.ts -

                                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                          selectorngx-home-layout
                                                                                                                                                                                                                                                                                          styleUrls./home-layout.component.scss
                                                                                                                                                                                                                                                                                          templateUrl./home-layout.component.html
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                          -constructor() -
                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - - - - - - - -
                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                          -import { routerTransition } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                          -  selector: 'ngx-home-layout',
                                                                                                                                                                                                                                                                                          -  templateUrl: './home-layout.component.html',
                                                                                                                                                                                                                                                                                          -  styleUrls: ['./home-layout.component.scss'],
                                                                                                                                                                                                                                                                                          -  animations: [routerTransition],
                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                          -export class HomeLayoutComponent {
                                                                                                                                                                                                                                                                                          -  constructor() {}
                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          <div id="top" fxLayout="column" fxFlexFill>
                                                                                                                                                                                                                                                                                          -  <ngx-home-header></ngx-home-header>
                                                                                                                                                                                                                                                                                          -  <div fxFlex class="content" [@routerTransition]="o.isActivated && o.activatedRoute.routeConfig.path">
                                                                                                                                                                                                                                                                                          -    <router-outlet #o="outlet"></router-outlet>
                                                                                                                                                                                                                                                                                          -  </div>
                                                                                                                                                                                                                                                                                          -  <scroll-to-top><!-- add id="top" --></scroll-to-top>
                                                                                                                                                                                                                                                                                          -  <ngx-footer></ngx-footer>
                                                                                                                                                                                                                                                                                          -</div>
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          - ./home-layout.component.scss -

                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ImageCompComponent.html b/docs/components/ImageCompComponent.html deleted file mode 100644 index 35c6c13f5..000000000 --- a/docs/components/ImageCompComponent.html +++ /dev/null @@ -1,436 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            - libs/experiments/src/lib/containers/image-comp/image-comp.component.ts -

                                                                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            - OnInit -

                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                            selectorngx-image-comp
                                                                                                                                                                                                                                                                                            styleUrls./image-comp.component.scss
                                                                                                                                                                                                                                                                                            templateUrl./image-comp.component.html
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                            -constructor() -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                            - - - - crumbs - - - -
                                                                                                                                                                                                                                                                                            - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                            - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                            - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Image Comp Demo' }, - ] -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                            -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                            -  selector: 'ngx-image-comp',
                                                                                                                                                                                                                                                                                            -  templateUrl: './image-comp.component.html',
                                                                                                                                                                                                                                                                                            -  styleUrls: ['./image-comp.component.scss'],
                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                            -export class ImageCompComponent implements OnInit {
                                                                                                                                                                                                                                                                                            -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                            -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                            -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                            -    { name: 'Image Comp Demo' },
                                                                                                                                                                                                                                                                                            -  ];
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -  constructor() {}
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -  ngOnInit() {}
                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            <ngx-breadcrumbs title="Micro Interactions" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -<ngx-image-comparison startPosition="70">
                                                                                                                                                                                                                                                                                            -  <img #comparisonImage src="assets/img/comp/1-before.jpg" alt="first image"  data-label="first">
                                                                                                                                                                                                                                                                                            -  <img #comparisonImage src="assets/img/comp/1-after.jpg"  alt="second image" data-label="second">
                                                                                                                                                                                                                                                                                            -</ngx-image-comparison>
                                                                                                                                                                                                                                                                                            -<br/><br/>
                                                                                                                                                                                                                                                                                            -<ngx-image-comparison startPosition="40">
                                                                                                                                                                                                                                                                                            -  <img #comparisonImage src="assets/img/comp/2-before.jpg" alt="" data-label="1">
                                                                                                                                                                                                                                                                                            -  <img #comparisonImage src="assets/img/comp/2-after.jpg"  alt="" data-label="2">
                                                                                                                                                                                                                                                                                            -</ngx-image-comparison>
                                                                                                                                                                                                                                                                                            -<br/><br/>
                                                                                                                                                                                                                                                                                            -<ngx-image-comparison startPosition="60">
                                                                                                                                                                                                                                                                                            -  <img #comparisonImage src="assets/img/comp/3-before.jpg">
                                                                                                                                                                                                                                                                                            -  <img #comparisonImage src="assets/img/comp/3-after.jpg">
                                                                                                                                                                                                                                                                                            -</ngx-image-comparison>
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            - ./image-comp.component.scss -

                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            :host {
                                                                                                                                                                                                                                                                                            -  display: block;
                                                                                                                                                                                                                                                                                            -  padding: 1.5%;
                                                                                                                                                                                                                                                                                            -  position: relative;
                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ImageComparisonComponent.html b/docs/components/ImageComparisonComponent.html deleted file mode 100644 index 57e10b865..000000000 --- a/docs/components/ImageComparisonComponent.html +++ /dev/null @@ -1,790 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              - libs/image-comparison/src/lib/image-comparison.component.ts -

                                                                                                                                                                                                                                                                                              - - - -

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              - AfterViewInit - OnInit -

                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              encapsulationViewEncapsulation.None
                                                                                                                                                                                                                                                                                              selectorngx-image-comparison
                                                                                                                                                                                                                                                                                              styleUrls./image-comparison.component.scss
                                                                                                                                                                                                                                                                                              templateUrl./image-comparison.component.html
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              -constructor(startPosition: number, hostElement: ElementRef, renderer: Renderer2) -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                              startPosition - number - - No -
                                                                                                                                                                                                                                                                                              hostElement - ElementRef - - No -
                                                                                                                                                                                                                                                                                              renderer - Renderer2 - - No -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              - - - - Private - createImageComparison - - - -
                                                                                                                                                                                                                                                                                              - - createImageComparison() -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - Returns : any - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                              -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                              -ngOnInit() -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              - - - - comparisonImages - - - -
                                                                                                                                                                                                                                                                                              - comparisonImages: QueryList<any> - -
                                                                                                                                                                                                                                                                                              - Type : QueryList<any> - -
                                                                                                                                                                                                                                                                                              - Decorators : -
                                                                                                                                                                                                                                                                                              - - @ContentChildren('comparisonImage')
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              - - - - Public - Readonly - startPosition - - - -
                                                                                                                                                                                                                                                                                              - startPosition: number - -
                                                                                                                                                                                                                                                                                              - Type : number - -
                                                                                                                                                                                                                                                                                              - Decorators : -
                                                                                                                                                                                                                                                                                              - - @Attribute('startPosition')
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              import {
                                                                                                                                                                                                                                                                                              -  AfterViewInit,
                                                                                                                                                                                                                                                                                              -  Attribute,
                                                                                                                                                                                                                                                                                              -  Component,
                                                                                                                                                                                                                                                                                              -  ContentChildren,
                                                                                                                                                                                                                                                                                              -  ElementRef,
                                                                                                                                                                                                                                                                                              -  HostBinding,
                                                                                                                                                                                                                                                                                              -  Input,
                                                                                                                                                                                                                                                                                              -  OnInit,
                                                                                                                                                                                                                                                                                              -  QueryList,
                                                                                                                                                                                                                                                                                              -  Renderer2,
                                                                                                                                                                                                                                                                                              -  ViewEncapsulation,
                                                                                                                                                                                                                                                                                              -} from '@angular/core';
                                                                                                                                                                                                                                                                                              -import * as ImageComparison from './image-comparison';
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                              -  selector: 'ngx-image-comparison',
                                                                                                                                                                                                                                                                                              -  templateUrl: './image-comparison.component.html',
                                                                                                                                                                                                                                                                                              -  styleUrls: ['./image-comparison.component.scss'],
                                                                                                                                                                                                                                                                                              -  encapsulation: ViewEncapsulation.None,
                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                              -export class ImageComparisonComponent implements AfterViewInit, OnInit {
                                                                                                                                                                                                                                                                                              -  @ContentChildren('comparisonImage')
                                                                                                                                                                                                                                                                                              -  comparisonImages: QueryList<any>;
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -  // @Input() startPosition: number;
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -  constructor(
                                                                                                                                                                                                                                                                                              -    @Attribute('startPosition') public readonly startPosition: number,
                                                                                                                                                                                                                                                                                              -    private hostElement: ElementRef,
                                                                                                                                                                                                                                                                                              -    private renderer: Renderer2,
                                                                                                                                                                                                                                                                                              -  ) {}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -  ngOnInit() {}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                              -    this.comparisonImages.forEach((element: any) => {
                                                                                                                                                                                                                                                                                              -      this.renderer.addClass(element.nativeElement, 'comparison-image');
                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                              -    this.createImageComparison();
                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -  private createImageComparison(): any {
                                                                                                                                                                                                                                                                                              -    const comparison = new ImageComparison({
                                                                                                                                                                                                                                                                                              -      container: this.hostElement.nativeElement,
                                                                                                                                                                                                                                                                                              -      startPosition: this.startPosition || 50,
                                                                                                                                                                                                                                                                                              -      data: this.comparisonImages.map((element: any) => {
                                                                                                                                                                                                                                                                                              -        return {
                                                                                                                                                                                                                                                                                              -          image: element.nativeElement,
                                                                                                                                                                                                                                                                                              -          label: element.nativeElement.dataset.label,
                                                                                                                                                                                                                                                                                              -        };
                                                                                                                                                                                                                                                                                              -      }),
                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              <ng-content></ng-content>
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              - ./image-comparison.component.scss -

                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              .comparison-widget {
                                                                                                                                                                                                                                                                                              -  display: inline-block;
                                                                                                                                                                                                                                                                                              -  max-width: 100%;
                                                                                                                                                                                                                                                                                              -  max-height: 100%;
                                                                                                                                                                                                                                                                                              -  position: relative;
                                                                                                                                                                                                                                                                                              -  overflow: hidden;
                                                                                                                                                                                                                                                                                              -  vertical-align: top;
                                                                                                                                                                                                                                                                                              -  cursor: pointer;
                                                                                                                                                                                                                                                                                              -  -webkit-user-select: none;
                                                                                                                                                                                                                                                                                              -  -moz-user-select: none;
                                                                                                                                                                                                                                                                                              -  -ms-user-select: none;
                                                                                                                                                                                                                                                                                              -  user-select: none;
                                                                                                                                                                                                                                                                                              -  * {
                                                                                                                                                                                                                                                                                              -    -webkit-box-sizing: border-box;
                                                                                                                                                                                                                                                                                              -    -moz-box-sizing: border-box;
                                                                                                                                                                                                                                                                                              -    box-sizing: border-box;
                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                              -  &:hover {
                                                                                                                                                                                                                                                                                              -    .comparison-separator {
                                                                                                                                                                                                                                                                                              -      opacity: 1;
                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                              -    .comparison-control {
                                                                                                                                                                                                                                                                                              -      opacity: 1;
                                                                                                                                                                                                                                                                                              -      &:before,
                                                                                                                                                                                                                                                                                              -      &:after {
                                                                                                                                                                                                                                                                                              -        opacity: 1;
                                                                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-widget--hidden {
                                                                                                                                                                                                                                                                                              -  opacity: 0;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-item {
                                                                                                                                                                                                                                                                                              -  height: 100%;
                                                                                                                                                                                                                                                                                              -  width: 100%;
                                                                                                                                                                                                                                                                                              -  background: #fff;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-item--first {
                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                              -  top: 0;
                                                                                                                                                                                                                                                                                              -  left: 0;
                                                                                                                                                                                                                                                                                              -  z-index: 2;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-item__content {
                                                                                                                                                                                                                                                                                              -  height: 100%;
                                                                                                                                                                                                                                                                                              -  overflow: hidden;
                                                                                                                                                                                                                                                                                              -  position: relative;
                                                                                                                                                                                                                                                                                              -  &:hover .comparison-item__label {
                                                                                                                                                                                                                                                                                              -    background: #fff;
                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-item--first .comparison-image {
                                                                                                                                                                                                                                                                                              -  width: auto;
                                                                                                                                                                                                                                                                                              -  max-width: none;
                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                              -  left: 0;
                                                                                                                                                                                                                                                                                              -  top: 0;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-item__image {
                                                                                                                                                                                                                                                                                              -  display: block;
                                                                                                                                                                                                                                                                                              -  max-width: 100%;
                                                                                                                                                                                                                                                                                              -  -webkit-user-drag: none;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-item--first .comparison-item__label {
                                                                                                                                                                                                                                                                                              -  left: 0;
                                                                                                                                                                                                                                                                                              -  right: inherit;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-item__label {
                                                                                                                                                                                                                                                                                              -  padding: 7px 10px;
                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                              -  top: 0;
                                                                                                                                                                                                                                                                                              -  right: 0;
                                                                                                                                                                                                                                                                                              -  text-transform: uppercase;
                                                                                                                                                                                                                                                                                              -  font-family: Verdana, sans-serif;
                                                                                                                                                                                                                                                                                              -  font-size: 11px;
                                                                                                                                                                                                                                                                                              -  color: #222;
                                                                                                                                                                                                                                                                                              -  background: rgba(255, 255, 255, 0.65);
                                                                                                                                                                                                                                                                                              -  z-index: 1;
                                                                                                                                                                                                                                                                                              -  -webkit-transition: background-color 300ms linear;
                                                                                                                                                                                                                                                                                              -  -moz-transition: background-color 300ms linear;
                                                                                                                                                                                                                                                                                              -  transition: background-color 300ms linear;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-separator {
                                                                                                                                                                                                                                                                                              -  width: 2px;
                                                                                                                                                                                                                                                                                              -  height: 100%;
                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                              -  right: -1px;
                                                                                                                                                                                                                                                                                              -  top: 0;
                                                                                                                                                                                                                                                                                              -  z-index: 10;
                                                                                                                                                                                                                                                                                              -  background: #fff;
                                                                                                                                                                                                                                                                                              -  cursor: pointer;
                                                                                                                                                                                                                                                                                              -  opacity: 0.7;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-control {
                                                                                                                                                                                                                                                                                              -  width: 12px;
                                                                                                                                                                                                                                                                                              -  height: 12px;
                                                                                                                                                                                                                                                                                              -  margin-top: -6px;
                                                                                                                                                                                                                                                                                              -  margin-left: -6px;
                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                              -  top: 50%;
                                                                                                                                                                                                                                                                                              -  left: 50%;
                                                                                                                                                                                                                                                                                              -  background: #fff;
                                                                                                                                                                                                                                                                                              -  border-radius: 100%;
                                                                                                                                                                                                                                                                                              -  opacity: 0.7;
                                                                                                                                                                                                                                                                                              -  &:before,
                                                                                                                                                                                                                                                                                              -  &:after {
                                                                                                                                                                                                                                                                                              -    content: '';
                                                                                                                                                                                                                                                                                              -    display: block;
                                                                                                                                                                                                                                                                                              -    width: 12px;
                                                                                                                                                                                                                                                                                              -    height: 20px;
                                                                                                                                                                                                                                                                                              -    margin-top: -10px;
                                                                                                                                                                                                                                                                                              -    position: absolute;
                                                                                                                                                                                                                                                                                              -    top: 50%;
                                                                                                                                                                                                                                                                                              -    background: url('arrow.png') 0 0 no-repeat;
                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                              -  &:before {
                                                                                                                                                                                                                                                                                              -    left: -15px;
                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                              -  &:after {
                                                                                                                                                                                                                                                                                              -    right: -15px;
                                                                                                                                                                                                                                                                                              -    background-position: -12px 0px;
                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -.comparison-control__mask {
                                                                                                                                                                                                                                                                                              -  width: 50px;
                                                                                                                                                                                                                                                                                              -  height: 40px;
                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                              -  top: -15px;
                                                                                                                                                                                                                                                                                              -  left: -18px;
                                                                                                                                                                                                                                                                                              -  background: #fff;
                                                                                                                                                                                                                                                                                              -  opacity: 0;
                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/JsonDiffComponent.html b/docs/components/JsonDiffComponent.html deleted file mode 100644 index e7fabe728..000000000 --- a/docs/components/JsonDiffComponent.html +++ /dev/null @@ -1,1677 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                - libs/json-diff/src/lib/json-diff.component.ts -

                                                                                                                                                                                                                                                                                                - - - -

                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                - OnInit - OnChanges -

                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                selectorngx-json-diff
                                                                                                                                                                                                                                                                                                styleUrls./json-diff.component.scss
                                                                                                                                                                                                                                                                                                templateUrl./json-diff.component.html
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                Inputs
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                Inputs

                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - leftSideObject - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - rightSideObject - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - compare - - - -
                                                                                                                                                                                                                                                                                                - - compare(leftNode: JsonDiffNode, rightNode: JsonDiffNode) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                leftNode - JsonDiffNode - - No -
                                                                                                                                                                                                                                                                                                rightNode - JsonDiffNode - - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - copyInto - - - -
                                                                                                                                                                                                                                                                                                - - copyInto(side: JsonDiffNode[], item: JsonDiffNode, index: number, status: JsonDiffNodeStatus) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                side - JsonDiffNode[] - - No -
                                                                                                                                                                                                                                                                                                item - JsonDiffNode - - No -
                                                                                                                                                                                                                                                                                                index - number - - No -
                                                                                                                                                                                                                                                                                                status - JsonDiffNodeStatus - - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - generateNodeId - - - -
                                                                                                                                                                                                                                                                                                - - generateNodeId() -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Returns : any - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - itemInArray - - - -
                                                                                                                                                                                                                                                                                                - - itemInArray(side: JsonDiffNode[], node: JsonDiffNode) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                side - JsonDiffNode[] - - No -
                                                                                                                                                                                                                                                                                                node - JsonDiffNode - - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : any - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - leftItemFromRightItem - - - -
                                                                                                                                                                                                                                                                                                - - leftItemFromRightItem(leftNode: JsonDiffNode, rightNode: JsonDiffNode) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                leftNode - JsonDiffNode - - No -
                                                                                                                                                                                                                                                                                                rightNode - JsonDiffNode - - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : any - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - ngOnChanges - - - -
                                                                                                                                                                                                                                                                                                -ngOnChanges(changes) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameOptional
                                                                                                                                                                                                                                                                                                changes - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                -ngOnInit() -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - onhover - - - -
                                                                                                                                                                                                                                                                                                -onhover(event) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameOptional
                                                                                                                                                                                                                                                                                                event - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - reIndex - - - -
                                                                                                                                                                                                                                                                                                - - reIndex(list: JsonDiffNode[]) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                list - JsonDiffNode[] - - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - toInternalStruction - - - -
                                                                                                                                                                                                                                                                                                - - toInternalStruction(leftNode, rightNode) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameOptional
                                                                                                                                                                                                                                                                                                leftNode - No -
                                                                                                                                                                                                                                                                                                rightNode - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : { leftSide: any; rightSide: any; } - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - transformNodeToInternalStruction - - - -
                                                                                                                                                                                                                                                                                                - - transformNodeToInternalStruction(node) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameOptional
                                                                                                                                                                                                                                                                                                node - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : any - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - Private - unify - - - -
                                                                                                                                                                                                                                                                                                - - unify(leftSide: JsonDiffNode[], rightSide: JsonDiffNode[]) -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                leftSide - JsonDiffNode[] - - No -
                                                                                                                                                                                                                                                                                                rightSide - JsonDiffNode[] - - No -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - leftSide - - - -
                                                                                                                                                                                                                                                                                                - leftSide: - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                - - - - rightSide - - - -
                                                                                                                                                                                                                                                                                                - rightSide: - -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                import { Component, OnInit, OnChanges, Input, Output, EventEmitter } from '@angular/core';
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -import { JsonDiffNode, JsonDiffNodeType, JsonDiffNodeStatus } from './json-diff.interfaces';
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                -  selector: 'ngx-json-diff',
                                                                                                                                                                                                                                                                                                -  templateUrl: './json-diff.component.html',
                                                                                                                                                                                                                                                                                                -  styleUrls: ['./json-diff.component.scss'],
                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                -export class JsonDiffComponent implements OnInit, OnChanges {
                                                                                                                                                                                                                                                                                                -  leftSide;
                                                                                                                                                                                                                                                                                                -  rightSide;
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                -  leftSideObject;
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                -  rightSideObject;
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -  constructor() {}
                                                                                                                                                                                                                                                                                                -  private generateNodeId() {
                                                                                                                                                                                                                                                                                                -    const min = 1;
                                                                                                                                                                                                                                                                                                -    const max = 10000;
                                                                                                                                                                                                                                                                                                -    return Math.floor(Math.random() * (max - min + 1)) + min;
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -  private transformNodeToInternalStruction(node) {
                                                                                                                                                                                                                                                                                                -    let result = node;
                                                                                                                                                                                                                                                                                                -    if (node instanceof Array) {
                                                                                                                                                                                                                                                                                                -      const children: JsonDiffNode[] = [];
                                                                                                                                                                                                                                                                                                -      node.map((item, i) => {
                                                                                                                                                                                                                                                                                                -        const jsonValue: any = this.transformNodeToInternalStruction(item);
                                                                                                                                                                                                                                                                                                -        if (jsonValue instanceof Array) {
                                                                                                                                                                                                                                                                                                -          children.push({
                                                                                                                                                                                                                                                                                                -            id: this.generateNodeId(),
                                                                                                                                                                                                                                                                                                -            index: i,
                                                                                                                                                                                                                                                                                                -            name: '',
                                                                                                                                                                                                                                                                                                -            value: '',
                                                                                                                                                                                                                                                                                                -            parent: JsonDiffNodeType.array,
                                                                                                                                                                                                                                                                                                -            type: JsonDiffNodeType.array,
                                                                                                                                                                                                                                                                                                -            status: JsonDiffNodeStatus.default,
                                                                                                                                                                                                                                                                                                -            children: jsonValue,
                                                                                                                                                                                                                                                                                                -          });
                                                                                                                                                                                                                                                                                                -        } else {
                                                                                                                                                                                                                                                                                                -          children.push({
                                                                                                                                                                                                                                                                                                -            id: this.generateNodeId(),
                                                                                                                                                                                                                                                                                                -            index: i,
                                                                                                                                                                                                                                                                                                -            name: '',
                                                                                                                                                                                                                                                                                                -            value: jsonValue,
                                                                                                                                                                                                                                                                                                -            parent: JsonDiffNodeType.array,
                                                                                                                                                                                                                                                                                                -            type: JsonDiffNodeType.literal,
                                                                                                                                                                                                                                                                                                -            status: JsonDiffNodeStatus.default,
                                                                                                                                                                                                                                                                                                -            children: [],
                                                                                                                                                                                                                                                                                                -          });
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      });
                                                                                                                                                                                                                                                                                                -      result = children;
                                                                                                                                                                                                                                                                                                -    } else if (node instanceof Object) {
                                                                                                                                                                                                                                                                                                -      const list = Object.keys(node);
                                                                                                                                                                                                                                                                                                -      const children: JsonDiffNode[] = [];
                                                                                                                                                                                                                                                                                                -      list.map((item, i) => {
                                                                                                                                                                                                                                                                                                -        const jsonValue: any = this.transformNodeToInternalStruction(node[item]);
                                                                                                                                                                                                                                                                                                -        if (jsonValue instanceof Array) {
                                                                                                                                                                                                                                                                                                -          children.push({
                                                                                                                                                                                                                                                                                                -            id: this.generateNodeId(),
                                                                                                                                                                                                                                                                                                -            index: i,
                                                                                                                                                                                                                                                                                                -            name: item,
                                                                                                                                                                                                                                                                                                -            value: '',
                                                                                                                                                                                                                                                                                                -            parent: JsonDiffNodeType.json,
                                                                                                                                                                                                                                                                                                -            type: JsonDiffNodeType.array,
                                                                                                                                                                                                                                                                                                -            status: JsonDiffNodeStatus.default,
                                                                                                                                                                                                                                                                                                -            children: jsonValue,
                                                                                                                                                                                                                                                                                                -          });
                                                                                                                                                                                                                                                                                                -        } else {
                                                                                                                                                                                                                                                                                                -          children.push({
                                                                                                                                                                                                                                                                                                -            id: this.generateNodeId(),
                                                                                                                                                                                                                                                                                                -            index: i,
                                                                                                                                                                                                                                                                                                -            name: item,
                                                                                                                                                                                                                                                                                                -            value: jsonValue,
                                                                                                                                                                                                                                                                                                -            parent: JsonDiffNodeType.json,
                                                                                                                                                                                                                                                                                                -            type: JsonDiffNodeType.pair,
                                                                                                                                                                                                                                                                                                -            status: JsonDiffNodeStatus.default,
                                                                                                                                                                                                                                                                                                -            children: [],
                                                                                                                                                                                                                                                                                                -          });
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      });
                                                                                                                                                                                                                                                                                                -      result = children;
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -    return result;
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -  private itemInArray(side: JsonDiffNode[], node: JsonDiffNode) {
                                                                                                                                                                                                                                                                                                -    let result: JsonDiffNode;
                                                                                                                                                                                                                                                                                                -    const key = node.type === JsonDiffNodeType.literal ? node.value.toUpperCase() : node.name;
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -    side.map((item: JsonDiffNode) => {
                                                                                                                                                                                                                                                                                                -      if (item.type === JsonDiffNodeType.literal) {
                                                                                                                                                                                                                                                                                                -        if (item.value.toUpperCase() === key) {
                                                                                                                                                                                                                                                                                                -          result = item;
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      } else {
                                                                                                                                                                                                                                                                                                -        if (item.name === key) {
                                                                                                                                                                                                                                                                                                -          result = item;
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                -    return result;
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -  private leftItemFromRightItem(leftNode: JsonDiffNode, rightNode: JsonDiffNode) {
                                                                                                                                                                                                                                                                                                -    let result: JsonDiffNode;
                                                                                                                                                                                                                                                                                                -    if (!leftNode || !rightNode) {
                                                                                                                                                                                                                                                                                                -      return result;
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -    const key = rightNode.type === JsonDiffNodeType.literal ? rightNode.value.toUpperCase() : rightNode.name;
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -    if (leftNode.type === JsonDiffNodeType.literal) {
                                                                                                                                                                                                                                                                                                -      if (leftNode.value.toUpperCase() === key) {
                                                                                                                                                                                                                                                                                                -        result = leftNode;
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -    } else {
                                                                                                                                                                                                                                                                                                -      if (leftNode.name === key) {
                                                                                                                                                                                                                                                                                                -        result = leftNode;
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -    return result;
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -  private compare(leftNode: JsonDiffNode, rightNode: JsonDiffNode) {
                                                                                                                                                                                                                                                                                                -    if (leftNode.type !== rightNode.type) {
                                                                                                                                                                                                                                                                                                -      leftNode.status = JsonDiffNodeStatus.typeChanged;
                                                                                                                                                                                                                                                                                                -      rightNode.status = JsonDiffNodeStatus.typeChanged;
                                                                                                                                                                                                                                                                                                -    } else if (leftNode.type === JsonDiffNodeType.literal) {
                                                                                                                                                                                                                                                                                                -      if (leftNode.value !== rightNode.value) {
                                                                                                                                                                                                                                                                                                -        leftNode.status = JsonDiffNodeStatus.valueChanged;
                                                                                                                                                                                                                                                                                                -        rightNode.status = JsonDiffNodeStatus.valueChanged;
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -    } else if (leftNode.type === JsonDiffNodeType.pair) {
                                                                                                                                                                                                                                                                                                -      if (leftNode.name !== rightNode.name) {
                                                                                                                                                                                                                                                                                                -        leftNode.status = JsonDiffNodeStatus.nameChanged;
                                                                                                                                                                                                                                                                                                -        rightNode.status = JsonDiffNodeStatus.nameChanged;
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (leftNode.value !== rightNode.value) {
                                                                                                                                                                                                                                                                                                -        leftNode.status = JsonDiffNodeStatus.valueChanged;
                                                                                                                                                                                                                                                                                                -        rightNode.status = JsonDiffNodeStatus.valueChanged;
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -    } else {
                                                                                                                                                                                                                                                                                                -      if (leftNode.name !== rightNode.name) {
                                                                                                                                                                                                                                                                                                -        leftNode.status = JsonDiffNodeStatus.nameChanged;
                                                                                                                                                                                                                                                                                                -        rightNode.status = JsonDiffNodeStatus.nameChanged;
                                                                                                                                                                                                                                                                                                -      } else {
                                                                                                                                                                                                                                                                                                -        this.unify(leftNode.children, rightNode.children);
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -  private reIndex(list: JsonDiffNode[]) {
                                                                                                                                                                                                                                                                                                -    list.map((item, i) => {
                                                                                                                                                                                                                                                                                                -      item.index = i;
                                                                                                                                                                                                                                                                                                -      this.reIndex(item.children);
                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -  private copyInto(side: JsonDiffNode[], item: JsonDiffNode, index: number, status: JsonDiffNodeStatus) {
                                                                                                                                                                                                                                                                                                -    const newItem = JSON.parse(JSON.stringify(item));
                                                                                                                                                                                                                                                                                                -    side.splice(index, 0, newItem);
                                                                                                                                                                                                                                                                                                -    this.reIndex(side);
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -    item.status = status;
                                                                                                                                                                                                                                                                                                -    newItem.status = status;
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -  private unify(leftSide: JsonDiffNode[], rightSide: JsonDiffNode[]) {
                                                                                                                                                                                                                                                                                                -    let i = 0,
                                                                                                                                                                                                                                                                                                -      j = 0,
                                                                                                                                                                                                                                                                                                -      looping = true;
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -    while (looping) {
                                                                                                                                                                                                                                                                                                -      let leftItemInRightSide: JsonDiffNode =
                                                                                                                                                                                                                                                                                                -        i < leftSide.length ? this.itemInArray(rightSide, leftSide[i]) : undefined;
                                                                                                                                                                                                                                                                                                -      let rightItemInLeftSide: JsonDiffNode =
                                                                                                                                                                                                                                                                                                -        j < rightSide.length ? this.itemInArray(leftSide, rightSide[j]) : undefined;
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -      if (!leftItemInRightSide && i < leftSide.length) {
                                                                                                                                                                                                                                                                                                -        if (!rightSide.length) {
                                                                                                                                                                                                                                                                                                -          while (i < leftSide.length) {
                                                                                                                                                                                                                                                                                                -            this.copyInto(rightSide, leftSide[i], i, JsonDiffNodeStatus.removed);
                                                                                                                                                                                                                                                                                                -            j++;
                                                                                                                                                                                                                                                                                                -            i++;
                                                                                                                                                                                                                                                                                                -          }
                                                                                                                                                                                                                                                                                                -        } else {
                                                                                                                                                                                                                                                                                                -          this.copyInto(rightSide, leftSide[i], i, JsonDiffNodeStatus.removed);
                                                                                                                                                                                                                                                                                                -          j++;
                                                                                                                                                                                                                                                                                                -          i++;
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (!rightItemInLeftSide && j < rightSide.length) {
                                                                                                                                                                                                                                                                                                -        if (!leftSide.length) {
                                                                                                                                                                                                                                                                                                -          while (j < rightSide.length) {
                                                                                                                                                                                                                                                                                                -            this.copyInto(leftSide, rightSide[j], j, JsonDiffNodeStatus.added);
                                                                                                                                                                                                                                                                                                -            j++;
                                                                                                                                                                                                                                                                                                -            i++;
                                                                                                                                                                                                                                                                                                -          }
                                                                                                                                                                                                                                                                                                -        } else {
                                                                                                                                                                                                                                                                                                -          this.copyInto(leftSide, rightSide[j], j, JsonDiffNodeStatus.added);
                                                                                                                                                                                                                                                                                                -          j++;
                                                                                                                                                                                                                                                                                                -          i++;
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (!leftItemInRightSide) {
                                                                                                                                                                                                                                                                                                -        leftItemInRightSide = j < rightSide.length ? rightSide[j] : undefined;
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (!rightItemInLeftSide) {
                                                                                                                                                                                                                                                                                                -        rightItemInLeftSide = i < leftSide.length ? leftSide[i] : undefined;
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (leftItemInRightSide && leftItemInRightSide.index !== i) {
                                                                                                                                                                                                                                                                                                -        while (i < leftSide.length) {
                                                                                                                                                                                                                                                                                                -          leftItemInRightSide = this.leftItemFromRightItem(rightSide[i], leftSide[i]);
                                                                                                                                                                                                                                                                                                -          if (leftItemInRightSide) {
                                                                                                                                                                                                                                                                                                -            leftItemInRightSide = j < rightSide.length ? rightSide[j] : undefined;
                                                                                                                                                                                                                                                                                                -            break;
                                                                                                                                                                                                                                                                                                -          } else {
                                                                                                                                                                                                                                                                                                -            this.copyInto(rightSide, leftSide[i], i, JsonDiffNodeStatus.removed);
                                                                                                                                                                                                                                                                                                -            j++;
                                                                                                                                                                                                                                                                                                -            i++;
                                                                                                                                                                                                                                                                                                -          }
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (rightItemInLeftSide && rightItemInLeftSide.index !== j) {
                                                                                                                                                                                                                                                                                                -        while (j < rightSide.length) {
                                                                                                                                                                                                                                                                                                -          rightItemInLeftSide = this.leftItemFromRightItem(leftSide[j], rightSide[j]);
                                                                                                                                                                                                                                                                                                -          if (rightItemInLeftSide) {
                                                                                                                                                                                                                                                                                                -            rightItemInLeftSide = i < leftSide.length ? leftSide[i] : undefined;
                                                                                                                                                                                                                                                                                                -            break;
                                                                                                                                                                                                                                                                                                -          } else {
                                                                                                                                                                                                                                                                                                -            this.copyInto(leftSide, rightSide[j], j, JsonDiffNodeStatus.added);
                                                                                                                                                                                                                                                                                                -            j++;
                                                                                                                                                                                                                                                                                                -            i++;
                                                                                                                                                                                                                                                                                                -          }
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (leftItemInRightSide && i < leftSide.length) {
                                                                                                                                                                                                                                                                                                -        const x = this.itemInArray(rightSide, leftSide[i]);
                                                                                                                                                                                                                                                                                                -        if (x && x.index !== leftItemInRightSide.index) {
                                                                                                                                                                                                                                                                                                -          this.copyInto(leftSide, rightSide[j], j, JsonDiffNodeStatus.added);
                                                                                                                                                                                                                                                                                                -          j++;
                                                                                                                                                                                                                                                                                                -          i++;
                                                                                                                                                                                                                                                                                                -          leftItemInRightSide = j < rightSide.length ? rightSide[j] : undefined;
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (rightItemInLeftSide && j < rightSide.length) {
                                                                                                                                                                                                                                                                                                -        const x = this.itemInArray(leftSide, rightSide[j]);
                                                                                                                                                                                                                                                                                                -        if (x && x.index !== rightItemInLeftSide.index) {
                                                                                                                                                                                                                                                                                                -          this.copyInto(rightSide, leftSide[i], i, JsonDiffNodeStatus.removed);
                                                                                                                                                                                                                                                                                                -          j++;
                                                                                                                                                                                                                                                                                                -          i++;
                                                                                                                                                                                                                                                                                                -          rightItemInLeftSide = i < leftSide.length ? leftSide[i] : undefined;
                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      if (leftItemInRightSide && rightItemInLeftSide) {
                                                                                                                                                                                                                                                                                                -        this.compare(leftItemInRightSide, rightItemInLeftSide);
                                                                                                                                                                                                                                                                                                -        j++;
                                                                                                                                                                                                                                                                                                -        i++;
                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                -      looping = i < leftSide.length || j < rightSide.length;
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -  private toInternalStruction(leftNode, rightNode) {
                                                                                                                                                                                                                                                                                                -    const result = {
                                                                                                                                                                                                                                                                                                -      leftSide: this.transformNodeToInternalStruction(leftNode),
                                                                                                                                                                                                                                                                                                -      rightSide: this.transformNodeToInternalStruction(rightNode),
                                                                                                                                                                                                                                                                                                -    };
                                                                                                                                                                                                                                                                                                -    this.unify(result.leftSide, result.rightSide);
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -    return result;
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -  ngOnChanges(changes) {
                                                                                                                                                                                                                                                                                                -    if (changes.leftSideObject) {
                                                                                                                                                                                                                                                                                                -      this.ngOnInit();
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -    if (changes.rightSideObject) {
                                                                                                                                                                                                                                                                                                -      this.ngOnInit();
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -  ngOnInit() {
                                                                                                                                                                                                                                                                                                -    if (this.leftSideObject && this.rightSideObject) {
                                                                                                                                                                                                                                                                                                -      const comparision = this.toInternalStruction(this.leftSideObject, this.rightSideObject);
                                                                                                                                                                                                                                                                                                -      this.leftSide = [
                                                                                                                                                                                                                                                                                                -        {
                                                                                                                                                                                                                                                                                                -          id: this.generateNodeId(),
                                                                                                                                                                                                                                                                                                -          name: '',
                                                                                                                                                                                                                                                                                                -          value: 'Root Object',
                                                                                                                                                                                                                                                                                                -          parent: JsonDiffNodeType.array,
                                                                                                                                                                                                                                                                                                -          type: JsonDiffNodeType.array,
                                                                                                                                                                                                                                                                                                -          expanded: true,
                                                                                                                                                                                                                                                                                                -          isRoot: true,
                                                                                                                                                                                                                                                                                                -          children: comparision.leftSide,
                                                                                                                                                                                                                                                                                                -        },
                                                                                                                                                                                                                                                                                                -      ];
                                                                                                                                                                                                                                                                                                -      this.rightSide = [
                                                                                                                                                                                                                                                                                                -        {
                                                                                                                                                                                                                                                                                                -          id: this.generateNodeId(),
                                                                                                                                                                                                                                                                                                -          name: '',
                                                                                                                                                                                                                                                                                                -          value: 'Root Object',
                                                                                                                                                                                                                                                                                                -          parent: JsonDiffNodeType.array,
                                                                                                                                                                                                                                                                                                -          type: JsonDiffNodeType.array,
                                                                                                                                                                                                                                                                                                -          expanded: true,
                                                                                                                                                                                                                                                                                                -          isRoot: true,
                                                                                                                                                                                                                                                                                                -          children: comparision.rightSide,
                                                                                                                                                                                                                                                                                                -        },
                                                                                                                                                                                                                                                                                                -      ];
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -  onhover(event) {
                                                                                                                                                                                                                                                                                                -    let children;
                                                                                                                                                                                                                                                                                                -    if (event.side === 'left-side') {
                                                                                                                                                                                                                                                                                                -      children = this.rightSide[0].children;
                                                                                                                                                                                                                                                                                                -    } else {
                                                                                                                                                                                                                                                                                                -      children = this.leftSide[0].children;
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -    if (children.length > event.index) {
                                                                                                                                                                                                                                                                                                -      children[event.index].hover = event.hover;
                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                <ngx-json-diff-tree
                                                                                                                                                                                                                                                                                                -    class="root"
                                                                                                                                                                                                                                                                                                -    level="0"
                                                                                                                                                                                                                                                                                                -    side="left-side"
                                                                                                                                                                                                                                                                                                -    (onhover)="onhover($event)"
                                                                                                                                                                                                                                                                                                -    [children]="leftSide"></ngx-json-diff-tree>
                                                                                                                                                                                                                                                                                                -<ngx-json-diff-tree
                                                                                                                                                                                                                                                                                                -    class="root"
                                                                                                                                                                                                                                                                                                -    level="0"
                                                                                                                                                                                                                                                                                                -    side="right-side"
                                                                                                                                                                                                                                                                                                -    (onhover)="onhover($event)"
                                                                                                                                                                                                                                                                                                -    [children]="rightSide"></ngx-json-diff-tree>
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                - ./json-diff.component.scss -

                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                :host {
                                                                                                                                                                                                                                                                                                -  border: 1px solid #444;
                                                                                                                                                                                                                                                                                                -  box-sizing: border-box;
                                                                                                                                                                                                                                                                                                -  display: block;
                                                                                                                                                                                                                                                                                                -  max-width: 100vw;
                                                                                                                                                                                                                                                                                                -  max-height: 300px;
                                                                                                                                                                                                                                                                                                -  overflow-y: auto;
                                                                                                                                                                                                                                                                                                -  position: relative;
                                                                                                                                                                                                                                                                                                -  width: 100%;
                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/JsonDiffTreeComponent.html b/docs/components/JsonDiffTreeComponent.html deleted file mode 100644 index e444a7d89..000000000 --- a/docs/components/JsonDiffTreeComponent.html +++ /dev/null @@ -1,1053 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  - libs/json-diff/src/lib/json-diff-tree.component.ts -

                                                                                                                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  - OnInit -

                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  selectorngx-json-diff-tree
                                                                                                                                                                                                                                                                                                  styleUrls./json-diff-tree.component.scss
                                                                                                                                                                                                                                                                                                  templateUrl./json-diff-tree.component.html
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  Inputs
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  Outputs
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Inputs

                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  - - children - -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  - - level - -

                                                                                                                                                                                                                                                                                                  - Default value : '0' -

                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  - - side - -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Outputs

                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  - - onhover - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  - - - - bubleup - - - -
                                                                                                                                                                                                                                                                                                  -bubleup(event) -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  NameOptional
                                                                                                                                                                                                                                                                                                  event - No -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  - - - - mouseOvered - - - -
                                                                                                                                                                                                                                                                                                  -mouseOvered(flag, i) -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  NameOptional
                                                                                                                                                                                                                                                                                                  flag - No -
                                                                                                                                                                                                                                                                                                  i - No -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                  -ngOnInit() -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  - - - - depth - - - -
                                                                                                                                                                                                                                                                                                  - depth: number - -
                                                                                                                                                                                                                                                                                                  - Type : number - -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-json-diff-tree',
                                                                                                                                                                                                                                                                                                  -  templateUrl: './json-diff-tree.component.html',
                                                                                                                                                                                                                                                                                                  -  styleUrls: ['./json-diff-tree.component.scss'],
                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                  -export class JsonDiffTreeComponent implements OnInit {
                                                                                                                                                                                                                                                                                                  -  depth: number;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  @Output()
                                                                                                                                                                                                                                                                                                  -  onhover = new EventEmitter();
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                                                                  -  children;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                                                                  -  side;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                                                                  -  level = '0';
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  ngOnInit() {
                                                                                                                                                                                                                                                                                                  -    this.depth = parseInt(this.level, 10);
                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  bubleup(event) {
                                                                                                                                                                                                                                                                                                  -    event.side = this.side;
                                                                                                                                                                                                                                                                                                  -    this.onhover.emit(event);
                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  mouseOvered(flag, i) {
                                                                                                                                                                                                                                                                                                  -    if (this.depth === 1) {
                                                                                                                                                                                                                                                                                                  -      this.onhover.emit({
                                                                                                                                                                                                                                                                                                  -        hover: flag,
                                                                                                                                                                                                                                                                                                  -        index: i,
                                                                                                                                                                                                                                                                                                  -        side: this.side,
                                                                                                                                                                                                                                                                                                  -      });
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  <ul [class]="side">
                                                                                                                                                                                                                                                                                                  -  <li  *ngFor="let child of children"
                                                                                                                                                                                                                                                                                                  -    (mouseout)="mouseOvered(false, child.index)"
                                                                                                                                                                                                                                                                                                  -    (mouseover)="mouseOvered(true, child.index)"
                                                                                                                                                                                                                                                                                                  -    [class.hover]="child.hover"
                                                                                                                                                                                                                                                                                                  -    [class.added]="child.status === 5"
                                                                                                                                                                                                                                                                                                  -    [class.removed]="child.status === 6"
                                                                                                                                                                                                                                                                                                  -    [class.type-changed]="child.status === 2"
                                                                                                                                                                                                                                                                                                  -    [class.name-changed]="child.status === 3"
                                                                                                                                                                                                                                                                                                  -    [class.value-changed]="child.status === 4">
                                                                                                                                                                                                                                                                                                  -    <div class='tree-node'
                                                                                                                                                                                                                                                                                                  -        [ngClass]="'depth-' + depth"
                                                                                                                                                                                                                                                                                                  -        [id] = "child.id">
                                                                                                                                                                                                                                                                                                  -      <span *ngIf='child.name && child.name!=null'
                                                                                                                                                                                                                                                                                                  -        class='name'
                                                                                                                                                                                                                                                                                                  -        [innerHTML]="child.name.length ? child.name : '&nbsp;'">
                                                                                                                                                                                                                                                                                                  -      </span>
                                                                                                                                                                                                                                                                                                  -      <span *ngIf='child.value && child.value!=null'
                                                                                                                                                                                                                                                                                                  -        class='value'
                                                                                                                                                                                                                                                                                                  -        [class.string]="depth > 0 && child.value && child.value.length"
                                                                                                                                                                                                                                                                                                  -        [innerHTML]="child.value ? child.value : '&nbsp;'">
                                                                                                                                                                                                                                                                                                  -      </span>
                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                  -    <ngx-json-diff-tree *ngIf="child.children.length"
                                                                                                                                                                                                                                                                                                  -        [level]="depth+1"
                                                                                                                                                                                                                                                                                                  -        (onhover)="bubleup($event)"
                                                                                                                                                                                                                                                                                                  -        [class.child-node]="child.parent != 4"
                                                                                                                                                                                                                                                                                                  -        [children]='child.children'></ngx-json-diff-tree>
                                                                                                                                                                                                                                                                                                  -    <div class="upper" *ngIf="child.status > 2"></div>
                                                                                                                                                                                                                                                                                                  -    <div class="lower" *ngIf="child.status > 2"></div>
                                                                                                                                                                                                                                                                                                  -  </li>
                                                                                                                                                                                                                                                                                                  -</ul>
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  - ./json-diff-tree.component.scss -

                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  :host {
                                                                                                                                                                                                                                                                                                  -  box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -  display: inline-block;
                                                                                                                                                                                                                                                                                                  -  width: 100%;
                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                  -:host.root {
                                                                                                                                                                                                                                                                                                  -  float: left;
                                                                                                                                                                                                                                                                                                  -  width: 50%;
                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                  -:host.child-node {
                                                                                                                                                                                                                                                                                                  -  float: left;
                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                  -ul {
                                                                                                                                                                                                                                                                                                  -  box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -  list-style: none;
                                                                                                                                                                                                                                                                                                  -  padding: 0;
                                                                                                                                                                                                                                                                                                  -  width: 100%;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  li {
                                                                                                                                                                                                                                                                                                  -    .hover {
                                                                                                                                                                                                                                                                                                  -      background-color: #ddd;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  &.undefined {
                                                                                                                                                                                                                                                                                                  -    li {
                                                                                                                                                                                                                                                                                                  -      &:hover {
                                                                                                                                                                                                                                                                                                  -        background-color: #ddd;
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  &.left-side {
                                                                                                                                                                                                                                                                                                  -    border-right: 1px solid #444;
                                                                                                                                                                                                                                                                                                  -    display: inline-block;
                                                                                                                                                                                                                                                                                                  -    margin: 0;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -    li {
                                                                                                                                                                                                                                                                                                  -      position: relative;
                                                                                                                                                                                                                                                                                                  -      display: table;
                                                                                                                                                                                                                                                                                                  -      width: 100%;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -      &.added {
                                                                                                                                                                                                                                                                                                  -        .name,
                                                                                                                                                                                                                                                                                                  -        .value {
                                                                                                                                                                                                                                                                                                  -          opacity: 0.2;
                                                                                                                                                                                                                                                                                                  -          font-style: italic;
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .upper {
                                                                                                                                                                                                                                                                                                  -          border: 1px solid #4a4;
                                                                                                                                                                                                                                                                                                  -          border-top-width: 0;
                                                                                                                                                                                                                                                                                                  -          border-left-width: 0;
                                                                                                                                                                                                                                                                                                  -          border-radius: 0 0 100% 0;
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 50%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -          width: 50%;
                                                                                                                                                                                                                                                                                                  -          top: 0;
                                                                                                                                                                                                                                                                                                  -          right: 0;
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .lower {
                                                                                                                                                                                                                                                                                                  -          border: 1px solid #4a4;
                                                                                                                                                                                                                                                                                                  -          border-bottom-width: 0;
                                                                                                                                                                                                                                                                                                  -          border-left-width: 0;
                                                                                                                                                                                                                                                                                                  -          border-radius: 0 100% 0 0;
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 50%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -          width: 50%;
                                                                                                                                                                                                                                                                                                  -          bottom: 0;
                                                                                                                                                                                                                                                                                                  -          right: 0;
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.removed {
                                                                                                                                                                                                                                                                                                  -        .upper {
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 100%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          width: 66px;
                                                                                                                                                                                                                                                                                                  -          top: 0;
                                                                                                                                                                                                                                                                                                  -          right: 0;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -          &:after {
                                                                                                                                                                                                                                                                                                  -            content: ' - ';
                                                                                                                                                                                                                                                                                                  -            color: #f00;
                                                                                                                                                                                                                                                                                                  -            float: right;
                                                                                                                                                                                                                                                                                                  -            padding-right: 10px;
                                                                                                                                                                                                                                                                                                  -            font-size: 20px;
                                                                                                                                                                                                                                                                                                  -            line-height: 16px;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .lower {
                                                                                                                                                                                                                                                                                                  -          display: none;
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .tree-node {
                                                                                                                                                                                                                                                                                                  -          span {
                                                                                                                                                                                                                                                                                                  -            color: #f00;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.type-changed {
                                                                                                                                                                                                                                                                                                  -        .tree-node {
                                                                                                                                                                                                                                                                                                  -          span {
                                                                                                                                                                                                                                                                                                  -            color: #f00;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.name-changed {
                                                                                                                                                                                                                                                                                                  -        .upper {
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 100%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          width: 66px;
                                                                                                                                                                                                                                                                                                  -          top: 0;
                                                                                                                                                                                                                                                                                                  -          right: 0;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -          &:after {
                                                                                                                                                                                                                                                                                                  -            content: ' ~ ';
                                                                                                                                                                                                                                                                                                  -            color: #00f;
                                                                                                                                                                                                                                                                                                  -            font-weight: bold;
                                                                                                                                                                                                                                                                                                  -            float: right;
                                                                                                                                                                                                                                                                                                  -            padding-right: 10px;
                                                                                                                                                                                                                                                                                                  -            font-size: 20px;
                                                                                                                                                                                                                                                                                                  -            line-height: 16px;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .tree-node {
                                                                                                                                                                                                                                                                                                  -          .name {
                                                                                                                                                                                                                                                                                                  -            color: #00f;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.value-changed {
                                                                                                                                                                                                                                                                                                  -        .upper {
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 100%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -          width: 66px;
                                                                                                                                                                                                                                                                                                  -          top: 0;
                                                                                                                                                                                                                                                                                                  -          right: 0;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -          &:after {
                                                                                                                                                                                                                                                                                                  -            content: ' ~ ';
                                                                                                                                                                                                                                                                                                  -            color: #00f;
                                                                                                                                                                                                                                                                                                  -            font-weight: bold;
                                                                                                                                                                                                                                                                                                  -            float: right;
                                                                                                                                                                                                                                                                                                  -            padding-right: 10px;
                                                                                                                                                                                                                                                                                                  -            font-size: 20px;
                                                                                                                                                                                                                                                                                                  -            line-height: 16px;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .tree-node {
                                                                                                                                                                                                                                                                                                  -          .value {
                                                                                                                                                                                                                                                                                                  -            color: #00f;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                  -  &.right-side {
                                                                                                                                                                                                                                                                                                  -    border-left: 1px solid #444;
                                                                                                                                                                                                                                                                                                  -    display: inline-block;
                                                                                                                                                                                                                                                                                                  -    margin: 0;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -    li {
                                                                                                                                                                                                                                                                                                  -      position: relative;
                                                                                                                                                                                                                                                                                                  -      display: table;
                                                                                                                                                                                                                                                                                                  -      width: 100%;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -      &.added {
                                                                                                                                                                                                                                                                                                  -        .upper {
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 100%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -          width: 90%;
                                                                                                                                                                                                                                                                                                  -          top: 0;
                                                                                                                                                                                                                                                                                                  -          left: 0;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -          &:after {
                                                                                                                                                                                                                                                                                                  -            content: '+';
                                                                                                                                                                                                                                                                                                  -            color: #4a4;
                                                                                                                                                                                                                                                                                                  -            font-weight: bold;
                                                                                                                                                                                                                                                                                                  -            padding-left: 5px;
                                                                                                                                                                                                                                                                                                  -            font-size: 20px;
                                                                                                                                                                                                                                                                                                  -            line-height: 16px;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .lower {
                                                                                                                                                                                                                                                                                                  -          display: none;
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .tree-node {
                                                                                                                                                                                                                                                                                                  -          span {
                                                                                                                                                                                                                                                                                                  -            color: #4a4;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.removed {
                                                                                                                                                                                                                                                                                                  -        .name,
                                                                                                                                                                                                                                                                                                  -        .value {
                                                                                                                                                                                                                                                                                                  -          text-decoration-line: line-through;
                                                                                                                                                                                                                                                                                                  -          text-decoration-color: #ff0600;
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .upper {
                                                                                                                                                                                                                                                                                                  -          border: 1px solid #f00;
                                                                                                                                                                                                                                                                                                  -          border-top-width: 0;
                                                                                                                                                                                                                                                                                                  -          border-right-width: 0;
                                                                                                                                                                                                                                                                                                  -          border-radius: 0 0 0 100%;
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 50%;
                                                                                                                                                                                                                                                                                                  -          width: 10%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -          top: 0;
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .lower {
                                                                                                                                                                                                                                                                                                  -          border: 1px solid #f00;
                                                                                                                                                                                                                                                                                                  -          border-bottom-width: 0;
                                                                                                                                                                                                                                                                                                  -          border-right-width: 0;
                                                                                                                                                                                                                                                                                                  -          border-radius: 100% 0 0 0;
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 50%;
                                                                                                                                                                                                                                                                                                  -          width: 10%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -          bottom: 0;
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.type-changed {
                                                                                                                                                                                                                                                                                                  -        .tree-node {
                                                                                                                                                                                                                                                                                                  -          span {
                                                                                                                                                                                                                                                                                                  -            color: #f00;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.name-changed {
                                                                                                                                                                                                                                                                                                  -        .upper {
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 100%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -          top: 0;
                                                                                                                                                                                                                                                                                                  -          left: 0;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -          &:before {
                                                                                                                                                                                                                                                                                                  -            content: ' ~ ';
                                                                                                                                                                                                                                                                                                  -            color: #00f;
                                                                                                                                                                                                                                                                                                  -            font-weight: bold;
                                                                                                                                                                                                                                                                                                  -            float: right;
                                                                                                                                                                                                                                                                                                  -            padding-left: 5px;
                                                                                                                                                                                                                                                                                                  -            font-size: 20px;
                                                                                                                                                                                                                                                                                                  -            line-height: 16px;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .tree-node {
                                                                                                                                                                                                                                                                                                  -          .name {
                                                                                                                                                                                                                                                                                                  -            color: #00f;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.value-changed {
                                                                                                                                                                                                                                                                                                  -        .upper {
                                                                                                                                                                                                                                                                                                  -          box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -          height: 100%;
                                                                                                                                                                                                                                                                                                  -          position: absolute;
                                                                                                                                                                                                                                                                                                  -          pointer-events: none;
                                                                                                                                                                                                                                                                                                  -          top: 0;
                                                                                                                                                                                                                                                                                                  -          left: 0;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -          &:before {
                                                                                                                                                                                                                                                                                                  -            content: ' ~ ';
                                                                                                                                                                                                                                                                                                  -            color: #00f;
                                                                                                                                                                                                                                                                                                  -            font-weight: bold;
                                                                                                                                                                                                                                                                                                  -            float: right;
                                                                                                                                                                                                                                                                                                  -            padding-left: 5px;
                                                                                                                                                                                                                                                                                                  -            font-size: 20px;
                                                                                                                                                                                                                                                                                                  -            line-height: 16px;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -        .tree-node {
                                                                                                                                                                                                                                                                                                  -          .value {
                                                                                                                                                                                                                                                                                                  -            color: #00f;
                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -  .tree-node {
                                                                                                                                                                                                                                                                                                  -    box-sizing: border-box;
                                                                                                                                                                                                                                                                                                  -    color: #7c9eb2;
                                                                                                                                                                                                                                                                                                  -    display: table;
                                                                                                                                                                                                                                                                                                  -    padding: 0;
                                                                                                                                                                                                                                                                                                  -    position: relative;
                                                                                                                                                                                                                                                                                                  -    margin: 0;
                                                                                                                                                                                                                                                                                                  -    width: 100%;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -    &.depth-0 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 5px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-1 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 20px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-2 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 40px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-3 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 60px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-4 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 80px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-5 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 100px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-6 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 120px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-7 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 140px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-8 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 160px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-9 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 180px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    &.depth-10 {
                                                                                                                                                                                                                                                                                                  -      padding-left: 200px;
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -    .name {
                                                                                                                                                                                                                                                                                                  -      color: #444;
                                                                                                                                                                                                                                                                                                  -      font-weight: bold;
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -      &:after {
                                                                                                                                                                                                                                                                                                  -        content: ':';
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -    .value {
                                                                                                                                                                                                                                                                                                  -      &.string:before {
                                                                                                                                                                                                                                                                                                  -        content: '"';
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -      &.string:after {
                                                                                                                                                                                                                                                                                                  -        content: '"';
                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/KnobDemoComponent.html b/docs/components/KnobDemoComponent.html deleted file mode 100644 index 7a4487780..000000000 --- a/docs/components/KnobDemoComponent.html +++ /dev/null @@ -1,1881 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    - libs/experiments/src/lib/containers/knob-demo/knob-demo.component.ts -

                                                                                                                                                                                                                                                                                                    - - - -

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    Implements

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    - OnInit -

                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    selectorngx-knob-demo
                                                                                                                                                                                                                                                                                                    styleUrls./knob-demo.component.scss
                                                                                                                                                                                                                                                                                                    templateUrl./knob-demo.component.html
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    -constructor() -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - changeOptions7 - - - -
                                                                                                                                                                                                                                                                                                    -changeOptions7() -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                    -ngOnInit() -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - crumbs - - - -
                                                                                                                                                                                                                                                                                                    - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                    - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                    - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Knob Demo' }, - ] -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options1 - - - -
                                                                                                                                                                                                                                                                                                    - options1: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - startAngle: 30, - endAngle: 330, - unit: 'MB', - trackColor: 'rgba(162,121,143,1)', - barColor: 'rgba(102,0,204,.5)', - trackWidth: 15, - barWidth: 15, - subText: { - enabled: true, - text: 'RAM used', - }, - max: 1024, - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options11 - - - -
                                                                                                                                                                                                                                                                                                    - options11: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - startAngle: 90, - endAngle: 180, - displayPrevious: true, - prevBarColor: 'rgba(255,0,0,.2)', - trackColor: 'rgba(255,0,0,.2)', - skin: { - type: 'tron', - }, - scale: { - enabled: true, - type: 'lines', - width: 2, - quantity: 5, - }, - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options12 - - - -
                                                                                                                                                                                                                                                                                                    - options12: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - skin: { - type: 'tron', - }, - size: 300, - unit: '%', - barWidth: 40, - trackColor: 'rgba(255,0,0,.1)', - prevBarColor: 'rgba(0,0,0,.2)', - subText: { - enabled: true, - text: 'CPU used', - }, - scale: { - enabled: true, - type: 'lines', - width: 3, - }, - step: 5, - displayPrevious: true, - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options2 - - - -
                                                                                                                                                                                                                                                                                                    - options2: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - skin: { - type: 'tron', - width: 5, - color: '#494B52', - spaceWidth: 3, - }, - barColor: '#494B52', - trackWidth: 30, - barWidth: 30, - textColor: '#494B52', - step: 0.1, - max: 10, - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options3 - - - -
                                                                                                                                                                                                                                                                                                    - options3: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - unit: '%', - readOnly: true, - subText: { - enabled: true, - text: 'CPU used', - color: 'gray', - font: 'auto', - }, - trackWidth: 40, - barWidth: 25, - trackColor: '#656D7F', - barColor: '#2CC185', - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options4 - - - -
                                                                                                                                                                                                                                                                                                    - options4: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - displayPrevious: true, - barCap: 25, - trackWidth: 30, - barWidth: 20, - trackColor: 'rgba(255,0,0,.1)', - prevBarColor: 'rgba(0,0,0,.2)', - textColor: 'rgba(255,0,0,.6)', - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options5 - - - -
                                                                                                                                                                                                                                                                                                    - options5: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - scale: { - enabled: true, - type: 'lines', - color: 'gray', - width: 1, - quantity: 20, - height: 8, - }, - trackWidth: 30, - barWidth: 30, - step: 5, - trackColor: 'rgba(52,152,219,.1)', - barColor: 'rgba(52,152,219,.5)', - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options6 - - - -
                                                                                                                                                                                                                                                                                                    - options6: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - min: -1000, - max: 1000, - barColor: '#5BC01E', - trackColor: '#212121', - trackWidth: 15, - barWidth: 30, - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options7 - - - -
                                                                                                                                                                                                                                                                                                    - options7: any - -
                                                                                                                                                                                                                                                                                                    - Type : any - -
                                                                                                                                                                                                                                                                                                    - Default value : { - scale: { - enabled: true, - type: 'dots', - color: 'rgba(255,0,0,.2)', - width: 2, - quantity: 50, - spaceWidth: 10, - }, - trackWidth: 25, - barWidth: 40, - trackColor: 'rgba(0,0,0,.1)', - dynamicOptions: true, - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options8 - - - -
                                                                                                                                                                                                                                                                                                    - options8: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - displayInput: false, - animate: { - enabled: true, - duration: 2000, - ease: 'linear', - }, - trackColor: 'rgba(33,33,33,.2)', - barColor: 'rgba(255,221,51,1)', - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - options9 - - - -
                                                                                                                                                                                                                                                                                                    - options9: object - -
                                                                                                                                                                                                                                                                                                    - Type : object - -
                                                                                                                                                                                                                                                                                                    - Default value : { - bgColor: '#2C3E50', - trackWidth: 50, - barWidth: 30, - barColor: '#FFAE1A', - textColor: '#eee', - } -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value1 - - - -
                                                                                                                                                                                                                                                                                                    - value1: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 256 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value10 - - - -
                                                                                                                                                                                                                                                                                                    - value10: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 65 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value11 - - - -
                                                                                                                                                                                                                                                                                                    - value11: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 65 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value12 - - - -
                                                                                                                                                                                                                                                                                                    - value12: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 65 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value2 - - - -
                                                                                                                                                                                                                                                                                                    - value2: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 5.4 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value3 - - - -
                                                                                                                                                                                                                                                                                                    - value3: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 65 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value4 - - - -
                                                                                                                                                                                                                                                                                                    - value4: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 70 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value5 - - - -
                                                                                                                                                                                                                                                                                                    - value5: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 85 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value6 - - - -
                                                                                                                                                                                                                                                                                                    - value6: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 350 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value7 - - - -
                                                                                                                                                                                                                                                                                                    - value7: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 65 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value8 - - - -
                                                                                                                                                                                                                                                                                                    - value8: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 65 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    - - - - value9 - - - -
                                                                                                                                                                                                                                                                                                    - value9: number - -
                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                    - Default value : 65 -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                    -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-knob-demo',
                                                                                                                                                                                                                                                                                                    -  templateUrl: './knob-demo.component.html',
                                                                                                                                                                                                                                                                                                    -  styleUrls: ['./knob-demo.component.scss'],
                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                    -export class KnobDemoComponent implements OnInit {
                                                                                                                                                                                                                                                                                                    -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                                    -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                                    -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                                    -    { name: 'Knob Demo' },
                                                                                                                                                                                                                                                                                                    -  ];
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value1 = 256;
                                                                                                                                                                                                                                                                                                    -  options1 = {
                                                                                                                                                                                                                                                                                                    -    startAngle: 30,
                                                                                                                                                                                                                                                                                                    -    endAngle: 330,
                                                                                                                                                                                                                                                                                                    -    unit: 'MB',
                                                                                                                                                                                                                                                                                                    -    trackColor: 'rgba(162,121,143,1)',
                                                                                                                                                                                                                                                                                                    -    barColor: 'rgba(102,0,204,.5)',
                                                                                                                                                                                                                                                                                                    -    trackWidth: 15,
                                                                                                                                                                                                                                                                                                    -    barWidth: 15,
                                                                                                                                                                                                                                                                                                    -    subText: {
                                                                                                                                                                                                                                                                                                    -      enabled: true,
                                                                                                                                                                                                                                                                                                    -      text: 'RAM used',
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    max: 1024,
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value2 = 5.4;
                                                                                                                                                                                                                                                                                                    -  options2 = {
                                                                                                                                                                                                                                                                                                    -    skin: {
                                                                                                                                                                                                                                                                                                    -      type: 'tron',
                                                                                                                                                                                                                                                                                                    -      width: 5,
                                                                                                                                                                                                                                                                                                    -      color: '#494B52',
                                                                                                                                                                                                                                                                                                    -      spaceWidth: 3,
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    barColor: '#494B52',
                                                                                                                                                                                                                                                                                                    -    trackWidth: 30,
                                                                                                                                                                                                                                                                                                    -    barWidth: 30,
                                                                                                                                                                                                                                                                                                    -    textColor: '#494B52',
                                                                                                                                                                                                                                                                                                    -    step: 0.1,
                                                                                                                                                                                                                                                                                                    -    max: 10,
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value3 = 65;
                                                                                                                                                                                                                                                                                                    -  options3 = {
                                                                                                                                                                                                                                                                                                    -    unit: '%',
                                                                                                                                                                                                                                                                                                    -    readOnly: true,
                                                                                                                                                                                                                                                                                                    -    subText: {
                                                                                                                                                                                                                                                                                                    -      enabled: true,
                                                                                                                                                                                                                                                                                                    -      text: 'CPU used',
                                                                                                                                                                                                                                                                                                    -      color: 'gray',
                                                                                                                                                                                                                                                                                                    -      font: 'auto',
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    trackWidth: 40,
                                                                                                                                                                                                                                                                                                    -    barWidth: 25,
                                                                                                                                                                                                                                                                                                    -    trackColor: '#656D7F',
                                                                                                                                                                                                                                                                                                    -    barColor: '#2CC185',
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value4 = 70;
                                                                                                                                                                                                                                                                                                    -  options4 = {
                                                                                                                                                                                                                                                                                                    -    displayPrevious: true,
                                                                                                                                                                                                                                                                                                    -    barCap: 25,
                                                                                                                                                                                                                                                                                                    -    trackWidth: 30,
                                                                                                                                                                                                                                                                                                    -    barWidth: 20,
                                                                                                                                                                                                                                                                                                    -    trackColor: 'rgba(255,0,0,.1)',
                                                                                                                                                                                                                                                                                                    -    prevBarColor: 'rgba(0,0,0,.2)',
                                                                                                                                                                                                                                                                                                    -    textColor: 'rgba(255,0,0,.6)',
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value5 = 85;
                                                                                                                                                                                                                                                                                                    -  options5 = {
                                                                                                                                                                                                                                                                                                    -    scale: {
                                                                                                                                                                                                                                                                                                    -      enabled: true,
                                                                                                                                                                                                                                                                                                    -      type: 'lines',
                                                                                                                                                                                                                                                                                                    -      color: 'gray',
                                                                                                                                                                                                                                                                                                    -      width: 1,
                                                                                                                                                                                                                                                                                                    -      quantity: 20,
                                                                                                                                                                                                                                                                                                    -      height: 8,
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    trackWidth: 30,
                                                                                                                                                                                                                                                                                                    -    barWidth: 30,
                                                                                                                                                                                                                                                                                                    -    step: 5,
                                                                                                                                                                                                                                                                                                    -    trackColor: 'rgba(52,152,219,.1)',
                                                                                                                                                                                                                                                                                                    -    barColor: 'rgba(52,152,219,.5)',
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value6 = 350;
                                                                                                                                                                                                                                                                                                    -  options6 = {
                                                                                                                                                                                                                                                                                                    -    min: -1000,
                                                                                                                                                                                                                                                                                                    -    max: 1000,
                                                                                                                                                                                                                                                                                                    -    barColor: '#5BC01E',
                                                                                                                                                                                                                                                                                                    -    trackColor: '#212121',
                                                                                                                                                                                                                                                                                                    -    trackWidth: 15,
                                                                                                                                                                                                                                                                                                    -    barWidth: 30,
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value7 = 65;
                                                                                                                                                                                                                                                                                                    -  options7: any = {
                                                                                                                                                                                                                                                                                                    -    scale: {
                                                                                                                                                                                                                                                                                                    -      enabled: true,
                                                                                                                                                                                                                                                                                                    -      type: 'dots',
                                                                                                                                                                                                                                                                                                    -      color: 'rgba(255,0,0,.2)',
                                                                                                                                                                                                                                                                                                    -      width: 2,
                                                                                                                                                                                                                                                                                                    -      quantity: 50,
                                                                                                                                                                                                                                                                                                    -      spaceWidth: 10,
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    trackWidth: 25,
                                                                                                                                                                                                                                                                                                    -    barWidth: 40,
                                                                                                                                                                                                                                                                                                    -    trackColor: 'rgba(0,0,0,.1)',
                                                                                                                                                                                                                                                                                                    -    dynamicOptions: true,
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value8 = 65;
                                                                                                                                                                                                                                                                                                    -  options8 = {
                                                                                                                                                                                                                                                                                                    -    displayInput: false,
                                                                                                                                                                                                                                                                                                    -    animate: {
                                                                                                                                                                                                                                                                                                    -      enabled: true,
                                                                                                                                                                                                                                                                                                    -      duration: 2000,
                                                                                                                                                                                                                                                                                                    -      ease: 'linear',
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    trackColor: 'rgba(33,33,33,.2)',
                                                                                                                                                                                                                                                                                                    -    barColor: 'rgba(255,221,51,1)',
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value9 = 65;
                                                                                                                                                                                                                                                                                                    -  options9 = {
                                                                                                                                                                                                                                                                                                    -    bgColor: '#2C3E50',
                                                                                                                                                                                                                                                                                                    -    trackWidth: 50,
                                                                                                                                                                                                                                                                                                    -    barWidth: 30,
                                                                                                                                                                                                                                                                                                    -    barColor: '#FFAE1A',
                                                                                                                                                                                                                                                                                                    -    textColor: '#eee',
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value10 = 65;
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value11 = 65;
                                                                                                                                                                                                                                                                                                    -  options11 = {
                                                                                                                                                                                                                                                                                                    -    startAngle: 90,
                                                                                                                                                                                                                                                                                                    -    endAngle: 180,
                                                                                                                                                                                                                                                                                                    -    displayPrevious: true,
                                                                                                                                                                                                                                                                                                    -    prevBarColor: 'rgba(255,0,0,.2)',
                                                                                                                                                                                                                                                                                                    -    trackColor: 'rgba(255,0,0,.2)',
                                                                                                                                                                                                                                                                                                    -    skin: {
                                                                                                                                                                                                                                                                                                    -      type: 'tron',
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    scale: {
                                                                                                                                                                                                                                                                                                    -      enabled: true,
                                                                                                                                                                                                                                                                                                    -      type: 'lines',
                                                                                                                                                                                                                                                                                                    -      width: 2,
                                                                                                                                                                                                                                                                                                    -      quantity: 5,
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  value12 = 65;
                                                                                                                                                                                                                                                                                                    -  options12 = {
                                                                                                                                                                                                                                                                                                    -    skin: {
                                                                                                                                                                                                                                                                                                    -      type: 'tron',
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    size: 300,
                                                                                                                                                                                                                                                                                                    -    unit: '%',
                                                                                                                                                                                                                                                                                                    -    barWidth: 40,
                                                                                                                                                                                                                                                                                                    -    trackColor: 'rgba(255,0,0,.1)',
                                                                                                                                                                                                                                                                                                    -    prevBarColor: 'rgba(0,0,0,.2)',
                                                                                                                                                                                                                                                                                                    -    subText: {
                                                                                                                                                                                                                                                                                                    -      enabled: true,
                                                                                                                                                                                                                                                                                                    -      text: 'CPU used',
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    scale: {
                                                                                                                                                                                                                                                                                                    -      enabled: true,
                                                                                                                                                                                                                                                                                                    -      type: 'lines',
                                                                                                                                                                                                                                                                                                    -      width: 3,
                                                                                                                                                                                                                                                                                                    -    },
                                                                                                                                                                                                                                                                                                    -    step: 5,
                                                                                                                                                                                                                                                                                                    -    displayPrevious: true,
                                                                                                                                                                                                                                                                                                    -  };
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  constructor() {}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  changeOptions7() {
                                                                                                                                                                                                                                                                                                    -    this.value7 = 75;
                                                                                                                                                                                                                                                                                                    -    this.options7 = {
                                                                                                                                                                                                                                                                                                    -      trackColor: '#988CE0',
                                                                                                                                                                                                                                                                                                    -      barColor: 'rgba(18,7,101,.5)',
                                                                                                                                                                                                                                                                                                    -    };
                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -// https://github.com/RadMie/ng-knob/blob/master/demo/demo.js
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    <ngx-breadcrumbs title="Experiments" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -<div fxLayout="row wrap" fxLayout.md="column wrap" fxLayoutGap="0.5%" fxLayoutAlign="center">
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Skin Tron + scale <span class="badge pull-right">{{value1}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value1" [options]="options1"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">With subtext, unit and read only <span class="badge pull-right">{{value2}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value2" [options]="options2"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Bar cap and display previous value <span class="badge pull-right">{{value3}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value3" [options]="options3"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Default Knob <span class="badge pull-right">{{value4}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value4" [options]="options4"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Skin Tron <span class="badge pull-right">{{value5}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value5" [options]="options5"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Lines scale and step <span class="badge pull-right">{{value6}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value6" [options]="options6"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Min, max value <span class="badge pull-right">{{value7}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value7" [options]="options7"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -      <button (click)="changeOptions7()">Change options</button>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Angles <span class="badge pull-right">{{value8}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value8" [options]="options8"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Dots scale + Dynamic options <span class="badge pull-right">{{value9}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value9" [options]="options9"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Animate and disabled input <span class="badge pull-right">{{value10}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value10"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Background color <span class="badge pull-right">{{value11}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value11" [options]="options11"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -  <div fxFlex="24%" class="card">
                                                                                                                                                                                                                                                                                                    -    <div class="card-header">Angles + Tron + Scale <span class="badge pull-right">{{value12}}</span></div>
                                                                                                                                                                                                                                                                                                    -    <div class="card-body">
                                                                                                                                                                                                                                                                                                    -      <ngx-knob [(value)]="value12" [options]="options12"></ngx-knob>
                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                    -  </div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -</div>
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    - ./knob-demo.component.scss -

                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    :host {
                                                                                                                                                                                                                                                                                                    -  display: block;
                                                                                                                                                                                                                                                                                                    -  padding: 1.5%;
                                                                                                                                                                                                                                                                                                    -  position: relative;
                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -.card-body {
                                                                                                                                                                                                                                                                                                    -  padding: 15px;
                                                                                                                                                                                                                                                                                                    -  text-align: center;
                                                                                                                                                                                                                                                                                                    -  -ms-flex: 1 1 auto;
                                                                                                                                                                                                                                                                                                    -  flex: 1 1 auto;
                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -.badge {
                                                                                                                                                                                                                                                                                                    -  color: #2c3e50;
                                                                                                                                                                                                                                                                                                    -  background-color: #ffffff;
                                                                                                                                                                                                                                                                                                    -  display: inline-block;
                                                                                                                                                                                                                                                                                                    -  min-width: 10px;
                                                                                                                                                                                                                                                                                                    -  padding: 3px 7px;
                                                                                                                                                                                                                                                                                                    -  font-size: 13px;
                                                                                                                                                                                                                                                                                                    -  font-weight: bold;
                                                                                                                                                                                                                                                                                                    -  line-height: 1;
                                                                                                                                                                                                                                                                                                    -  vertical-align: middle;
                                                                                                                                                                                                                                                                                                    -  white-space: nowrap;
                                                                                                                                                                                                                                                                                                    -  text-align: center;
                                                                                                                                                                                                                                                                                                    -  border-radius: 10px;
                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -.pull-right {
                                                                                                                                                                                                                                                                                                    -  float: right !important;
                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -.card-header:first-child {
                                                                                                                                                                                                                                                                                                    -  border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -.card-header {
                                                                                                                                                                                                                                                                                                    -  color: #ffffff;
                                                                                                                                                                                                                                                                                                    -  background-color: #2c3e50;
                                                                                                                                                                                                                                                                                                    -  border-color: #2c3e50;
                                                                                                                                                                                                                                                                                                    -  padding: 0.75rem 1.25rem;
                                                                                                                                                                                                                                                                                                    -  margin-bottom: 0;
                                                                                                                                                                                                                                                                                                    -  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -.card {
                                                                                                                                                                                                                                                                                                    -  position: relative;
                                                                                                                                                                                                                                                                                                    -  display: -ms-flexbox;
                                                                                                                                                                                                                                                                                                    -  display: flex;
                                                                                                                                                                                                                                                                                                    -  -ms-flex-direction: column;
                                                                                                                                                                                                                                                                                                    -  flex-direction: column;
                                                                                                                                                                                                                                                                                                    -  min-width: 0;
                                                                                                                                                                                                                                                                                                    -  word-wrap: break-word;
                                                                                                                                                                                                                                                                                                    -  background-color: #fff;
                                                                                                                                                                                                                                                                                                    -  background-clip: border-box;
                                                                                                                                                                                                                                                                                                    -  border: 1px solid #2c3e50;
                                                                                                                                                                                                                                                                                                    -  border-radius: 0.25rem;
                                                                                                                                                                                                                                                                                                    -  margin-bottom: 0.5rem;
                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/LandingComponent.html b/docs/components/LandingComponent.html deleted file mode 100644 index 73dcc739e..000000000 --- a/docs/components/LandingComponent.html +++ /dev/null @@ -1,439 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      - libs/home/src/lib/containers/landing/landing.component.ts -

                                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                      selectorngx-landing
                                                                                                                                                                                                                                                                                                      styleUrls./landing.component.scss
                                                                                                                                                                                                                                                                                                      templateUrl./landing.component.html
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                      -constructor() -
                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - - - - - - - -
                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-landing',
                                                                                                                                                                                                                                                                                                      -  templateUrl: './landing.component.html',
                                                                                                                                                                                                                                                                                                      -  styleUrls: ['./landing.component.scss'],
                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                      -export class LandingComponent {
                                                                                                                                                                                                                                                                                                      -  constructor() {}
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      <header class="default-header-background">
                                                                                                                                                                                                                                                                                                      -  <div class="default-header-section">
                                                                                                                                                                                                                                                                                                      -    <div class="default-header-headline">
                                                                                                                                                                                                                                                                                                      -      <h1 class="mat-h1 cursive">Sumo App</h1>
                                                                                                                                                                                                                                                                                                      -      <h2>360 view of Sumo App</h2>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -    <div class="default-header-start">
                                                                                                                                                                                                                                                                                                      -      <a mat-raised-button class="default-button" routerLink="/dashboard">Get started</a>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                                                                                      -</header>
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -<div class="default-homepage-promo">
                                                                                                                                                                                                                                                                                                      -  <div class="default-homepage-row">
                                                                                                                                                                                                                                                                                                      -    <div class="default-homepage-promo-img">
                                                                                                                                                                                                                                                                                                      -      <svg-viewer
                                                                                                                                                                                                                                                                                                      -        src="../assets/img/homepage/sprintzerotoapp.svg"
                                                                                                                                                                                                                                                                                                      -        scaleToContainer="true"></svg-viewer>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -    <div class="default-homepage-promo-desc">
                                                                                                                                                                                                                                                                                                      -      <h2>Sprint from Zero to App</h2>
                                                                                                                                                                                                                                                                                                      -      <p>Hit the ground running with comprehensive, modern UI components that work across
                                                                                                                                                                                                                                                                                                      -        the web, mobile and desktop.</p>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                                                                                      -  <div class="default-homepage-row default-homepage-reverse-row">
                                                                                                                                                                                                                                                                                                      -    <div class="default-homepage-promo-img">
                                                                                                                                                                                                                                                                                                      -      <svg-viewer
                                                                                                                                                                                                                                                                                                      -        src="../assets/img/homepage/fastandconsistent.svg"
                                                                                                                                                                                                                                                                                                      -        scaleToContainer="true"></svg-viewer>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -    <div class="default-homepage-promo-desc">
                                                                                                                                                                                                                                                                                                      -      <h2>Fast and Consistent</h2>
                                                                                                                                                                                                                                                                                                      -      <p>Finely tuned performance, because every millisecond counts. Fully tested across
                                                                                                                                                                                                                                                                                                      -        modern browsers.</p>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                                                                                      -  <div class="default-homepage-row">
                                                                                                                                                                                                                                                                                                      -    <div class="default-homepage-promo-img">
                                                                                                                                                                                                                                                                                                      -      <svg-viewer
                                                                                                                                                                                                                                                                                                      -        src="../assets/img/homepage/versatile.svg"
                                                                                                                                                                                                                                                                                                      -        scaleToContainer="true"></svg-viewer>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -    <div class="default-homepage-promo-desc">
                                                                                                                                                                                                                                                                                                      -      <h2>Versatile</h2>
                                                                                                                                                                                                                                                                                                      -      <p>Themable, for when you need to stay on brand or just have a favorite color.
                                                                                                                                                                                                                                                                                                      -        Accessible and internationalized so that all users are welcome.</p>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                                                                                      -  <div class="default-homepage-row default-homepage-reverse-row">
                                                                                                                                                                                                                                                                                                      -    <div class="default-homepage-promo-img">
                                                                                                                                                                                                                                                                                                      -      <svg-viewer
                                                                                                                                                                                                                                                                                                      -        src="../assets/img/homepage/optimized.svg"
                                                                                                                                                                                                                                                                                                      -        scaleToContainer="true"></svg-viewer>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -    <div class="default-homepage-promo-desc">
                                                                                                                                                                                                                                                                                                      -      <h2>Optimized for Angular</h2>
                                                                                                                                                                                                                                                                                                      -      <p>Built by the Angular team to integrate seamlessly with Angular.</p>
                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                                                                                      -  <div class="default-homepage-bottom-start">
                                                                                                                                                                                                                                                                                                      -    <a mat-raised-button class="default-button" routerLink="/dashboard">Get started</a>
                                                                                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                                                                                      -</div>
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      - ./landing.component.scss -

                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      // The margin between two sections
                                                                                                                                                                                                                                                                                                      -$margin-promotion-sections: 60px;
                                                                                                                                                                                                                                                                                                      -$margin-promotion-sections-small: 15px;
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.cursive {
                                                                                                                                                                                                                                                                                                      -  font-family: 'Dancing Script', cursive;
                                                                                                                                                                                                                                                                                                      -  text-transform: none;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-header-background {
                                                                                                                                                                                                                                                                                                      -  overflow: hidden;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-header-section {
                                                                                                                                                                                                                                                                                                      -  text-align: center;
                                                                                                                                                                                                                                                                                                      -  padding-top: $margin-promotion-sections;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-header-headline {
                                                                                                                                                                                                                                                                                                      -  h1 {
                                                                                                                                                                                                                                                                                                      -    font-size: 56px;
                                                                                                                                                                                                                                                                                                      -    font-weight: 300;
                                                                                                                                                                                                                                                                                                      -    line-height: 56px;
                                                                                                                                                                                                                                                                                                      -    margin: 15px 5px;
                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -  h2 {
                                                                                                                                                                                                                                                                                                      -    font-size: 18px;
                                                                                                                                                                                                                                                                                                      -    font-weight: 300;
                                                                                                                                                                                                                                                                                                      -    line-height: 28px;
                                                                                                                                                                                                                                                                                                      -    margin: 15px 0 25px 0;
                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-homepage-promo {
                                                                                                                                                                                                                                                                                                      -  align-items: center;
                                                                                                                                                                                                                                                                                                      -  display: flex;
                                                                                                                                                                                                                                                                                                      -  flex-direction: column;
                                                                                                                                                                                                                                                                                                      -  padding: 16px;
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -  h2 {
                                                                                                                                                                                                                                                                                                      -    font-size: 25px;
                                                                                                                                                                                                                                                                                                      -    font-weight: 400;
                                                                                                                                                                                                                                                                                                      -    margin: 0 0 16px 0;
                                                                                                                                                                                                                                                                                                      -    padding: 0;
                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -  p {
                                                                                                                                                                                                                                                                                                      -    font-size: 16px;
                                                                                                                                                                                                                                                                                                      -    font-weight: 400;
                                                                                                                                                                                                                                                                                                      -    line-height: 28px;
                                                                                                                                                                                                                                                                                                      -    margin: 0 0 24px 0;
                                                                                                                                                                                                                                                                                                      -    padding: 0;
                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-homepage-row {
                                                                                                                                                                                                                                                                                                      -  display: flex;
                                                                                                                                                                                                                                                                                                      -  max-width: 920px;
                                                                                                                                                                                                                                                                                                      -  margin: $margin-promotion-sections 0;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-homepage-row .default-svg-image {
                                                                                                                                                                                                                                                                                                      -  max-width: 90%;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-homepage-reverse-row {
                                                                                                                                                                                                                                                                                                      -  flex-direction: row-reverse;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-header-start,
                                                                                                                                                                                                                                                                                                      -.default-homepage-bottom-start {
                                                                                                                                                                                                                                                                                                      -  text-align: center;
                                                                                                                                                                                                                                                                                                      -  margin: $margin-promotion-sections 0;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-homepage-promo-img,
                                                                                                                                                                                                                                                                                                      -.default-homepage-promo-desc {
                                                                                                                                                                                                                                                                                                      -  width: 50%;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-homepage-promo-img {
                                                                                                                                                                                                                                                                                                      -  text-align: center;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -.default-homepage-promo-desc {
                                                                                                                                                                                                                                                                                                      -  line-height: 2;
                                                                                                                                                                                                                                                                                                      -  display: flex;
                                                                                                                                                                                                                                                                                                      -  flex-direction: column;
                                                                                                                                                                                                                                                                                                      -  justify-content: center;
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -/**
                                                                                                                                                                                                                                                                                                      -  * Rules for when the device is detected to be a small screen.
                                                                                                                                                                                                                                                                                                      -  */
                                                                                                                                                                                                                                                                                                      -@media (max-width: 959px) {
                                                                                                                                                                                                                                                                                                      -  .default-header-section {
                                                                                                                                                                                                                                                                                                      -    padding-top: $margin-promotion-sections-small;
                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -  .default-header-start,
                                                                                                                                                                                                                                                                                                      -  .default-homepage-bottom-start {
                                                                                                                                                                                                                                                                                                      -    margin: $margin-promotion-sections-small 0;
                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -  .default-homepage-row {
                                                                                                                                                                                                                                                                                                      -    margin: $margin-promotion-sections-small 0;
                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/LayoutComponent.html b/docs/components/LayoutComponent.html deleted file mode 100644 index 036ad7849..000000000 --- a/docs/components/LayoutComponent.html +++ /dev/null @@ -1,443 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        - libs/experiments/src/lib/containers/layout/layout.component.ts -

                                                                                                                                                                                                                                                                                                        - - - -

                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        Implements

                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        - OnInit -

                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                        selectorngx-layout
                                                                                                                                                                                                                                                                                                        styleUrls./layout.component.scss
                                                                                                                                                                                                                                                                                                        templateUrl./layout.component.html
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                        -constructor() -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                        - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                        -ngOnInit() -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                        - - - - crumbs - - - -
                                                                                                                                                                                                                                                                                                        - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                        - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                        - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Layout Demo' }, - ] -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                        -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                                                                        -  selector: 'ngx-layout',
                                                                                                                                                                                                                                                                                                        -  templateUrl: './layout.component.html',
                                                                                                                                                                                                                                                                                                        -  styleUrls: ['./layout.component.scss'],
                                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                                        -export class LayoutComponent implements OnInit {
                                                                                                                                                                                                                                                                                                        -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                                        -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                                        -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                                        -    { name: 'Layout Demo' },
                                                                                                                                                                                                                                                                                                        -  ];
                                                                                                                                                                                                                                                                                                        -  constructor() {}
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        <ngx-breadcrumbs title="Experiments" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -<div
                                                                                                                                                                                                                                                                                                        -  fxLayout="row wrap"
                                                                                                                                                                                                                                                                                                        -  fxLayout.lt-sm="column"
                                                                                                                                                                                                                                                                                                        -  fxLayoutGap="32px grid">
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -  <!-- dummy loop -->
                                                                                                                                                                                                                                                                                                        -  <ng-container *ngFor="let _ of [1,2,3,4,5,6]">
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -    <div fxFlex="0 1 calc(33.3% - 32px)"
                                                                                                                                                                                                                                                                                                        -         fxFlex.lt-md="0 1 calc(50% - 32px)"
                                                                                                                                                                                                                                                                                                        -         fxFlex.lt-sm="100%">
                                                                                                                                                                                                                                                                                                        -      <ngx-card></ngx-card>
                                                                                                                                                                                                                                                                                                        -      <!--TODO remove div and move fxXXX to ngx-card-->
                                                                                                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -  </ng-container>
                                                                                                                                                                                                                                                                                                        -</div>
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -<br/><br/><br/>
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        - ./layout.component.scss -

                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        :host {
                                                                                                                                                                                                                                                                                                        -  display: block;
                                                                                                                                                                                                                                                                                                        -  padding: 1.5%;
                                                                                                                                                                                                                                                                                                        -  position: relative;
                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/LedComponent.html b/docs/components/LedComponent.html deleted file mode 100644 index fe52fcd99..000000000 --- a/docs/components/LedComponent.html +++ /dev/null @@ -1,768 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          - libs/led/src/lib/led.component.ts -

                                                                                                                                                                                                                                                                                                          - - - -

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Implements

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          - OnInit -

                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          selectorngx-led
                                                                                                                                                                                                                                                                                                          styleUrls./led.component.scss
                                                                                                                                                                                                                                                                                                          templateUrl./led.component.html
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                          • - Public - Readonly - _size -
                                                                                                                                                                                                                                                                                                          • -
                                                                                                                                                                                                                                                                                                          • - Public - size -
                                                                                                                                                                                                                                                                                                          • -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          Inputs
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          -constructor(_size: string) -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                          _size - string - - No -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Inputs

                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          - - blink - -

                                                                                                                                                                                                                                                                                                          - Default value : false -

                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          - - color - -

                                                                                                                                                                                                                                                                                                          - Type : "red" | "blue" | "yellow" | "green" | "orange" - -

                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          - - speed - -

                                                                                                                                                                                                                                                                                                          - Default value : 1000 -

                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                          -ngOnInit() -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          - - - - onClick - - - -
                                                                                                                                                                                                                                                                                                          -onClick() -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                          - Properties -

                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          - - - - Public - Readonly - _size - - - -
                                                                                                                                                                                                                                                                                                          - _size: string - -
                                                                                                                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                                                                                                                          - - @Attribute('size')
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          - - - - Public - size - - - -
                                                                                                                                                                                                                                                                                                          - size: string - -
                                                                                                                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                                                                                                                          - Default value : '24px' -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          import { Attribute, Component, HostBinding, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-led',
                                                                                                                                                                                                                                                                                                          -  templateUrl: './led.component.html',
                                                                                                                                                                                                                                                                                                          -  styleUrls: ['./led.component.scss'],
                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                          -export class LedComponent implements OnInit {
                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                          -  color: 'red' | 'blue' | 'yellow' | 'green' | 'orange';
                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                          -  blink = false;
                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                          -  speed = 1000;
                                                                                                                                                                                                                                                                                                          -  public size = '24px';
                                                                                                                                                                                                                                                                                                          -  // @HostBinding('class.active') @Input() active: boolean = false;
                                                                                                                                                                                                                                                                                                          -  constructor(@Attribute('size') public readonly _size: string) {}
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  ngOnInit() {
                                                                                                                                                                                                                                                                                                          -    if (this._size) {
                                                                                                                                                                                                                                                                                                          -      this.size = this._size;
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  onClick() {
                                                                                                                                                                                                                                                                                                          -    this.blink = !this.blink;
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          <div  [style.width]="size" [style.height]="size" class="led {{color}}" [ngClass]="{blink: blink}" (click)="onClick()"></div>
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          - ./led.component.scss -

                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          @import 'animation-helper';
                                                                                                                                                                                                                                                                                                          -@mixin blink0(
                                                                                                                                                                                                                                                                                                          -  $color: #f00,
                                                                                                                                                                                                                                                                                                          -  $duration: $global-duration,
                                                                                                                                                                                                                                                                                                          -  $function: $global-function,
                                                                                                                                                                                                                                                                                                          -  $delay: $global-delay,
                                                                                                                                                                                                                                                                                                          -  $count: $global-count,
                                                                                                                                                                                                                                                                                                          -  $fill: $global-fill,
                                                                                                                                                                                                                                                                                                          -  $visibility: $global-visibility
                                                                                                                                                                                                                                                                                                          -) {
                                                                                                                                                                                                                                                                                                          -  @include animation(blink + '_' + $color $duration $function $delay $count $fill);
                                                                                                                                                                                                                                                                                                          -  @include visibility($visibility);
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  @at-root {
                                                                                                                                                                                                                                                                                                          -    @include keyframes(blink + '_' + $color) {
                                                                                                                                                                                                                                                                                                          -      0% {
                                                                                                                                                                                                                                                                                                          -        background-color: $color;
                                                                                                                                                                                                                                                                                                          -        box-shadow: #000 0 -1px 6px 1px, inset darken($color, 30%) 0 -1px 8px, $color 0 3px 11px;
                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                          -      50% {
                                                                                                                                                                                                                                                                                                          -        background-color: rgba(255, 255, 255, 0.25);
                                                                                                                                                                                                                                                                                                          -        box-shadow: #000 0 -1px 6px 1px;
                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                          -      100% {
                                                                                                                                                                                                                                                                                                          -        background-color: $color;
                                                                                                                                                                                                                                                                                                          -        box-shadow: #000 0 -1px 6px 1px, inset darken($color, 30%) 0 -1px 8px, $color 0 3px 11px;
                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -@mixin blink(
                                                                                                                                                                                                                                                                                                          -  $color: #ff0,
                                                                                                                                                                                                                                                                                                          -  $duration: $global-duration,
                                                                                                                                                                                                                                                                                                          -  $function: $global-function,
                                                                                                                                                                                                                                                                                                          -  $delay: $global-delay,
                                                                                                                                                                                                                                                                                                          -  $count: $global-count,
                                                                                                                                                                                                                                                                                                          -  $fill: $global-fill,
                                                                                                                                                                                                                                                                                                          -  $visibility: $global-visibility
                                                                                                                                                                                                                                                                                                          -) {
                                                                                                                                                                                                                                                                                                          -  @include animation(blink + '_' + $color $duration $function $delay $count $fill);
                                                                                                                                                                                                                                                                                                          -  @include visibility($visibility);
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  @at-root {
                                                                                                                                                                                                                                                                                                          -    @include keyframes(blink + '_' + $color) {
                                                                                                                                                                                                                                                                                                          -      from {
                                                                                                                                                                                                                                                                                                          -        background-color: $color;
                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                          -      50% {
                                                                                                                                                                                                                                                                                                          -        background-color: darken($color, 20%);
                                                                                                                                                                                                                                                                                                          -        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset darken($color, 5%) 0 -1px 9px, $color 0 2px 0;
                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                          -      to {
                                                                                                                                                                                                                                                                                                          -        background-color: $color;
                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -.led {
                                                                                                                                                                                                                                                                                                          -  //  margin: 20px auto;
                                                                                                                                                                                                                                                                                                          -  margin: 0 5px;
                                                                                                                                                                                                                                                                                                          -  display: inline-block;
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  width: 10px;
                                                                                                                                                                                                                                                                                                          -  height: 10px;
                                                                                                                                                                                                                                                                                                          -  border-radius: 50%;
                                                                                                                                                                                                                                                                                                          -  background-color: rgba(255, 255, 255, 0.25);
                                                                                                                                                                                                                                                                                                          -  box-shadow: #000 0 -1px 6px 1px;
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  &.red {
                                                                                                                                                                                                                                                                                                          -    background-color: #f00;
                                                                                                                                                                                                                                                                                                          -    box-shadow: #000 0 -1px 6px 1px, inset #600 0 -1px 8px, #f00 0 3px 11px;
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -    &.blink {
                                                                                                                                                                                                                                                                                                          -      animation: blinkRed 1s infinite;
                                                                                                                                                                                                                                                                                                          -      //@include blink($color: red, $duration: 1000ms, $count:infinite);
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  &.yellow {
                                                                                                                                                                                                                                                                                                          -    background-color: #ff0;
                                                                                                                                                                                                                                                                                                          -    box-shadow: #000 0 -1px 6px 1px, inset #660 0 -1px 8px, #ff0 0 3px 11px;
                                                                                                                                                                                                                                                                                                          -    &.blink {
                                                                                                                                                                                                                                                                                                          -      animation: blinkYellow 1s infinite;
                                                                                                                                                                                                                                                                                                          -      //@include blink($color: yellow, $duration: 1000ms, $count:infinite);
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  &.green {
                                                                                                                                                                                                                                                                                                          -    background-color: green;
                                                                                                                                                                                                                                                                                                          -    box-shadow: #000 0 -1px 6px 1px, inset #460 0 -1px 8px, green 0 3px 11px;
                                                                                                                                                                                                                                                                                                          -    &.blink {
                                                                                                                                                                                                                                                                                                          -      @include blink($color: green, $duration: 1000ms, $count: infinite);
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  &.blue {
                                                                                                                                                                                                                                                                                                          -    background-color: blue;
                                                                                                                                                                                                                                                                                                          -    box-shadow: #000 0 -1px 6px 1px, inset #006 0 -1px 8px, blue 0 3px 11px;
                                                                                                                                                                                                                                                                                                          -    &.blink {
                                                                                                                                                                                                                                                                                                          -      @include blink($color: blue, $duration: 1000ms, $count: infinite);
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  &.orange {
                                                                                                                                                                                                                                                                                                          -    background-color: darkorange;
                                                                                                                                                                                                                                                                                                          -    box-shadow: #000 0 -1px 6px 1px, inset #630 0 -1px 8px, darkorange 0 3px 11px;
                                                                                                                                                                                                                                                                                                          -    &.blink {
                                                                                                                                                                                                                                                                                                          -      @include blink($color: darkorange, $duration: 1000ms, $count: infinite);
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  @keyframes blinkRed {
                                                                                                                                                                                                                                                                                                          -    from {
                                                                                                                                                                                                                                                                                                          -      background-color: #f00;
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -    50% {
                                                                                                                                                                                                                                                                                                          -      background-color: #a00;
                                                                                                                                                                                                                                                                                                          -      box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0;
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -    to {
                                                                                                                                                                                                                                                                                                          -      background-color: #f00;
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -  @keyframes blinkYellow {
                                                                                                                                                                                                                                                                                                          -    from {
                                                                                                                                                                                                                                                                                                          -      background-color: #ff0;
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -    50% {
                                                                                                                                                                                                                                                                                                          -      background-color: #aa0;
                                                                                                                                                                                                                                                                                                          -      box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #808002 0 -1px 9px, #ff0 0 2px 0;
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -    to {
                                                                                                                                                                                                                                                                                                          -      background-color: #ff0;
                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/LedDemoComponent.html b/docs/components/LedDemoComponent.html deleted file mode 100644 index c9469b815..000000000 --- a/docs/components/LedDemoComponent.html +++ /dev/null @@ -1,445 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            - libs/experiments/src/lib/containers/led-demo/led-demo.component.ts -

                                                                                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            - OnInit -

                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                            selectorngx-led-demo
                                                                                                                                                                                                                                                                                                            styleUrls./led-demo.component.scss
                                                                                                                                                                                                                                                                                                            templateUrl./led-demo.component.html
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                            -constructor() -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                            - - - - crumbs - - - -
                                                                                                                                                                                                                                                                                                            - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                            - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                            - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Led Demo' }, - ] -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                            -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-led-demo',
                                                                                                                                                                                                                                                                                                            -  templateUrl: './led-demo.component.html',
                                                                                                                                                                                                                                                                                                            -  styleUrls: ['./led-demo.component.scss'],
                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                            -export class LedDemoComponent implements OnInit {
                                                                                                                                                                                                                                                                                                            -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                                            -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                                            -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                                            -    { name: 'Led Demo' },
                                                                                                                                                                                                                                                                                                            -  ];
                                                                                                                                                                                                                                                                                                            -  constructor() {}
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            <ngx-breadcrumbs title="Micro Interactions" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -<div class="container" fxLayout="column">
                                                                                                                                                                                                                                                                                                            -  <div fxLayout="row"  fxLayoutGap.gt-sm="24px">
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="red" size="10px" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="yellow" size="10px" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="green" size="10px" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="blue" size="10px" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="orange" size="10px" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -  </div>
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -  <div fxLayout="row" fxLayoutGap.gt-sm="5px">
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="red" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="yellow" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="green" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="blue" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -    <ngx-led color="orange" [blink]=true></ngx-led>
                                                                                                                                                                                                                                                                                                            -  </div>
                                                                                                                                                                                                                                                                                                            -</div>
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            - ./led-demo.component.scss -

                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            :host {
                                                                                                                                                                                                                                                                                                            -  display: block;
                                                                                                                                                                                                                                                                                                            -  padding: 1.5%;
                                                                                                                                                                                                                                                                                                            -  position: relative;
                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -.container {
                                                                                                                                                                                                                                                                                                            -  min-height: 100vh;
                                                                                                                                                                                                                                                                                                            -  display: flex;
                                                                                                                                                                                                                                                                                                            -  justify-content: center;
                                                                                                                                                                                                                                                                                                            -  align-items: center;
                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/LineChartWidgetComponent.html b/docs/components/LineChartWidgetComponent.html deleted file mode 100644 index 81a67cce9..000000000 --- a/docs/components/LineChartWidgetComponent.html +++ /dev/null @@ -1,705 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              - libs/widgets/src/lib/components/line-chart-widget/line-chart-widget.component.ts -

                                                                                                                                                                                                                                                                                                              - - - -

                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              - AfterViewInit -

                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              selectorngx-line-chart-widget
                                                                                                                                                                                                                                                                                                              styleUrls./line-chart-widget.component.scss
                                                                                                                                                                                                                                                                                                              templateUrl./line-chart-widget.component.html
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              Inputs
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              -constructor() -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              Inputs

                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              - - data - -

                                                                                                                                                                                                                                                                                                              - Type : ChartData - -

                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              - - options - -

                                                                                                                                                                                                                                                                                                              - Type : LineChartWidgetOptions - -

                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                              -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              - - - - reload - - - -
                                                                                                                                                                                                                                                                                                              -reload() -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              - - - - canvas - - - -
                                                                                                                                                                                                                                                                                                              - canvas: ElementRef - -
                                                                                                                                                                                                                                                                                                              - Type : ElementRef - -
                                                                                                                                                                                                                                                                                                              - Decorators : -
                                                                                                                                                                                                                                                                                                              - - @ViewChild('canvas', {read: ElementRef})
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              - - - - chart - - - -
                                                                                                                                                                                                                                                                                                              - chart: Chart - -
                                                                                                                                                                                                                                                                                                              - Type : Chart - -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              - - - - isLoading - - - -
                                                                                                                                                                                                                                                                                                              - isLoading: boolean - -
                                                                                                                                                                                                                                                                                                              - Type : boolean - -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              import { AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                              -import * as Chart from 'chart.js';
                                                                                                                                                                                                                                                                                                              -import { ChartConfiguration, ChartData, ChartDataSets } from 'chart.js';
                                                                                                                                                                                                                                                                                                              -import defaultsDeep from 'lodash-es/defaultsDeep';
                                                                                                                                                                                                                                                                                                              -import { defaultChartOptions } from '../chart-widget/chart-widget-defaults';
                                                                                                                                                                                                                                                                                                              -import { LineChartWidgetOptions } from './line-chart-widget-options.interface';
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-line-chart-widget',
                                                                                                                                                                                                                                                                                                              -  templateUrl: './line-chart-widget.component.html',
                                                                                                                                                                                                                                                                                                              -  styleUrls: ['./line-chart-widget.component.scss'],
                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                              -export class LineChartWidgetComponent implements AfterViewInit {
                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                              -  data: ChartData;
                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                              -  options: LineChartWidgetOptions;
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -  @ViewChild('canvas', { read: ElementRef })
                                                                                                                                                                                                                                                                                                              -  canvas: ElementRef;
                                                                                                                                                                                                                                                                                                              -  chart: Chart;
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -  isLoading: boolean;
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -  constructor() {}
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                              -    const that = this;
                                                                                                                                                                                                                                                                                                              -    const canvas = this.canvas.nativeElement.getContext('2d');
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -    const onResize = (chart, size) => {
                                                                                                                                                                                                                                                                                                              -      if (that.options && that.options.gradientFill) {
                                                                                                                                                                                                                                                                                                              -        const gradient = canvas.createLinearGradient(0, 0, 0, size.height);
                                                                                                                                                                                                                                                                                                              -        gradient.addColorStop(0, that.options.gradientFill.from);
                                                                                                                                                                                                                                                                                                              -        gradient.addColorStop(1, that.options.gradientFill.to);
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -        that.chart.data.datasets.forEach((dataset: ChartDataSets) => {
                                                                                                                                                                                                                                                                                                              -          dataset.fill = 'origin';
                                                                                                                                                                                                                                                                                                              -          dataset.pointBackgroundColor = dataset.backgroundColor;
                                                                                                                                                                                                                                                                                                              -          dataset.backgroundColor = gradient;
                                                                                                                                                                                                                                                                                                              -        });
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -        that.chart.update();
                                                                                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                                                                                              -    };
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -    this.chart = new Chart(canvas, <ChartConfiguration>{
                                                                                                                                                                                                                                                                                                              -      type: 'line',
                                                                                                                                                                                                                                                                                                              -      data: this.data,
                                                                                                                                                                                                                                                                                                              -      options: defaultsDeep(
                                                                                                                                                                                                                                                                                                              -        {
                                                                                                                                                                                                                                                                                                              -          onResize: onResize,
                                                                                                                                                                                                                                                                                                              -          layout: {
                                                                                                                                                                                                                                                                                                              -            padding: {
                                                                                                                                                                                                                                                                                                              -              left: 24,
                                                                                                                                                                                                                                                                                                              -              right: 24,
                                                                                                                                                                                                                                                                                                              -              top: 16,
                                                                                                                                                                                                                                                                                                              -              bottom: 24,
                                                                                                                                                                                                                                                                                                              -            },
                                                                                                                                                                                                                                                                                                              -          },
                                                                                                                                                                                                                                                                                                              -          tooltips: {
                                                                                                                                                                                                                                                                                                              -            mode: 'index',
                                                                                                                                                                                                                                                                                                              -            intersect: false,
                                                                                                                                                                                                                                                                                                              -          },
                                                                                                                                                                                                                                                                                                              -          hover: {
                                                                                                                                                                                                                                                                                                              -            intersect: true,
                                                                                                                                                                                                                                                                                                              -          },
                                                                                                                                                                                                                                                                                                              -        },
                                                                                                                                                                                                                                                                                                              -        defaultChartOptions,
                                                                                                                                                                                                                                                                                                              -      ),
                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -  reload() {
                                                                                                                                                                                                                                                                                                              -    this.isLoading = true;
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -    setTimeout(() => {
                                                                                                                                                                                                                                                                                                              -      this.isLoading = false;
                                                                                                                                                                                                                                                                                                              -    }, 2000);
                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              <ngx-chart-widget class="widget" [style.background]="options.background" [style.color]="options.color">
                                                                                                                                                                                                                                                                                                              -  <ngx-chart-widget-header>
                                                                                                                                                                                                                                                                                                              -    <ngx-chart-widget-header-title>{{ options.title }}</ngx-chart-widget-header-title>
                                                                                                                                                                                                                                                                                                              -    <ngx-chart-widget-header-sub-title>
                                                                                                                                                                                                                                                                                                              -      <mat-icon *ngIf="options.gain >= 0">arrow_upward</mat-icon>
                                                                                                                                                                                                                                                                                                              -      <mat-icon *ngIf="options.gain < 0">arrow_downward</mat-icon>
                                                                                                                                                                                                                                                                                                              -      {{ options.gain }}% {{ options.subTitle }}
                                                                                                                                                                                                                                                                                                              -    </ngx-chart-widget-header-sub-title>
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -    <ngx-chart-widget-header-actions>
                                                                                                                                                                                                                                                                                                              -      <button mat-icon-button (click)="reload()">
                                                                                                                                                                                                                                                                                                              -        <mat-icon>refresh</mat-icon>
                                                                                                                                                                                                                                                                                                              -      </button>
                                                                                                                                                                                                                                                                                                              -      <button mat-icon-button [matMenuTriggerFor]="menu">
                                                                                                                                                                                                                                                                                                              -        <mat-icon>more_vert</mat-icon>
                                                                                                                                                                                                                                                                                                              -      </button>
                                                                                                                                                                                                                                                                                                              -    </ngx-chart-widget-header-actions>
                                                                                                                                                                                                                                                                                                              -  </ngx-chart-widget-header>
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -  <ngx-chart-widget-content class="card-content">
                                                                                                                                                                                                                                                                                                              -    <div class="content">
                                                                                                                                                                                                                                                                                                              -      <canvas #canvas></canvas>
                                                                                                                                                                                                                                                                                                              -    </div>
                                                                                                                                                                                                                                                                                                              -  </ngx-chart-widget-content>
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -  <ngx-loading-overlay [isLoading]="isLoading"></ngx-loading-overlay>
                                                                                                                                                                                                                                                                                                              -</ngx-chart-widget>
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -<mat-menu #menu="matMenu">
                                                                                                                                                                                                                                                                                                              -  <button mat-menu-item>
                                                                                                                                                                                                                                                                                                              -    <mat-icon> settings</mat-icon>
                                                                                                                                                                                                                                                                                                              -    <span> Settings </span>
                                                                                                                                                                                                                                                                                                              -  </button>
                                                                                                                                                                                                                                                                                                              -  <button mat-menu-item disabled>
                                                                                                                                                                                                                                                                                                              -    <mat-icon> more</mat-icon>
                                                                                                                                                                                                                                                                                                              -    <span> More Info </span>
                                                                                                                                                                                                                                                                                                              -  </button>
                                                                                                                                                                                                                                                                                                              -  <button mat-menu-item>
                                                                                                                                                                                                                                                                                                              -    <mat-icon> remove_circle</mat-icon>
                                                                                                                                                                                                                                                                                                              -    <span> Remove Widget </span>
                                                                                                                                                                                                                                                                                                              -  </button>
                                                                                                                                                                                                                                                                                                              -</mat-menu>
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              - ./line-chart-widget.component.scss -

                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              .card-content {
                                                                                                                                                                                                                                                                                                              -  padding: 0 !important;
                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -.content {
                                                                                                                                                                                                                                                                                                              -  max-width: 100%;
                                                                                                                                                                                                                                                                                                              -  display: flex;
                                                                                                                                                                                                                                                                                                              -  flex: 1;
                                                                                                                                                                                                                                                                                                              -  position: relative;
                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ListComponent.html b/docs/components/ListComponent.html deleted file mode 100644 index 79a5414ee..000000000 --- a/docs/components/ListComponent.html +++ /dev/null @@ -1,805 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                - libs/widgets/src/lib/components/list/list.component.ts -

                                                                                                                                                                                                                                                                                                                - - - -

                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                - AfterViewInit -

                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                selectorngx-list
                                                                                                                                                                                                                                                                                                                styleUrls./list.component.scss
                                                                                                                                                                                                                                                                                                                templateUrl./list.component.html
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                Inputs
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                Outputs
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                Inputs

                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                - - columns - -

                                                                                                                                                                                                                                                                                                                - Type : ListColumn[] - -

                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                - - hideHeader - -

                                                                                                                                                                                                                                                                                                                - Type : boolean - -

                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                - - name - -

                                                                                                                                                                                                                                                                                                                - Type : string - -

                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                Outputs

                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                - - filterChange - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                - - - - toggleColumnVisibility - - - -
                                                                                                                                                                                                                                                                                                                -toggleColumnVisibility(column, event) -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                NameOptional
                                                                                                                                                                                                                                                                                                                column - No -
                                                                                                                                                                                                                                                                                                                event - No -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                - - - - filter - - - -
                                                                                                                                                                                                                                                                                                                - filter: ElementRef - -
                                                                                                                                                                                                                                                                                                                - Type : ElementRef - -
                                                                                                                                                                                                                                                                                                                - Decorators : -
                                                                                                                                                                                                                                                                                                                - - @ViewChild('filter')
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                import {
                                                                                                                                                                                                                                                                                                                -  AfterViewInit,
                                                                                                                                                                                                                                                                                                                -  Component,
                                                                                                                                                                                                                                                                                                                -  ElementRef,
                                                                                                                                                                                                                                                                                                                -  EventEmitter,
                                                                                                                                                                                                                                                                                                                -  Input,
                                                                                                                                                                                                                                                                                                                -  Output,
                                                                                                                                                                                                                                                                                                                -  ViewChild,
                                                                                                                                                                                                                                                                                                                -  ViewEncapsulation,
                                                                                                                                                                                                                                                                                                                -} from '@angular/core';
                                                                                                                                                                                                                                                                                                                -import { fromEvent } from 'rxjs';
                                                                                                                                                                                                                                                                                                                -import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                -import { ListColumn } from './list-column.model';
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-list',
                                                                                                                                                                                                                                                                                                                -  templateUrl: './list.component.html',
                                                                                                                                                                                                                                                                                                                -  styleUrls: ['./list.component.scss'],
                                                                                                                                                                                                                                                                                                                -  // encapsulation: ViewEncapsulation.None
                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                -export class ListComponent implements AfterViewInit {
                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                -  name: string;
                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                -  columns: ListColumn[];
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -  @ViewChild('filter')
                                                                                                                                                                                                                                                                                                                -  filter: ElementRef;
                                                                                                                                                                                                                                                                                                                -  @Output()
                                                                                                                                                                                                                                                                                                                -  filterChange = new EventEmitter<string>();
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                -  hideHeader: boolean;
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -  constructor() {}
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                -    if (!this.hideHeader) {
                                                                                                                                                                                                                                                                                                                -      fromEvent(this.filter.nativeElement, 'keyup')
                                                                                                                                                                                                                                                                                                                -        .pipe(
                                                                                                                                                                                                                                                                                                                -          distinctUntilChanged(),
                                                                                                                                                                                                                                                                                                                -          debounceTime(150),
                                                                                                                                                                                                                                                                                                                -        )
                                                                                                                                                                                                                                                                                                                -        .subscribe(() => {
                                                                                                                                                                                                                                                                                                                -          this.filterChange.emit(this.filter.nativeElement.value);
                                                                                                                                                                                                                                                                                                                -        });
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -  toggleColumnVisibility(column, event) {
                                                                                                                                                                                                                                                                                                                -    event.stopPropagation();
                                                                                                                                                                                                                                                                                                                -    event.stopImmediatePropagation();
                                                                                                                                                                                                                                                                                                                -    column.visible = !column.visible;
                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                <div class="ngx-list-table">
                                                                                                                                                                                                                                                                                                                -  <div class="ngx-list-header" *ngIf="!hideHeader"
                                                                                                                                                                                                                                                                                                                -       fxLayout="row" fxLayoutAlign="start baseline" fxLayoutGap="8px"
                                                                                                                                                                                                                                                                                                                -       fxLayoutGap.gt-xs="24px">
                                                                                                                                                                                                                                                                                                                -    <div fxLayout="column" fxLayoutAlign="start baseline" fxLayoutGap="24px" fxFlex="grow"
                                                                                                                                                                                                                                                                                                                -         fxLayout.gt-xs="row">
                                                                                                                                                                                                                                                                                                                -      <div class="ngx-list-name">{{ name }}</div>
                                                                                                                                                                                                                                                                                                                -      <mat-form-field class="ngx-filter-input" floatPlaceholder="never" fxFlex>
                                                                                                                                                                                                                                                                                                                -        <mat-icon class="ngx-filter-input-icon" matPrefix>search</mat-icon>
                                                                                                                                                                                                                                                                                                                -        <input matInput #filter placeholder="Search&hellip;">
                                                                                                                                                                                                                                                                                                                -      </mat-form-field>
                                                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    <button class="ngx-column-filter" type="button" mat-icon-button [matMenuTriggerFor]="columnFilter">
                                                                                                                                                                                                                                                                                                                -      <mat-icon>filter_list</mat-icon>
                                                                                                                                                                                                                                                                                                                -    </button>
                                                                                                                                                                                                                                                                                                                -    <ng-content select=".actions"></ng-content>
                                                                                                                                                                                                                                                                                                                -  </div>
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -  <mat-menu #columnFilter="matMenu" yPosition="below" xPosition="before">
                                                                                                                                                                                                                                                                                                                -    <button class="checkbox-item mat-menu-item" *ngFor="let column of columns"
                                                                                                                                                                                                                                                                                                                -            (click)="toggleColumnVisibility(column, $event)">
                                                                                                                                                                                                                                                                                                                -      <mat-checkbox  [checked]="column.visible" (change)="column.visible = !column.visible" class="checkbox" #checkbox (click)="$event.stopPropagation()">
                                                                                                                                                                                                                                                                                                                -      <!--<mat-checkbox [(ngModel)]="column.visible" class="checkbox" #checkbox (click)="$event.stopPropagation()">-->
                                                                                                                                                                                                                                                                                                                -        {{ column.name }}
                                                                                                                                                                                                                                                                                                                -      </mat-checkbox>
                                                                                                                                                                                                                                                                                                                -    </button>
                                                                                                                                                                                                                                                                                                                -  </mat-menu>
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -  <ng-content></ng-content>
                                                                                                                                                                                                                                                                                                                -</div>
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                - ./list.component.scss -

                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                @import 'fu/var';
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -:host /deep/ {
                                                                                                                                                                                                                                                                                                                -  .ngx-list-table {
                                                                                                                                                                                                                                                                                                                -    display: flex;
                                                                                                                                                                                                                                                                                                                -    flex-direction: column;
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    .ngx-list-header {
                                                                                                                                                                                                                                                                                                                -      background: white;
                                                                                                                                                                                                                                                                                                                -      padding-left: $spacing;
                                                                                                                                                                                                                                                                                                                -      padding-right: $spacing;
                                                                                                                                                                                                                                                                                                                -      border-bottom: 1px solid $theme-divider;
                                                                                                                                                                                                                                                                                                                -      height: 60px;
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      @include media-xs {
                                                                                                                                                                                                                                                                                                                -        height: auto;
                                                                                                                                                                                                                                                                                                                -        padding-top: $spacing;
                                                                                                                                                                                                                                                                                                                -        padding-bottom: $spacing;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      .ngx-list-name {
                                                                                                                                                                                                                                                                                                                -        color: $color;
                                                                                                                                                                                                                                                                                                                -        border-right: 1px solid $theme-divider;
                                                                                                                                                                                                                                                                                                                -        font-size: 20px;
                                                                                                                                                                                                                                                                                                                -        line-height: 32px;
                                                                                                                                                                                                                                                                                                                -        font-weight: 500;
                                                                                                                                                                                                                                                                                                                -        padding-right: $spacing;
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -        @include media-xs {
                                                                                                                                                                                                                                                                                                                -          border-right: none;
                                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      .ngx-filter-input {
                                                                                                                                                                                                                                                                                                                -        font-size: 16px;
                                                                                                                                                                                                                                                                                                                -        line-height: 1.125;
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -        .ngx-filter-input-icon {
                                                                                                                                                                                                                                                                                                                -          width: 1.2em;
                                                                                                                                                                                                                                                                                                                -          color: $theme-icon;
                                                                                                                                                                                                                                                                                                                -          vertical-align: bottom;
                                                                                                                                                                                                                                                                                                                -          height: 22px;
                                                                                                                                                                                                                                                                                                                -          font-size: 22px;
                                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      .ngx-column-filter {
                                                                                                                                                                                                                                                                                                                -        color: $theme-icon;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    .mat-header-row {
                                                                                                                                                                                                                                                                                                                -      background: #f5f5f5;
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      .mat-header-cell .mat-sort-header-button {
                                                                                                                                                                                                                                                                                                                -        text-transform: uppercase;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    .mat-row {
                                                                                                                                                                                                                                                                                                                -      &:hover {
                                                                                                                                                                                                                                                                                                                -        background: rgba(black, 0.04);
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    .mat-cell.image-cell,
                                                                                                                                                                                                                                                                                                                -    .mat-header-cell.image-cell {
                                                                                                                                                                                                                                                                                                                -      flex: 0;
                                                                                                                                                                                                                                                                                                                -      min-width: 35px + $spacing;
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      img {
                                                                                                                                                                                                                                                                                                                -        border-radius: 50%;
                                                                                                                                                                                                                                                                                                                -        height: 35px;
                                                                                                                                                                                                                                                                                                                -        width: 35px;
                                                                                                                                                                                                                                                                                                                -        margin-right: $spacing;
                                                                                                                                                                                                                                                                                                                -        vertical-align: middle;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    .mat-cell.actions-cell,
                                                                                                                                                                                                                                                                                                                -    .mat-header-cell.actions-cell {
                                                                                                                                                                                                                                                                                                                -      flex: 0;
                                                                                                                                                                                                                                                                                                                -      min-width: 40px;
                                                                                                                                                                                                                                                                                                                -      overflow: visible;
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      button {
                                                                                                                                                                                                                                                                                                                -        color: $theme-icon;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    .paginator {
                                                                                                                                                                                                                                                                                                                -      display: block;
                                                                                                                                                                                                                                                                                                                -      background: #f5f5f5;
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    /**
                                                                                                                                                                                                                                                                                                                -      Responsive Table
                                                                                                                                                                                                                                                                                                                -     */
                                                                                                                                                                                                                                                                                                                -    .ngx-mobile-label {
                                                                                                                                                                                                                                                                                                                -      display: none;
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -    @include media-xs {
                                                                                                                                                                                                                                                                                                                -      .ngx-mobile-label {
                                                                                                                                                                                                                                                                                                                -        width: 80px;
                                                                                                                                                                                                                                                                                                                -        display: inline-block;
                                                                                                                                                                                                                                                                                                                -        font-weight: 500;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      .mat-header-row {
                                                                                                                                                                                                                                                                                                                -        display: none;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      .mat-row {
                                                                                                                                                                                                                                                                                                                -        flex-direction: column;
                                                                                                                                                                                                                                                                                                                -        align-items: start;
                                                                                                                                                                                                                                                                                                                -        padding: $spacing/3 $spacing;
                                                                                                                                                                                                                                                                                                                -        min-height: auto;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -      .mat-cell {
                                                                                                                                                                                                                                                                                                                -        padding-top: $spacing/3;
                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/LoadingOverlayComponent.html b/docs/components/LoadingOverlayComponent.html deleted file mode 100644 index d60932322..000000000 --- a/docs/components/LoadingOverlayComponent.html +++ /dev/null @@ -1,405 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  - libs/loading-overlay/src/lib/loading-overlay.component.ts -

                                                                                                                                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  - OnInit -

                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                  selectorngx-loading-overlay
                                                                                                                                                                                                                                                                                                                  styleUrls./loading-overlay.component.scss
                                                                                                                                                                                                                                                                                                                  templateUrl./loading-overlay.component.html
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  Inputs
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                  -constructor() -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  Inputs

                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                  - - isLoading - -

                                                                                                                                                                                                                                                                                                                  - Type : boolean - -

                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                  - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                  -ngOnInit() -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  import { Component, OnInit, Input } from '@angular/core';
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-loading-overlay',
                                                                                                                                                                                                                                                                                                                  -  templateUrl: './loading-overlay.component.html',
                                                                                                                                                                                                                                                                                                                  -  styleUrls: ['./loading-overlay.component.scss'],
                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                  -export class LoadingOverlayComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                                                                                  -  isLoading: boolean;
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -  constructor() {}
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  <div class="loading-overlay" [class.show]="isLoading">
                                                                                                                                                                                                                                                                                                                  -  <mat-progress-bar mode="indeterminate"></mat-progress-bar>
                                                                                                                                                                                                                                                                                                                  -</div>
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  - ./loading-overlay.component.scss -

                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  .loading-overlay {
                                                                                                                                                                                                                                                                                                                  -  background-color: rgba(255, 255, 255, 0.7);
                                                                                                                                                                                                                                                                                                                  -  position: absolute;
                                                                                                                                                                                                                                                                                                                  -  top: 0;
                                                                                                                                                                                                                                                                                                                  -  left: 0;
                                                                                                                                                                                                                                                                                                                  -  width: 100%;
                                                                                                                                                                                                                                                                                                                  -  height: 100%;
                                                                                                                                                                                                                                                                                                                  -  z-index: 10;
                                                                                                                                                                                                                                                                                                                  -  transition: all 0.25s ease-in-out;
                                                                                                                                                                                                                                                                                                                  -  opacity: 0;
                                                                                                                                                                                                                                                                                                                  -  visibility: hidden;
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -  &.show {
                                                                                                                                                                                                                                                                                                                  -    opacity: 1;
                                                                                                                                                                                                                                                                                                                  -    visibility: visible;
                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/LoginComponent.html b/docs/components/LoginComponent.html deleted file mode 100644 index 477b996c1..000000000 --- a/docs/components/LoginComponent.html +++ /dev/null @@ -1,1025 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    - libs/auth/src/lib/components/login/login.component.ts -

                                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    selectorngx-login
                                                                                                                                                                                                                                                                                                                    styleUrls./login.component.scss
                                                                                                                                                                                                                                                                                                                    templateUrl./login.component.html
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    -constructor(fb: FormBuilder, store: Store, cd: ChangeDetectorRef, oauthService: OAuthService, ropcService: ROPCService, router: Router, data: literal type, dialogRef: MatDialogRef) -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                    fb - FormBuilder - - No -
                                                                                                                                                                                                                                                                                                                    store - Store - - No -
                                                                                                                                                                                                                                                                                                                    cd - ChangeDetectorRef - - No -
                                                                                                                                                                                                                                                                                                                    oauthService - OAuthService - - No -
                                                                                                                                                                                                                                                                                                                    ropcService - ROPCService - - No -
                                                                                                                                                                                                                                                                                                                    router - Router - - No -
                                                                                                                                                                                                                                                                                                                    data - literal type - - No -
                                                                                                                                                                                                                                                                                                                    dialogRef - MatDialogRef<LoginComponent> - - No -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - initSSO - - - -
                                                                                                                                                                                                                                                                                                                    -initSSO() -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - onSubmit - - - -
                                                                                                                                                                                                                                                                                                                    -onSubmit(values) -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    NameOptional
                                                                                                                                                                                                                                                                                                                    values - No -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - toggleInputType - - - -
                                                                                                                                                                                                                                                                                                                    -toggleInputType() -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - Public - data - - - -
                                                                                                                                                                                                                                                                                                                    - data: literal type - -
                                                                                                                                                                                                                                                                                                                    - Type : literal type - -
                                                                                                                                                                                                                                                                                                                    - Decorators : -
                                                                                                                                                                                                                                                                                                                    - - @Inject(MAT_DIALOG_DATA)
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - Public - dialogRef - - - -
                                                                                                                                                                                                                                                                                                                    - dialogRef: MatDialogRef<LoginComponent> - -
                                                                                                                                                                                                                                                                                                                    - Type : MatDialogRef<LoginComponent> - -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - Public - errorMsg - - - -
                                                                                                                                                                                                                                                                                                                    - errorMsg: String - -
                                                                                                                                                                                                                                                                                                                    - Type : String - -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - Public - infoMsg - - - -
                                                                                                                                                                                                                                                                                                                    - infoMsg: String - -
                                                                                                                                                                                                                                                                                                                    - Type : String - -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - inputType - - - -
                                                                                                                                                                                                                                                                                                                    - inputType: string - -
                                                                                                                                                                                                                                                                                                                    - Type : string - -
                                                                                                                                                                                                                                                                                                                    - Default value : 'password' -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - loginForm - - - -
                                                                                                                                                                                                                                                                                                                    - loginForm: FormGroup - -
                                                                                                                                                                                                                                                                                                                    - Type : FormGroup - -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    - - - - visible - - - -
                                                                                                                                                                                                                                                                                                                    - visible: - -
                                                                                                                                                                                                                                                                                                                    - Default value : false -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                    -import { FormGroup, FormBuilder, Validators } from '@angular/forms';
                                                                                                                                                                                                                                                                                                                    -import { ROPCService } from '../../ropc.service';
                                                                                                                                                                                                                                                                                                                    -import { Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                    -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
                                                                                                                                                                                                                                                                                                                    -import { HttpErrorResponse } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                    -import { OAuthService } from 'angular-oauth2-oidc';
                                                                                                                                                                                                                                                                                                                    -import { Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                    -import { ChangeAuthMode, AuthMode } from '../../auth.actions';
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-login',
                                                                                                                                                                                                                                                                                                                    -  templateUrl: './login.component.html',
                                                                                                                                                                                                                                                                                                                    -  styleUrls: ['./login.component.scss'],
                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                    -export class LoginComponent {
                                                                                                                                                                                                                                                                                                                    -  public infoMsg: String;
                                                                                                                                                                                                                                                                                                                    -  public errorMsg: String;
                                                                                                                                                                                                                                                                                                                    -  inputType = 'password';
                                                                                                                                                                                                                                                                                                                    -  visible = false;
                                                                                                                                                                                                                                                                                                                    -  loginForm: FormGroup;
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -  constructor(
                                                                                                                                                                                                                                                                                                                    -    fb: FormBuilder,
                                                                                                                                                                                                                                                                                                                    -    private store: Store,
                                                                                                                                                                                                                                                                                                                    -    private cd: ChangeDetectorRef,
                                                                                                                                                                                                                                                                                                                    -    private oauthService: OAuthService,
                                                                                                                                                                                                                                                                                                                    -    private ropcService: ROPCService,
                                                                                                                                                                                                                                                                                                                    -    private router: Router,
                                                                                                                                                                                                                                                                                                                    -    @Inject(MAT_DIALOG_DATA) public data: { infoMsg: string },
                                                                                                                                                                                                                                                                                                                    -    public dialogRef: MatDialogRef<LoginComponent>,
                                                                                                                                                                                                                                                                                                                    -  ) {
                                                                                                                                                                                                                                                                                                                    -    if (data) {
                                                                                                                                                                                                                                                                                                                    -      this.infoMsg = data.infoMsg;
                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                    -    this.loginForm = fb.group({
                                                                                                                                                                                                                                                                                                                    -      username: ['', Validators.compose([Validators.required, Validators.minLength(4)])],
                                                                                                                                                                                                                                                                                                                    -      password: ['', Validators.compose([Validators.required, Validators.minLength(4)])],
                                                                                                                                                                                                                                                                                                                    -      rememberMe: false,
                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -  toggleInputType() {
                                                                                                                                                                                                                                                                                                                    -    if (this.visible) {
                                                                                                                                                                                                                                                                                                                    -      this.inputType = 'password';
                                                                                                                                                                                                                                                                                                                    -      this.visible = false;
                                                                                                                                                                                                                                                                                                                    -      this.cd.markForCheck();
                                                                                                                                                                                                                                                                                                                    -    } else {
                                                                                                                                                                                                                                                                                                                    -      this.inputType = 'text';
                                                                                                                                                                                                                                                                                                                    -      this.visible = true;
                                                                                                                                                                                                                                                                                                                    -      this.cd.markForCheck();
                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -  initSSO() {
                                                                                                                                                                                                                                                                                                                    -    this.store.dispatch(new ChangeAuthMode(AuthMode.ImplicitFLow)).subscribe(() => {
                                                                                                                                                                                                                                                                                                                    -      this.oauthService.initImplicitFlow();
                                                                                                                                                                                                                                                                                                                    -      console.log('initSSO');
                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -  onSubmit(values) {
                                                                                                                                                                                                                                                                                                                    -    if (this.loginForm.invalid) {
                                                                                                                                                                                                                                                                                                                    -      return;
                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -    this.store.dispatch(new ChangeAuthMode(AuthMode.PasswordFlow)).subscribe(async () => {
                                                                                                                                                                                                                                                                                                                    -      try {
                                                                                                                                                                                                                                                                                                                    -        const profile = await this.ropcService.login(values.username, values.password);
                                                                                                                                                                                                                                                                                                                    -        this.dialogRef.close(profile);
                                                                                                                                                                                                                                                                                                                    -      } catch (error /*: HttpErrorResponse*/) {
                                                                                                                                                                                                                                                                                                                    -        if (error.error && error.error.error_description !== undefined) {
                                                                                                                                                                                                                                                                                                                    -          this.errorMsg = error.error.error_description; // 'The user credentials is incorrect';
                                                                                                                                                                                                                                                                                                                    -        } else {
                                                                                                                                                                                                                                                                                                                    -          this.errorMsg = 'Login Failed';
                                                                                                                                                                                                                                                                                                                    -        }
                                                                                                                                                                                                                                                                                                                    -      }
                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    <div class="card border-radius elevation">
                                                                                                                                                                                                                                                                                                                    -  <mat-toolbar color="primary">
                                                                                                                                                                                                                                                                                                                    -    <mat-toolbar-row style="margin-bottom: -50px;" fxLayout="column" fxLayoutAlign="start end">
                                                                                                                                                                                                                                                                                                                    -      <button mat-icon-button [mat-dialog-close]="false" style="margin-right: -15px">
                                                                                                                                                                                                                                                                                                                    -        <mat-icon aria-label="Close">close</mat-icon>
                                                                                                                                                                                                                                                                                                                    -      </button>
                                                                                                                                                                                                                                                                                                                    -    </mat-toolbar-row>
                                                                                                                                                                                                                                                                                                                    -    <mat-toolbar-row style="min-height:120px;" fxLayout="column" fxLayoutAlign="center center">
                                                                                                                                                                                                                                                                                                                    -      <img class="login-angular-logo" src="assets/img/homepage/angular-white-transparent.svg">
                                                                                                                                                                                                                                                                                                                    -    </mat-toolbar-row>
                                                                                                                                                                                                                                                                                                                    -  </mat-toolbar>
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -  <form class="padding" fxLayout="column" fxLayoutGap="16px" [formGroup]="loginForm">
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -      <span fxLayout="row" fxLayoutAlign="space-between center">
                                                                                                                                                                                                                                                                                                                    -        <mat-hint align="start" *ngIf="infoMsg">{{infoMsg}}</mat-hint>
                                                                                                                                                                                                                                                                                                                    -        <mat-error align="end" class="center" *ngIf="errorMsg">{{errorMsg}}</mat-error>
                                                                                                                                                                                                                                                                                                                    -      </span>
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -    <mat-form-field fxFlex="grow" appearance="fill">
                                                                                                                                                                                                                                                                                                                    -      <mat-label>Username</mat-label>
                                                                                                                                                                                                                                                                                                                    -      <!--<mat-icon matPrefix>person_outline</mat-icon>-->
                                                                                                                                                                                                                                                                                                                    -      <input autofocus matInput required placeholder="Usernames:  sumo, sumo1, sumo2, sumo3" formControlName="username">
                                                                                                                                                                                                                                                                                                                    -      <mat-hint>Usernames: sumo, sumo1, sumo2, sumo3</mat-hint>
                                                                                                                                                                                                                                                                                                                    -      <mat-error *ngIf="loginForm.get('username').hasError('required')">We need an username to log you in</mat-error>
                                                                                                                                                                                                                                                                                                                    -    </mat-form-field>
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -    <mat-form-field fxFlex="grow" appearance="fill">
                                                                                                                                                                                                                                                                                                                    -      <mat-label>Password</mat-label>
                                                                                                                                                                                                                                                                                                                    -      <!--<mat-icon matPrefix>lock_outline</mat-icon>-->
                                                                                                                                                                                                                                                                                                                    -      <input matInput required [type]="inputType" autocomplete="false" placeholder="Password: demo"
                                                                                                                                                                                                                                                                                                                    -             formControlName="password">
                                                                                                                                                                                                                                                                                                                    -      <button type="button" mat-icon-button matSuffix (click)="toggleInputType()" matTooltip="Toggle Visibility">
                                                                                                                                                                                                                                                                                                                    -        <mat-icon *ngIf="visible">visibility</mat-icon>
                                                                                                                                                                                                                                                                                                                    -        <mat-icon *ngIf="!visible">visibility_off</mat-icon>
                                                                                                                                                                                                                                                                                                                    -      </button>
                                                                                                                                                                                                                                                                                                                    -      <mat-hint>Password: demo</mat-hint>
                                                                                                                                                                                                                                                                                                                    -      <mat-hint align="end">Click the eye to toggle visibility</mat-hint>
                                                                                                                                                                                                                                                                                                                    -      <mat-error *ngIf="loginForm.get('password').hasError('required')">We need a password to log you in</mat-error>
                                                                                                                                                                                                                                                                                                                    -    </mat-form-field>
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -    <div fxLayout="row" fxLayoutAlign="space-between center">
                                                                                                                                                                                                                                                                                                                    -      <mat-checkbox class="mat-caption">Remember Me</mat-checkbox>
                                                                                                                                                                                                                                                                                                                    -      <a class="mat-caption" [routerLink]="['/forgot-password']">Forgot Password?</a>
                                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                                    -    <button type="submit" color="primary" mat-raised-button [disabled]="!loginForm.valid"
                                                                                                                                                                                                                                                                                                                    -            (click)="onSubmit(loginForm.value)">
                                                                                                                                                                                                                                                                                                                    -      SIGN IN
                                                                                                                                                                                                                                                                                                                    -    </button>
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -    <mat-hint class="text-center mat-caption">
                                                                                                                                                                                                                                                                                                                    -      <p>Not a member?
                                                                                                                                                                                                                                                                                                                    -        <a [routerLink]="['/register']">Register</a>
                                                                                                                                                                                                                                                                                                                    -      </p>
                                                                                                                                                                                                                                                                                                                    -    </mat-hint>
                                                                                                                                                                                                                                                                                                                    -    <!--
                                                                                                                                                                                                                                                                                                                    -    <mat-hint class="text-center mat-caption">
                                                                                                                                                                                                                                                                                                                    -      <p>or sign in with:</p>
                                                                                                                                                                                                                                                                                                                    -    </mat-hint>
                                                                                                                                                                                                                                                                                                                    -    -->
                                                                                                                                                                                                                                                                                                                    -    <span fxLayout="row" fxLayoutAlign="space-evenly center">
                                                                                                                                                                                                                                                                                                                    -      <button mat-mini-fab (click)="initSSO()" matTooltip="Login with KeyCloak" matTooltipPosition="above">
                                                                                                                                                                                                                                                                                                                    -        <mat-icon>security</mat-icon>
                                                                                                                                                                                                                                                                                                                    -      </button>
                                                                                                                                                                                                                                                                                                                    -      <button mat-mini-fab matTooltip="Login with Google" matTooltipPosition="above">
                                                                                                                                                                                                                                                                                                                    -        <fa-icon [icon]="['fab', 'google']"></fa-icon>
                                                                                                                                                                                                                                                                                                                    -      </button>
                                                                                                                                                                                                                                                                                                                    -      <button mat-mini-fab  matTooltip="Login with Twitter" matTooltipPosition="above">
                                                                                                                                                                                                                                                                                                                    -        <fa-icon [icon]="['fab', 'twitter']"></fa-icon>
                                                                                                                                                                                                                                                                                                                    -      </button>
                                                                                                                                                                                                                                                                                                                    -      <button mat-mini-fab matTooltip="Login with GitHub" matTooltipPosition="above">
                                                                                                                                                                                                                                                                                                                    -        <fa-icon [icon]="['fab', 'github']"></fa-icon>
                                                                                                                                                                                                                                                                                                                    -      </button>
                                                                                                                                                                                                                                                                                                                    -    </span>
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -  </form>
                                                                                                                                                                                                                                                                                                                    -</div>
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    - ./login.component.scss -

                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    .card {
                                                                                                                                                                                                                                                                                                                    -  width: 380px;
                                                                                                                                                                                                                                                                                                                    -  border-radius: 3px;
                                                                                                                                                                                                                                                                                                                    -  background: #fff;
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -  .padding {
                                                                                                                                                                                                                                                                                                                    -    padding: 24px;
                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -.text-center {
                                                                                                                                                                                                                                                                                                                    -  text-align: center;
                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -.login-angular-logo {
                                                                                                                                                                                                                                                                                                                    -  height: 96px;
                                                                                                                                                                                                                                                                                                                    -  margin: 0 4px 3px 0;
                                                                                                                                                                                                                                                                                                                    -  vertical-align: middle;
                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/MarketWidgetComponent.html b/docs/components/MarketWidgetComponent.html deleted file mode 100644 index 0e10b5065..000000000 --- a/docs/components/MarketWidgetComponent.html +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      - libs/widgets/src/lib/components/market-widget/market-widget.component.ts -

                                                                                                                                                                                                                                                                                                                      - - - -

                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      Implements

                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      - OnInit -

                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                      selectorngx-market-widget
                                                                                                                                                                                                                                                                                                                      styleUrls./market-widget.component.scss
                                                                                                                                                                                                                                                                                                                      templateUrl./market-widget.component.html
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                      -constructor() -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                      - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                      -ngOnInit() -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-market-widget',
                                                                                                                                                                                                                                                                                                                      -  templateUrl: './market-widget.component.html',
                                                                                                                                                                                                                                                                                                                      -  styleUrls: ['./market-widget.component.scss'],
                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                      -export class MarketWidgetComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                      -  constructor() {}
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      <div class="market-widget" fxLayout="column" fxLayoutAlign="center center">
                                                                                                                                                                                                                                                                                                                      -  <div class="title">more widgets</div>
                                                                                                                                                                                                                                                                                                                      -  <button class="action" type="button" mat-raised-button color="primary">COMING SOON</button>
                                                                                                                                                                                                                                                                                                                      -</div>
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      - ./market-widget.component.scss -

                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      @import 'fu/var';
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -.market-widget {
                                                                                                                                                                                                                                                                                                                      -  padding: $spacing * 2 $spacing;
                                                                                                                                                                                                                                                                                                                      -  border: 3px dashed #888;
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -  .title {
                                                                                                                                                                                                                                                                                                                      -    font-size: 22px;
                                                                                                                                                                                                                                                                                                                      -    color: $theme-secondary-text;
                                                                                                                                                                                                                                                                                                                      -    margin-bottom: $spacing/2;
                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/MenuItemComponent.html b/docs/components/MenuItemComponent.html deleted file mode 100644 index 805d3390d..000000000 --- a/docs/components/MenuItemComponent.html +++ /dev/null @@ -1,597 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        - libs/sidenav/src/lib/components/menu-item/menu-item.component.ts -

                                                                                                                                                                                                                                                                                                                        - - - -

                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        Implements

                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        - OnInit -

                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        selectorngx-menu-item
                                                                                                                                                                                                                                                                                                                        styleUrls./menu-item.component.scss
                                                                                                                                                                                                                                                                                                                        templateUrl./menu-item.component.html
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        Inputs
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        -constructor() -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        Inputs

                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        - - iconOnly - -

                                                                                                                                                                                                                                                                                                                        - Type : boolean - -

                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        - - item - -

                                                                                                                                                                                                                                                                                                                        - Type : MenuItem - -

                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        - - secondaryMenu - -

                                                                                                                                                                                                                                                                                                                        - Default value : false -

                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        - - - - chechForChildMenu - - - -
                                                                                                                                                                                                                                                                                                                        -chechForChildMenu() -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - Returns : boolean - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        - - - - getHeight - - - -
                                                                                                                                                                                                                                                                                                                        -getHeight() -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - Returns : string - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                        -ngOnInit() -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        - - - - openLink - - - -
                                                                                                                                                                                                                                                                                                                        -openLink() -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        import { Component, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                        -import { MenuItem } from '@ngx-starter-kit/navigator';
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                                                                                        -  selector: 'ngx-menu-item',
                                                                                                                                                                                                                                                                                                                        -  templateUrl: './menu-item.component.html',
                                                                                                                                                                                                                                                                                                                        -  styleUrls: ['./menu-item.component.scss'],
                                                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                                                        -export class MenuItemComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                                                                        -  item: MenuItem;
                                                                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                                                                        -  iconOnly: boolean;
                                                                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                                                                        -  secondaryMenu = false;
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -  constructor() {}
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -  openLink() {
                                                                                                                                                                                                                                                                                                                        -    this.item.open = this.item.open;
                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                        -  getHeight() {
                                                                                                                                                                                                                                                                                                                        -    if (this.item.open === false) {
                                                                                                                                                                                                                                                                                                                        -      return '48px';
                                                                                                                                                                                                                                                                                                                        -    } else {
                                                                                                                                                                                                                                                                                                                        -      if (this.item && this.item.children) {
                                                                                                                                                                                                                                                                                                                        -        const height = this.item.children.length * 56 + 56 + 'px';
                                                                                                                                                                                                                                                                                                                        -        return height;
                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -  chechForChildMenu() {
                                                                                                                                                                                                                                                                                                                        -    return !!(this.item && this.item.children);
                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        <mat-nav-list  [style.height]="getHeight()" [ngClass]="{'secondaryMenu': secondaryMenu}">
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -  <mat-list-item *ngIf = "item.link == undefined" (click)="item.open = !item.open" >
                                                                                                                                                                                                                                                                                                                        -    <mat-icon matListIcon iconsmall  >{{item.icon}} </mat-icon>
                                                                                                                                                                                                                                                                                                                        -    <h3 matLine *ngIf="!iconOnly">{{ item.name }} </h3>
                                                                                                                                                                                                                                                                                                                        -    <mat-chip-list *ngIf="item?.badge && !iconOnly">
                                                                                                                                                                                                                                                                                                                        -      <mat-chip >{{item?.badge?.value}} </mat-chip>
                                                                                                                                                                                                                                                                                                                        -    </mat-chip-list>
                                                                                                                                                                                                                                                                                                                        -    <mat-icon *ngIf="chechForChildMenu()" class="sidenav-dropdown-indicator rotate " [ngClass]="{'indicateOpen':item.open}"> expand_more</mat-icon>
                                                                                                                                                                                                                                                                                                                        -  </mat-list-item>
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -  <mat-list-item *ngIf = "item.link != undefined" (click)="item.open = !item.open" [routerLink]="[item.link]">
                                                                                                                                                                                                                                                                                                                        -    <mat-icon matListIcon iconsmall  >{{item.icon}} </mat-icon>
                                                                                                                                                                                                                                                                                                                        -    <h3 matLine *ngIf="!iconOnly">{{ item.name }} </h3>
                                                                                                                                                                                                                                                                                                                        -  </mat-list-item>
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -  <ngx-menu-item *ngFor="let subItem of item?.children" [item]="subItem" [iconOnly]="iconOnly" [secondaryMenu]="true"> </ngx-menu-item>
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -</mat-nav-list>
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        - ./menu-item.component.scss -

                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/NotFoundComponent.html b/docs/components/NotFoundComponent.html deleted file mode 100644 index 803d7abde..000000000 --- a/docs/components/NotFoundComponent.html +++ /dev/null @@ -1,500 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          - libs/not-found/src/lib/containers/not-found/not-found.component.ts -

                                                                                                                                                                                                                                                                                                                          - - - -

                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          Implements

                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          - OnInit - OnDestroy -

                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          selectorngx-not-found
                                                                                                                                                                                                                                                                                                                          styleUrls./not-found.component.scss
                                                                                                                                                                                                                                                                                                                          templateUrl./not-found.component.html
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          -constructor(renderer: Renderer2) -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                          renderer - Renderer2 - - No -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                                                                          -ngOnDestroy() -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                          -ngOnInit() -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          import { Component, OnDestroy, OnInit, Renderer2 } from '@angular/core';
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-not-found',
                                                                                                                                                                                                                                                                                                                          -  templateUrl: './not-found.component.html',
                                                                                                                                                                                                                                                                                                                          -  styleUrls: ['./not-found.component.scss'],
                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                          -export class NotFoundComponent implements OnInit, OnDestroy {
                                                                                                                                                                                                                                                                                                                          -  constructor(private renderer: Renderer2) {}
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                          -    this.renderer.removeClass(document.body, 'mat-typography');
                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                          -  ngOnDestroy(): void {
                                                                                                                                                                                                                                                                                                                          -    this.renderer.addClass(document.body, 'mat-typography');
                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          <div class="page-wrap height-100 default-bg">
                                                                                                                                                                                                                                                                                                                          -  <div class="app-error">
                                                                                                                                                                                                                                                                                                                          -    <div class="fix">
                                                                                                                                                                                                                                                                                                                          -      <mat-icon class="error-icon" color="warn">error</mat-icon>
                                                                                                                                                                                                                                                                                                                          -      <div class="error-text">
                                                                                                                                                                                                                                                                                                                          -        <h1 class="error-title">404</h1>
                                                                                                                                                                                                                                                                                                                          -        <div class="error-subtitle">Page Not Found!</div>
                                                                                                                                                                                                                                                                                                                          -      </div>
                                                                                                                                                                                                                                                                                                                          -    </div>
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -    <div class="error-actions">
                                                                                                                                                                                                                                                                                                                          -      <button
                                                                                                                                                                                                                                                                                                                          -        mat-raised-button
                                                                                                                                                                                                                                                                                                                          -        color="primary"
                                                                                                                                                                                                                                                                                                                          -        class="mb-1"
                                                                                                                                                                                                                                                                                                                          -        [routerLink]="['/dashboard']">Back to Dashboard</button>
                                                                                                                                                                                                                                                                                                                          -      <button
                                                                                                                                                                                                                                                                                                                          -        mat-raised-button
                                                                                                                                                                                                                                                                                                                          -        color="warn">Report this Problem</button>
                                                                                                                                                                                                                                                                                                                          -    </div>
                                                                                                                                                                                                                                                                                                                          -  </div>
                                                                                                                                                                                                                                                                                                                          -</div>
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          - ./not-found.component.scss -

                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          .default-bg {
                                                                                                                                                                                                                                                                                                                          -  background: #ffffff !important;
                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                          -.height-100 {
                                                                                                                                                                                                                                                                                                                          -  min-height: 100vh;
                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                          -.page-wrap {
                                                                                                                                                                                                                                                                                                                          -  display: flex;
                                                                                                                                                                                                                                                                                                                          -  align-items: center;
                                                                                                                                                                                                                                                                                                                          -  padding: 40px 1rem;
                                                                                                                                                                                                                                                                                                                          -  height: 100%;
                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -.app-error {
                                                                                                                                                                                                                                                                                                                          -  text-align: center;
                                                                                                                                                                                                                                                                                                                          -  width: 320px;
                                                                                                                                                                                                                                                                                                                          -  max-width: 320px;
                                                                                                                                                                                                                                                                                                                          -  margin: 0 auto;
                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                          -.app-error {
                                                                                                                                                                                                                                                                                                                          -  .error-icon {
                                                                                                                                                                                                                                                                                                                          -    height: 120px;
                                                                                                                                                                                                                                                                                                                          -    width: 120px;
                                                                                                                                                                                                                                                                                                                          -    font-size: 120px;
                                                                                                                                                                                                                                                                                                                          -    float: left;
                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                          -  .error-text {
                                                                                                                                                                                                                                                                                                                          -    float: right;
                                                                                                                                                                                                                                                                                                                          -    width: 200px;
                                                                                                                                                                                                                                                                                                                          -    max-width: 200px;
                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                          -  .error-title {
                                                                                                                                                                                                                                                                                                                          -    font-size: 5rem;
                                                                                                                                                                                                                                                                                                                          -    font-weight: 900;
                                                                                                                                                                                                                                                                                                                          -    margin: 0;
                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                          -  .error-subtitle {
                                                                                                                                                                                                                                                                                                                          -    font-size: 1.5rem;
                                                                                                                                                                                                                                                                                                                          -    font-weight: 300;
                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                          -  .error-actions {
                                                                                                                                                                                                                                                                                                                          -    width: 100%;
                                                                                                                                                                                                                                                                                                                          -    overflow: hidden;
                                                                                                                                                                                                                                                                                                                          -    min-height: 54px;
                                                                                                                                                                                                                                                                                                                          -    margin-top: 100px;
                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -.mb-1 {
                                                                                                                                                                                                                                                                                                                          -  margin-bottom: 1rem !important;
                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -.fix {
                                                                                                                                                                                                                                                                                                                          -  position: relative;
                                                                                                                                                                                                                                                                                                                          -  overflow: hidden;
                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/NotificationsComponent.html b/docs/components/NotificationsComponent.html deleted file mode 100644 index 431e4a7d0..000000000 --- a/docs/components/NotificationsComponent.html +++ /dev/null @@ -1,1064 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            - libs/notifications/src/lib/notifications.component.ts -

                                                                                                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            - OnInit -

                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                                                                                            selectorngx-notifications
                                                                                                                                                                                                                                                                                                                            styleUrls./notifications.component.scss
                                                                                                                                                                                                                                                                                                                            templateUrl./notifications.component.html
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            -constructor(store: Store) -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                            store - Store - - No -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - dismiss - - - -
                                                                                                                                                                                                                                                                                                                            -dismiss(notification, event) -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            NameOptional
                                                                                                                                                                                                                                                                                                                            notification - No -
                                                                                                                                                                                                                                                                                                                            event - No -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - markAllAsRead - - - -
                                                                                                                                                                                                                                                                                                                            -markAllAsRead() -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - markAsRead - - - -
                                                                                                                                                                                                                                                                                                                            -markAsRead(notification) -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            NameOptional
                                                                                                                                                                                                                                                                                                                            notification - No -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - onClickOutside - - - -
                                                                                                                                                                                                                                                                                                                            -onClickOutside() -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - toggleDropdown - - - -
                                                                                                                                                                                                                                                                                                                            -toggleDropdown() -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - isOpen - - - -
                                                                                                                                                                                                                                                                                                                            - isOpen: boolean - -
                                                                                                                                                                                                                                                                                                                            - Type : boolean - -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - notifications$ - - - -
                                                                                                                                                                                                                                                                                                                            - notifications$: Observable<Notification> - -
                                                                                                                                                                                                                                                                                                                            - Type : Observable<Notification> - -
                                                                                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                                                                                            - - @Select(NotificationsState)
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            - - - - unReadCount$ - - - -
                                                                                                                                                                                                                                                                                                                            - unReadCount$: Observable<number> - -
                                                                                                                                                                                                                                                                                                                            - Type : Observable<number> - -
                                                                                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                                                                                            - - @Select(NotificationsState.unReadCount)
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                            -import { Select, Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                            -import { listFadeAnimation } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                            -import { Notification } from './notification.model';
                                                                                                                                                                                                                                                                                                                            -import { NotificationsState } from './notifications.state';
                                                                                                                                                                                                                                                                                                                            -import { DeleteNotification, FetchNotifications, MarkAllAsRead, MarkAsRead } from './notifications.actions';
                                                                                                                                                                                                                                                                                                                            -import { SendWebSocketAction } from '@ngx-starter-kit/socketio-plugin';
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-notifications',
                                                                                                                                                                                                                                                                                                                            -  templateUrl: './notifications.component.html',
                                                                                                                                                                                                                                                                                                                            -  styleUrls: ['./notifications.component.scss'],
                                                                                                                                                                                                                                                                                                                            -  animations: [listFadeAnimation],
                                                                                                                                                                                                                                                                                                                            -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                            -export class NotificationsComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                            -  @Select(NotificationsState)
                                                                                                                                                                                                                                                                                                                            -  notifications$: Observable<Notification>;
                                                                                                                                                                                                                                                                                                                            -  @Select(NotificationsState.unReadCount)
                                                                                                                                                                                                                                                                                                                            -  unReadCount$: Observable<number>;
                                                                                                                                                                                                                                                                                                                            -  isOpen: boolean;
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  constructor(private store: Store) {}
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                            -    this.store.dispatch(new FetchNotifications());
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  markAsRead(notification) {
                                                                                                                                                                                                                                                                                                                            -    this.store.dispatch(new MarkAsRead(notification));
                                                                                                                                                                                                                                                                                                                            -    notification.read = true;
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  dismiss(notification, event) {
                                                                                                                                                                                                                                                                                                                            -    event.stopPropagation();
                                                                                                                                                                                                                                                                                                                            -    this.store.dispatch(new DeleteNotification(notification));
                                                                                                                                                                                                                                                                                                                            -    this.store.dispatch(new SendWebSocketAction(new DeleteNotification(notification)));
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  toggleDropdown() {
                                                                                                                                                                                                                                                                                                                            -    this.isOpen = !this.isOpen;
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  onClickOutside() {
                                                                                                                                                                                                                                                                                                                            -    this.isOpen = false;
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  markAllAsRead() {
                                                                                                                                                                                                                                                                                                                            -    this.store.dispatch(new MarkAllAsRead());
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            <div class="notification-container" (ngxClickOutside)="onClickOutside()"
                                                                                                                                                                                                                                                                                                                            -     fxFlex="grow" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  <button class="button" type="button" mat-button (click)="toggleDropdown()" [class.open]="isOpen" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                            -    <span *ngIf="(unReadCount$ | async) > 0;then withBadge else withOutBadge"></span>
                                                                                                                                                                                                                                                                                                                            -    <ng-template #withBadge>
                                                                                                                                                                                                                                                                                                                            -      <mat-icon matBadge="{{ unReadCount$ | async }}" matBadgePosition="above after" matBadgeColor="accent">notifications_active</mat-icon>
                                                                                                                                                                                                                                                                                                                            -    </ng-template>
                                                                                                                                                                                                                                                                                                                            -    <ng-template #withOutBadge><mat-icon>notifications_none</mat-icon></ng-template>
                                                                                                                                                                                                                                                                                                                            -  </button>
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  <div class="dropdown mat-elevation-z1" [class.open]="isOpen">
                                                                                                                                                                                                                                                                                                                            -    <div class="card">
                                                                                                                                                                                                                                                                                                                            -      <div class="header" fxLayout="row" fxLayoutAlign="space-between center">
                                                                                                                                                                                                                                                                                                                            -        <div class="title">
                                                                                                                                                                                                                                                                                                                            -          <div class="name">Notifications</div>
                                                                                                                                                                                                                                                                                                                            -          <div class="extra">You have {{ unReadCount$ | async }} new notifications.</div>
                                                                                                                                                                                                                                                                                                                            -        </div>
                                                                                                                                                                                                                                                                                                                            -        <button type="button" mat-icon-button>
                                                                                                                                                                                                                                                                                                                            -          <mat-icon class="icon">settings</mat-icon>
                                                                                                                                                                                                                                                                                                                            -        </button>
                                                                                                                                                                                                                                                                                                                            -      </div>
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -      <ng-container *ngLet="(notifications$ | async) as notifications">
                                                                                                                                                                                                                                                                                                                            -      <ng-container *ngIf="notifications?.length !== 0; then thenBlock else elseBlock;"></ng-container>
                                                                                                                                                                                                                                                                                                                            -      <ng-template #thenBlock>
                                                                                                                                                                                                                                                                                                                            -        <perfect-scrollbar class="content">
                                                                                                                                                                                                                                                                                                                            -          <ng-container *ngFor="let notification of notifications; last as isLast">
                                                                                                                                                                                                                                                                                                                            -            <div class="notification"
                                                                                                                                                                                                                                                                                                                            -                 (click)="markAsRead(notification)"
                                                                                                                                                                                                                                                                                                                            -                 [ngClass]="notification.color" [class.read]="notification.read"
                                                                                                                                                                                                                                                                                                                            -                 fxLayout="row" fxLayoutAlign="start center"
                                                                                                                                                                                                                                                                                                                            -                 matRipple [@listFade]>
                                                                                                                                                                                                                                                                                                                            -              <mat-icon class="icon">{{ notification.icon }}</mat-icon>
                                                                                                                                                                                                                                                                                                                            -              <div class="title" fxLayout="column">
                                                                                                                                                                                                                                                                                                                            -                <div class="name">{{ notification.message }}</div>
                                                                                                                                                                                                                                                                                                                            -                <div class="time">{{ notification.createdAt | amTimeAgo }}</div>
                                                                                                                                                                                                                                                                                                                            -              </div>
                                                                                                                                                                                                                                                                                                                            -              <span fxFlex></span>
                                                                                                                                                                                                                                                                                                                            -              <button (click)="dismiss(notification, $event)" type="button" mat-icon-button>
                                                                                                                                                                                                                                                                                                                            -                <mat-icon class="close">close</mat-icon>
                                                                                                                                                                                                                                                                                                                            -              </button>
                                                                                                                                                                                                                                                                                                                            -            </div>
                                                                                                                                                                                                                                                                                                                            -            <div class="divider" *ngIf="!isLast"></div>
                                                                                                                                                                                                                                                                                                                            -          </ng-container>
                                                                                                                                                                                                                                                                                                                            -        </perfect-scrollbar>
                                                                                                                                                                                                                                                                                                                            -      </ng-template>
                                                                                                                                                                                                                                                                                                                            -      <ng-template #elseBlock>
                                                                                                                                                                                                                                                                                                                            -        <div class="empty" fxLayout="row" fxLayoutAlign="center center" [@listFade]>
                                                                                                                                                                                                                                                                                                                            -          All fine! No notifications right now.
                                                                                                                                                                                                                                                                                                                            -        </div>
                                                                                                                                                                                                                                                                                                                            -      </ng-template>
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -      <div class="footer" fxLayout="row" fxLayoutAlign="center center">
                                                                                                                                                                                                                                                                                                                            -        <div class="action" (click)="markAllAsRead()">Mark all as read</div>
                                                                                                                                                                                                                                                                                                                            -      </div>
                                                                                                                                                                                                                                                                                                                            -      </ng-container>
                                                                                                                                                                                                                                                                                                                            -    </div>
                                                                                                                                                                                                                                                                                                                            -  </div>
                                                                                                                                                                                                                                                                                                                            -</div>
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            - ./notifications.component.scss -

                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            @import 'var';
                                                                                                                                                                                                                                                                                                                            -@import 'constants';
                                                                                                                                                                                                                                                                                                                            -@import '~@angular/material/theming';
                                                                                                                                                                                                                                                                                                                            -@import 'fu/var';
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -$config: mat-typography-config();
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -.notification-container {
                                                                                                                                                                                                                                                                                                                            -  height: 100%;
                                                                                                                                                                                                                                                                                                                            -  position: relative;
                                                                                                                                                                                                                                                                                                                            -  align-items: center;
                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -.button {
                                                                                                                                                                                                                                                                                                                            -  height: 100%;
                                                                                                                                                                                                                                                                                                                            -  padding: 0;
                                                                                                                                                                                                                                                                                                                            -  min-width: $toolbar-button-width;
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  .icon {
                                                                                                                                                                                                                                                                                                                            -    color: $toolbar-button-icon-color;
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -.dropdown {
                                                                                                                                                                                                                                                                                                                            -  background: white;
                                                                                                                                                                                                                                                                                                                            -  position: absolute;
                                                                                                                                                                                                                                                                                                                            -  top: $mat-toolbar-height-desktop;
                                                                                                                                                                                                                                                                                                                            -  right: 0px;
                                                                                                                                                                                                                                                                                                                            -  min-width: 350px;
                                                                                                                                                                                                                                                                                                                            -  z-index: -1;
                                                                                                                                                                                                                                                                                                                            -  transform: translateY(0) scale(0);
                                                                                                                                                                                                                                                                                                                            -  transform-origin: top right;
                                                                                                                                                                                                                                                                                                                            -  visibility: hidden;
                                                                                                                                                                                                                                                                                                                            -  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                                                                                                                                                                                                                                                                                                                            -  @include mat-typography-level-to-styles($config, subheading-1);
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  @media ($mat-xsmall) {
                                                                                                                                                                                                                                                                                                                            -    top: $mat-toolbar-height-mobile-portrait;
                                                                                                                                                                                                                                                                                                                            -    min-width: 50vw;
                                                                                                                                                                                                                                                                                                                            -    right: 5px;
                                                                                                                                                                                                                                                                                                                            -    transform: translateY(0);
                                                                                                                                                                                                                                                                                                                            -    visibility: hidden;
                                                                                                                                                                                                                                                                                                                            -    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  &.open {
                                                                                                                                                                                                                                                                                                                            -    transform: translateY(0) scale(1);
                                                                                                                                                                                                                                                                                                                            -    visibility: visible;
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -  .card {
                                                                                                                                                                                                                                                                                                                            -    .header {
                                                                                                                                                                                                                                                                                                                            -      background: #eeeeee;
                                                                                                                                                                                                                                                                                                                            -      min-height: 54px;
                                                                                                                                                                                                                                                                                                                            -      padding-left: 16px;
                                                                                                                                                                                                                                                                                                                            -      padding-right: 8px;
                                                                                                                                                                                                                                                                                                                            -      color: #555;
                                                                                                                                                                                                                                                                                                                            -      display: flex;
                                                                                                                                                                                                                                                                                                                            -      justify-content: flex-start;
                                                                                                                                                                                                                                                                                                                            -      align-items: center;
                                                                                                                                                                                                                                                                                                                            -      align-content: center;
                                                                                                                                                                                                                                                                                                                            -      border-bottom: 1px solid #e0e0e0;
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -      .extra {
                                                                                                                                                                                                                                                                                                                            -        font-size: 12px;
                                                                                                                                                                                                                                                                                                                            -        color: #888;
                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -    .content {
                                                                                                                                                                                                                                                                                                                            -      overflow: hidden;
                                                                                                                                                                                                                                                                                                                            -      max-height: 256px;
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -      .notification {
                                                                                                                                                                                                                                                                                                                            -        min-height: 64px;
                                                                                                                                                                                                                                                                                                                            -        padding: 0 16px 0 14px;
                                                                                                                                                                                                                                                                                                                            -        position: relative;
                                                                                                                                                                                                                                                                                                                            -        color: #666;
                                                                                                                                                                                                                                                                                                                            -        cursor: pointer;
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -        .icon {
                                                                                                                                                                                                                                                                                                                            -          height: 28px;
                                                                                                                                                                                                                                                                                                                            -          width: 28px;
                                                                                                                                                                                                                                                                                                                            -          line-height: 28px;
                                                                                                                                                                                                                                                                                                                            -          font-size: 18px;
                                                                                                                                                                                                                                                                                                                            -          margin-right: 13px;
                                                                                                                                                                                                                                                                                                                            -          text-align: center;
                                                                                                                                                                                                                                                                                                                            -          border-radius: 50%;
                                                                                                                                                                                                                                                                                                                            -          background: #fff;
                                                                                                                                                                                                                                                                                                                            -          color: #888;
                                                                                                                                                                                                                                                                                                                            -          border: 1px solid #eee;
                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -        .title {
                                                                                                                                                                                                                                                                                                                            -          //font-weight: 500;
                                                                                                                                                                                                                                                                                                                            -          font-size: 14px;
                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -        .time {
                                                                                                                                                                                                                                                                                                                            -          font-size: 12px;
                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -        .close {
                                                                                                                                                                                                                                                                                                                            -          font-size: 18px;
                                                                                                                                                                                                                                                                                                                            -          width: 18px;
                                                                                                                                                                                                                                                                                                                            -          height: 18px;
                                                                                                                                                                                                                                                                                                                            -          line-height: 18px;
                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -        &.primary {
                                                                                                                                                                                                                                                                                                                            -          .icon {
                                                                                                                                                                                                                                                                                                                            -            background: $color__primary;
                                                                                                                                                                                                                                                                                                                            -            color: $color__primary-contrast;
                                                                                                                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -        &.accent {
                                                                                                                                                                                                                                                                                                                            -          .icon {
                                                                                                                                                                                                                                                                                                                            -            background: $color__accent;
                                                                                                                                                                                                                                                                                                                            -            color: $color__accent-contrast;
                                                                                                                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -        &.warn {
                                                                                                                                                                                                                                                                                                                            -          .icon {
                                                                                                                                                                                                                                                                                                                            -            background: $color__warn;
                                                                                                                                                                                                                                                                                                                            -            color: $color__warn-contrast;
                                                                                                                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -        &.read {
                                                                                                                                                                                                                                                                                                                            -          color: #999;
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -          .name {
                                                                                                                                                                                                                                                                                                                            -            font-weight: normal;
                                                                                                                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -    .empty {
                                                                                                                                                                                                                                                                                                                            -      display: flex;
                                                                                                                                                                                                                                                                                                                            -      flex-direction: row;
                                                                                                                                                                                                                                                                                                                            -      justify-content: center;
                                                                                                                                                                                                                                                                                                                            -      align-items: center;
                                                                                                                                                                                                                                                                                                                            -      align-content: center;
                                                                                                                                                                                                                                                                                                                            -      padding-top: $spacing;
                                                                                                                                                                                                                                                                                                                            -      padding-bottom: $spacing;
                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -    .footer {
                                                                                                                                                                                                                                                                                                                            -      min-height: 42px;
                                                                                                                                                                                                                                                                                                                            -      border-top: 1px solid #eee;
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -      .action {
                                                                                                                                                                                                                                                                                                                            -        cursor: pointer;
                                                                                                                                                                                                                                                                                                                            -        color: #aaa;
                                                                                                                                                                                                                                                                                                                            -        text-align: center;
                                                                                                                                                                                                                                                                                                                            -        font-size: 13px;
                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -    .divider {
                                                                                                                                                                                                                                                                                                                            -      width: calc(100% - 30px);
                                                                                                                                                                                                                                                                                                                            -      height: 1px;
                                                                                                                                                                                                                                                                                                                            -      background: #eee;
                                                                                                                                                                                                                                                                                                                            -      margin: 0 16px 0 14px;
                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/OverviewComponent.html b/docs/components/OverviewComponent.html deleted file mode 100644 index 10a69bc32..000000000 --- a/docs/components/OverviewComponent.html +++ /dev/null @@ -1,431 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              - libs/dashboard/src/lib/containers/overview/overview.component.ts -

                                                                                                                                                                                                                                                                                                                              - - - -

                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              - OnInit -

                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                              selectorngx-overview
                                                                                                                                                                                                                                                                                                                              styleUrls./overview.component.scss
                                                                                                                                                                                                                                                                                                                              templateUrl./overview.component.html
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                              -constructor() -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                              - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                              -ngOnInit() -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                              - - - - crumbs - - - -
                                                                                                                                                                                                                                                                                                                              - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                                              - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                                              - Default value : [{ name: 'Dashboard', link: '/dashboard' }] -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                              -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-overview',
                                                                                                                                                                                                                                                                                                                              -  templateUrl: './overview.component.html',
                                                                                                                                                                                                                                                                                                                              -  styleUrls: ['./overview.component.scss'],
                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                              -export class OverviewComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                              -  crumbs: ReadonlyArray<Crumb> = [{ name: 'Dashboard', link: '/dashboard' }];
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -  constructor() {}
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              <!--<div class="default-primary-header">-->
                                                                                                                                                                                                                                                                                                                              -<!--<h1>Overview</h1>-->
                                                                                                                                                                                                                                                                                                                              -<!--</div>-->
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -<!--<div fxLayout fxLayoutAlign="center center">-->
                                                                                                                                                                                                                                                                                                                              -  <!--<mat-card fxFlex="30%">-->
                                                                                                                                                                                                                                                                                                                              -    <!--<mat-card-title>Search</mat-card-title>-->
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -    <!--<mat-card-content fxLayout="column">-->
                                                                                                                                                                                                                                                                                                                              -      <!--<mat-form-field>-->
                                                                                                                                                                                                                                                                                                                              -        <!--<input matInput placeholder="Search">-->
                                                                                                                                                                                                                                                                                                                              -      <!--</mat-form-field>-->
                                                                                                                                                                                                                                                                                                                              -    <!--</mat-card-content>-->
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -    <!--<button mat-raised-button color="accent">Search</button>-->
                                                                                                                                                                                                                                                                                                                              -  <!--</mat-card>-->
                                                                                                                                                                                                                                                                                                                              -<!--</div>-->
                                                                                                                                                                                                                                                                                                                              -<ngx-breadcrumbs title="Overview" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              - ./overview.component.scss -

                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              :host {
                                                                                                                                                                                                                                                                                                                              -  display: block;
                                                                                                                                                                                                                                                                                                                              -  padding: 1.5%;
                                                                                                                                                                                                                                                                                                                              -  position: relative;
                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/QuickInfoWidgetComponent.html b/docs/components/QuickInfoWidgetComponent.html deleted file mode 100644 index 2225d527b..000000000 --- a/docs/components/QuickInfoWidgetComponent.html +++ /dev/null @@ -1,522 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                - libs/widgets/src/lib/components/quick-info-widget/quick-info-widget.component.ts -

                                                                                                                                                                                                                                                                                                                                - - - -

                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                - OnInit -

                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                selectorngx-quick-info-widget
                                                                                                                                                                                                                                                                                                                                styleUrls./quick-info-widget.component.scss
                                                                                                                                                                                                                                                                                                                                templateUrl./quick-info-widget.component.html
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                Inputs
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                Inputs

                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                - - background - -

                                                                                                                                                                                                                                                                                                                                - Type : string - -

                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                - - color - -

                                                                                                                                                                                                                                                                                                                                - Type : string - -

                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                - - icon - -

                                                                                                                                                                                                                                                                                                                                - Type : string - -

                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                - - label - -

                                                                                                                                                                                                                                                                                                                                - Type : string - -

                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                - - value - -

                                                                                                                                                                                                                                                                                                                                - Type : string - -

                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                import { Component, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-quick-info-widget',
                                                                                                                                                                                                                                                                                                                                -  templateUrl: './quick-info-widget.component.html',
                                                                                                                                                                                                                                                                                                                                -  styleUrls: ['./quick-info-widget.component.scss'],
                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                -export class QuickInfoWidgetComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                                -  value: string;
                                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                                -  label: string;
                                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                                -  background: string;
                                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                                -  color: string;
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                                -  icon: string;
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -  constructor() {}
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                <div class="quick-info-widget" fxLayout="row" fxLayoutAlign="space-between center" fxFlex="grow"
                                                                                                                                                                                                                                                                                                                                -     [style.background]="background" [style.color]="color">
                                                                                                                                                                                                                                                                                                                                -  <div fxLayout="column">
                                                                                                                                                                                                                                                                                                                                -    <div class="value">{{ value }}</div>
                                                                                                                                                                                                                                                                                                                                -    <div class="label">{{ label }}</div>
                                                                                                                                                                                                                                                                                                                                -  </div>
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -  <mat-icon class="icon">{{ icon }}</mat-icon>
                                                                                                                                                                                                                                                                                                                                -</div>
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                - ./quick-info-widget.component.scss -

                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                @import 'fu/var';
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -.quick-info-widget {
                                                                                                                                                                                                                                                                                                                                -  background: white;
                                                                                                                                                                                                                                                                                                                                -  padding: $spacing;
                                                                                                                                                                                                                                                                                                                                -  border-radius: $border-radius;
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -  @include mat-elevation($card-elevation);
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -  .value {
                                                                                                                                                                                                                                                                                                                                -    @include mat-typography-level-to-styles($config, display-1);
                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -  .label {
                                                                                                                                                                                                                                                                                                                                -    @include mat-typography-level-to-styles($config, body-1);
                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -  .icon {
                                                                                                                                                                                                                                                                                                                                -    font-size: 48px;
                                                                                                                                                                                                                                                                                                                                -    height: 48px;
                                                                                                                                                                                                                                                                                                                                -    width: 48px;
                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/QuickpanelComponent.html b/docs/components/QuickpanelComponent.html deleted file mode 100644 index 46a811ebd..000000000 --- a/docs/components/QuickpanelComponent.html +++ /dev/null @@ -1,800 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  - libs/quickpanel/src/lib/quickpanel.component.ts -

                                                                                                                                                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  - OnInit -

                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  selectorngx-quickpanel
                                                                                                                                                                                                                                                                                                                                  styleUrls./quickpanel.component.scss
                                                                                                                                                                                                                                                                                                                                  templateUrl./quickpanel.component.html
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  -constructor() -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                  -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  - - - - events - - - -
                                                                                                                                                                                                                                                                                                                                  - events: [] - -
                                                                                                                                                                                                                                                                                                                                  - Type : [] - -
                                                                                                                                                                                                                                                                                                                                  - Default value : [ - { - id: 'id', - title: 'Business Meeting', - time: '05:00 PM', - state: 'state', - }, - { - id: 'id', - title: 'Ask for a Vacation', - time: '05:00 PM', - state: 'state', - }, - { - id: 'id', - title: 'Dinner with Micheal', - time: '05:00 PM', - state: 'state', - }, - { - id: 'id', - title: 'Deadline for Project ABC', - time: '05:00 PM', - state: 'state', - }, - ] -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  - - - - messages - - - -
                                                                                                                                                                                                                                                                                                                                  - messages: [] - -
                                                                                                                                                                                                                                                                                                                                  - Type : [] - -
                                                                                                                                                                                                                                                                                                                                  - Default value : [ - { from: 'Catherin', img: 'assets/img/avatars/4.jpg', subject: 'Shopping', content: 'hi there??' }, - { from: 'Jack', img: 'assets/img/avatars/16.jpg', subject: 'Function', content: 'yes' }, - { from: 'Karina', img: 'assets/img/avatars/1.jpg', subject: 'Get together', content: 'nice' }, - { from: 'Micheal', img: 'assets/img/avatars/11.jpg', subject: 'Trip', content: 'ya.. I will' }, - { from: 'Ashik', img: 'assets/img/avatars/19.jpg', subject: 'Meeting', content: 'Time??' }, - { from: 'Joy', img: 'assets/img/avatars/10.jpg', subject: 'Party', content: 'Lets enjoy' }, - ] -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  - - - - today - - - -
                                                                                                                                                                                                                                                                                                                                  - today: number - -
                                                                                                                                                                                                                                                                                                                                  - Type : number - -
                                                                                                                                                                                                                                                                                                                                  - Default value : Date.now() -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  - - - - todolists - - - -
                                                                                                                                                                                                                                                                                                                                  - todolists: [] - -
                                                                                                                                                                                                                                                                                                                                  - Type : [] - -
                                                                                                                                                                                                                                                                                                                                  - Default value : [ - { - id: 'id', - title: 'Get to know Angular more', - time: 'Added:4 days ago', - }, - { - id: 'id', - title: 'Configure new Router', - time: 'Added:4 days ago', - }, - { - id: 'id', - title: 'Invite Joy to play Carroms', - time: 'Added:4 days ago', - }, - { - id: 'id', - title: 'Check SRS of Project X', - time: 'Added:4 days ago', - }, - ] -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                  -import * as moment from 'moment';
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-quickpanel',
                                                                                                                                                                                                                                                                                                                                  -  templateUrl: './quickpanel.component.html',
                                                                                                                                                                                                                                                                                                                                  -  styleUrls: ['./quickpanel.component.scss'],
                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                  -export class QuickpanelComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                  -  today: number = Date.now();
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -  events = [
                                                                                                                                                                                                                                                                                                                                  -    {
                                                                                                                                                                                                                                                                                                                                  -      id: 'id',
                                                                                                                                                                                                                                                                                                                                  -      title: 'Business Meeting',
                                                                                                                                                                                                                                                                                                                                  -      time: '05:00 PM',
                                                                                                                                                                                                                                                                                                                                  -      state: 'state',
                                                                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                                                                  -    {
                                                                                                                                                                                                                                                                                                                                  -      id: 'id',
                                                                                                                                                                                                                                                                                                                                  -      title: 'Ask for a Vacation',
                                                                                                                                                                                                                                                                                                                                  -      time: '05:00 PM',
                                                                                                                                                                                                                                                                                                                                  -      state: 'state',
                                                                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                                                                  -    {
                                                                                                                                                                                                                                                                                                                                  -      id: 'id',
                                                                                                                                                                                                                                                                                                                                  -      title: 'Dinner with Micheal',
                                                                                                                                                                                                                                                                                                                                  -      time: '05:00 PM',
                                                                                                                                                                                                                                                                                                                                  -      state: 'state',
                                                                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                                                                  -    {
                                                                                                                                                                                                                                                                                                                                  -      id: 'id',
                                                                                                                                                                                                                                                                                                                                  -      title: 'Deadline for Project ABC',
                                                                                                                                                                                                                                                                                                                                  -      time: '05:00 PM',
                                                                                                                                                                                                                                                                                                                                  -      state: 'state',
                                                                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                                                                  -  ];
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -  todolists = [
                                                                                                                                                                                                                                                                                                                                  -    {
                                                                                                                                                                                                                                                                                                                                  -      id: 'id',
                                                                                                                                                                                                                                                                                                                                  -      title: 'Get to know Angular more',
                                                                                                                                                                                                                                                                                                                                  -      time: 'Added:4 days ago',
                                                                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                                                                  -    {
                                                                                                                                                                                                                                                                                                                                  -      id: 'id',
                                                                                                                                                                                                                                                                                                                                  -      title: 'Configure new Router',
                                                                                                                                                                                                                                                                                                                                  -      time: 'Added:4 days ago',
                                                                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                                                                  -    {
                                                                                                                                                                                                                                                                                                                                  -      id: 'id',
                                                                                                                                                                                                                                                                                                                                  -      title: 'Invite Joy to play Carroms',
                                                                                                                                                                                                                                                                                                                                  -      time: 'Added:4 days ago',
                                                                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                                                                  -    {
                                                                                                                                                                                                                                                                                                                                  -      id: 'id',
                                                                                                                                                                                                                                                                                                                                  -      title: 'Check SRS of Project X',
                                                                                                                                                                                                                                                                                                                                  -      time: 'Added:4 days ago',
                                                                                                                                                                                                                                                                                                                                  -    },
                                                                                                                                                                                                                                                                                                                                  -  ];
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -  messages = [
                                                                                                                                                                                                                                                                                                                                  -    { from: 'Catherin', img: 'assets/img/avatars/4.jpg', subject: 'Shopping', content: 'hi there??' },
                                                                                                                                                                                                                                                                                                                                  -    { from: 'Jack', img: 'assets/img/avatars/16.jpg', subject: 'Function', content: 'yes' },
                                                                                                                                                                                                                                                                                                                                  -    { from: 'Karina', img: 'assets/img/avatars/1.jpg', subject: 'Get together', content: 'nice' },
                                                                                                                                                                                                                                                                                                                                  -    { from: 'Micheal', img: 'assets/img/avatars/11.jpg', subject: 'Trip', content: 'ya.. I will' },
                                                                                                                                                                                                                                                                                                                                  -    { from: 'Ashik', img: 'assets/img/avatars/19.jpg', subject: 'Meeting', content: 'Time??' },
                                                                                                                                                                                                                                                                                                                                  -    { from: 'Joy', img: 'assets/img/avatars/10.jpg', subject: 'Party', content: 'Lets enjoy' },
                                                                                                                                                                                                                                                                                                                                  -  ];
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -  constructor() {}
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  <mat-tab-group>
                                                                                                                                                                                                                                                                                                                                  -  <mat-tab label="Overview">
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -    <div class="sidebar">
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -      <div fxLayout="column" fxLayoutAlign="center center" style="padding: 30px 0; background: url('assets/img/bg/city1.jpg');">
                                                                                                                                                                                                                                                                                                                                  -        <div style="width: 100%; height: 22%; position: absolute;background: #17161642;z-index: 1"></div>
                                                                                                                                                                                                                                                                                                                                  -        <div class="mat-display-2" style="margin: 0; color: white;z-index: 2">{{today | date:'shortTime'}}</div>
                                                                                                                                                                                                                                                                                                                                  -        <div class="mat-subheading-2" style="margin: 0;color: white;z-index: 2">{{today | date:'EEEE'}}, {{today | date:'MMMM'}} {{today | date:'dd'}}
                                                                                                                                                                                                                                                                                                                                  -        </div>
                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -      <mat-divider></mat-divider>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -      <h3 class="mat-subheading-2" style="margin: 10px 14px 0;">Upcoming Events</h3>
                                                                                                                                                                                                                                                                                                                                  -      <mat-nav-list>
                                                                                                                                                                                                                                                                                                                                  -        <div *ngFor="let event of events;">
                                                                                                                                                                                                                                                                                                                                  -          <mat-list-item>
                                                                                                                                                                                                                                                                                                                                  -            <div fxLayout="row" fxLayoutAlign="start center" mat-ripple>
                                                                                                                                                                                                                                                                                                                                  -              <div fxLayout="column">
                                                                                                                                                                                                                                                                                                                                  -                <div class="mat-ubheading-2"  style="margin: 0; font-weight: bold;">{{ event.title }}</div>
                                                                                                                                                                                                                                                                                                                                  -                <div style="font-size: 12px;">{{ event.time }}</div>
                                                                                                                                                                                                                                                                                                                                  -              </div>
                                                                                                                                                                                                                                                                                                                                  -            </div>
                                                                                                                                                                                                                                                                                                                                  -          </mat-list-item>
                                                                                                                                                                                                                                                                                                                                  -        </div>
                                                                                                                                                                                                                                                                                                                                  -      </mat-nav-list>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -      <mat-divider></mat-divider>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -      <mat-nav-list>
                                                                                                                                                                                                                                                                                                                                  -        <h3 class="mat-subheading-2" style="margin: 10px 14px 0;">Todo-List</h3>
                                                                                                                                                                                                                                                                                                                                  -        <div *ngFor="let todolist of todolists;">
                                                                                                                                                                                                                                                                                                                                  -          <mat-list-item >
                                                                                                                                                                                                                                                                                                                                  -            <div fxLayout="row" fxLayoutAlign="start center" mat-ripple>
                                                                                                                                                                                                                                                                                                                                  -              <div class="title" fxLayout="column" >
                                                                                                                                                                                                                                                                                                                                  -                <div class="mat-ubheading-2"  style="margin: 0; font-weight: bold;">{{ todolist.title }}</div>
                                                                                                                                                                                                                                                                                                                                  -                <div style="font-size: 12px;">{{ todolist.time }}</div>
                                                                                                                                                                                                                                                                                                                                  -              </div>
                                                                                                                                                                                                                                                                                                                                  -            </div>
                                                                                                                                                                                                                                                                                                                                  -          </mat-list-item>
                                                                                                                                                                                                                                                                                                                                  -        </div>
                                                                                                                                                                                                                                                                                                                                  -      </mat-nav-list>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -      <mat-divider></mat-divider>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                  -  </mat-tab>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -  <mat-tab label="Notifications">
                                                                                                                                                                                                                                                                                                                                  -    <div class="sidebar">
                                                                                                                                                                                                                                                                                                                                  -      <div>
                                                                                                                                                                                                                                                                                                                                  -        <h3 style="margin: 10px 14px 0;">Friends</h3>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -        <mat-list>
                                                                                                                                                                                                                                                                                                                                  -          <mat-list-item *ngFor="let message of messages">
                                                                                                                                                                                                                                                                                                                                  -            <img matListAvatar [src]="message.img" alt="...">
                                                                                                                                                                                                                                                                                                                                  -            <h3 matLine style="margin: 0; font-weight: bold;"> {{message.from}} </h3>
                                                                                                                                                                                                                                                                                                                                  -            <p matLine>
                                                                                                                                                                                                                                                                                                                                  -              <span> {{message.subject}} </span>
                                                                                                                                                                                                                                                                                                                                  -              <span> -- {{message.content}} </span>
                                                                                                                                                                                                                                                                                                                                  -            </p>
                                                                                                                                                                                                                                                                                                                                  -          </mat-list-item>
                                                                                                                                                                                                                                                                                                                                  -        </mat-list>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -  </mat-tab>
                                                                                                                                                                                                                                                                                                                                  -</mat-tab-group>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -<mat-divider></mat-divider>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -<mat-nav-list>
                                                                                                                                                                                                                                                                                                                                  -  <div>
                                                                                                                                                                                                                                                                                                                                  -    <h3 class="mat-subheading-2" style="margin: 10px 14px 0;">Server Statistics</h3>
                                                                                                                                                                                                                                                                                                                                  -    <div>
                                                                                                                                                                                                                                                                                                                                  -      <mat-list-item >
                                                                                                                                                                                                                                                                                                                                  -        <h5>CPU Load</h5>
                                                                                                                                                                                                                                                                                                                                  -        <mat-progress-bar
                                                                                                                                                                                                                                                                                                                                  -          [color]="'accent'"
                                                                                                                                                                                                                                                                                                                                  -          [mode]="'buffer'"
                                                                                                                                                                                                                                                                                                                                  -          [value]="'70'"
                                                                                                                                                                                                                                                                                                                                  -          [bufferValue]="100">></mat-progress-bar>
                                                                                                                                                                                                                                                                                                                                  -      </mat-list-item>
                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -    <div>
                                                                                                                                                                                                                                                                                                                                  -      <mat-list-item >
                                                                                                                                                                                                                                                                                                                                  -        <h5>RAM Usage</h5>
                                                                                                                                                                                                                                                                                                                                  -        <mat-progress-bar
                                                                                                                                                                                                                                                                                                                                  -          [color]="'primary'"
                                                                                                                                                                                                                                                                                                                                  -          [mode]="'buffer'"
                                                                                                                                                                                                                                                                                                                                  -          [value]="'47'"
                                                                                                                                                                                                                                                                                                                                  -          [bufferValue]="100"></mat-progress-bar>
                                                                                                                                                                                                                                                                                                                                  -      </mat-list-item>
                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -    <div>
                                                                                                                                                                                                                                                                                                                                  -      <mat-list-item>
                                                                                                                                                                                                                                                                                                                                  -        <h5>CPU Temp</h5>
                                                                                                                                                                                                                                                                                                                                  -        <mat-progress-bar
                                                                                                                                                                                                                                                                                                                                  -          [color]="'warn'"
                                                                                                                                                                                                                                                                                                                                  -          [mode]="'buffer'"
                                                                                                                                                                                                                                                                                                                                  -          [value]="'43'"
                                                                                                                                                                                                                                                                                                                                  -          [bufferValue]="100"></mat-progress-bar>
                                                                                                                                                                                                                                                                                                                                  -      </mat-list-item>
                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -  </div>
                                                                                                                                                                                                                                                                                                                                  -</mat-nav-list>
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  - ./quickpanel.component.scss -

                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  @import '~@angular/material/theming';
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -$config: mat-typography-config();
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -// Custom title that uses all of the typography styles from the `title` level.
                                                                                                                                                                                                                                                                                                                                  -//.unicorn-title {
                                                                                                                                                                                                                                                                                                                                  -//  @include mat-typography-level-to-styles($config, title);
                                                                                                                                                                                                                                                                                                                                  -//}
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -.sidebar {
                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                  -.content {
                                                                                                                                                                                                                                                                                                                                  -  margin-top: 2px;
                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                  -.example-margin {
                                                                                                                                                                                                                                                                                                                                  -  margin: 0 10px;
                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                  -.today {
                                                                                                                                                                                                                                                                                                                                  -  width: 100%;
                                                                                                                                                                                                                                                                                                                                  -  height: 22%;
                                                                                                                                                                                                                                                                                                                                  -  position: absolute;
                                                                                                                                                                                                                                                                                                                                  -  background: '#17161642';
                                                                                                                                                                                                                                                                                                                                  -  z-index: 1;
                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                  -.today-bg {
                                                                                                                                                                                                                                                                                                                                  -  padding: 30px 0;
                                                                                                                                                                                                                                                                                                                                  -  background: url('../../../../apps/webapp/src/assets/img/bg/city1.jpg');
                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                  -.today-time {
                                                                                                                                                                                                                                                                                                                                  -  margin: 0;
                                                                                                                                                                                                                                                                                                                                  -  color: white;
                                                                                                                                                                                                                                                                                                                                  -  z-index: 2;
                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                  -.today-date {
                                                                                                                                                                                                                                                                                                                                  -  margin: 0;
                                                                                                                                                                                                                                                                                                                                  -  color: white;
                                                                                                                                                                                                                                                                                                                                  -  z-index: 2;
                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/QuickpanelToggleComponent.html b/docs/components/QuickpanelToggleComponent.html deleted file mode 100644 index 3eae4d406..000000000 --- a/docs/components/QuickpanelToggleComponent.html +++ /dev/null @@ -1,442 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    - libs/toolbar/src/lib/components/quickpanel-toggle/quickpanel-toggle.component.ts -

                                                                                                                                                                                                                                                                                                                                    - - - -

                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    Implements

                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    - OnInit -

                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    selectorngx-quickpanel-toggle
                                                                                                                                                                                                                                                                                                                                    styleUrls./quickpanel-toggle.component.scss
                                                                                                                                                                                                                                                                                                                                    templateUrl./quickpanel-toggle.component.html
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    Inputs
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    -constructor() -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    Inputs

                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    - - quickpanel - -

                                                                                                                                                                                                                                                                                                                                    - Type : MatSidenav - -

                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                    -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    - - - - openQuickpanel - - - -
                                                                                                                                                                                                                                                                                                                                    -openQuickpanel() -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    import { Component, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                    -import { MatSidenav } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-quickpanel-toggle',
                                                                                                                                                                                                                                                                                                                                    -  templateUrl: './quickpanel-toggle.component.html',
                                                                                                                                                                                                                                                                                                                                    -  styleUrls: ['./quickpanel-toggle.component.scss'],
                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                    -export class QuickpanelToggleComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                    -  @Input()
                                                                                                                                                                                                                                                                                                                                    -  quickpanel: MatSidenav;
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -  constructor() {}
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -  openQuickpanel() {
                                                                                                                                                                                                                                                                                                                                    -    this.quickpanel.open();
                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    <button mat-button class="button" (click)="openQuickpanel()" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                    -  <mat-icon>format_align_right</mat-icon>
                                                                                                                                                                                                                                                                                                                                    -</button>
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    - ./quickpanel-toggle.component.scss -

                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    @import 'fu/var';
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -.button {
                                                                                                                                                                                                                                                                                                                                    -  border-radius: 0;
                                                                                                                                                                                                                                                                                                                                    -  padding: 0;
                                                                                                                                                                                                                                                                                                                                    -  min-width: $toolbar-button-width;
                                                                                                                                                                                                                                                                                                                                    -  color: $toolbar-button-icon-color;
                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/RainbowComponent.html b/docs/components/RainbowComponent.html deleted file mode 100644 index 26d211c1a..000000000 --- a/docs/components/RainbowComponent.html +++ /dev/null @@ -1,486 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      - libs/dashboard/src/lib/components/rainbow/rainbow.component.ts -

                                                                                                                                                                                                                                                                                                                                      - - - -

                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      Implements

                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      - OnInit -

                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                      selectorngx-rainbow
                                                                                                                                                                                                                                                                                                                                      styleUrls./rainbow.component.scss
                                                                                                                                                                                                                                                                                                                                      templateUrl./rainbow.component.html
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                      -constructor() -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                      - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                      -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                      - - - - swUpdate - - - -
                                                                                                                                                                                                                                                                                                                                      - swUpdate: - -
                                                                                                                                                                                                                                                                                                                                      - Default value : true -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-rainbow',
                                                                                                                                                                                                                                                                                                                                      -  templateUrl: './rainbow.component.html',
                                                                                                                                                                                                                                                                                                                                      -  styleUrls: ['./rainbow.component.scss'],
                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                      -export class RainbowComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                      -  swUpdate = true;
                                                                                                                                                                                                                                                                                                                                      -  constructor() {}
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      <div class="sw-update-toolbar mat-elevation-z4" *ngIf="swUpdate">
                                                                                                                                                                                                                                                                                                                                      -  <div class="rainbow" fxLayout="row">
                                                                                                                                                                                                                                                                                                                                      -    <div fxLayout="row" fxLayoutAlign="center center" fxFlex>
                                                                                                                                                                                                                                                                                                                                      -      <div class="name" fxHide fxShow.gt-sm>new software is avaialble. do you want to install?</div>
                                                                                                                                                                                                                                                                                                                                      -      <a href="https://sdfsff" class="action" mat-raised-button color="accent">
                                                                                                                                                                                                                                                                                                                                      -        <mat-icon class="icon">shopping_basket</mat-icon>
                                                                                                                                                                                                                                                                                                                                      -        GET IT HERE
                                                                                                                                                                                                                                                                                                                                      -      </a>
                                                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                                                      -    <div fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                      -      <button type="button" mat-icon-button (click)="swUpdate = false">
                                                                                                                                                                                                                                                                                                                                      -        <mat-icon class="close">close</mat-icon>
                                                                                                                                                                                                                                                                                                                                      -      </button>
                                                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                                                                                                                      -</div>
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      - ./rainbow.component.scss -

                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      @import 'constants';
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -@keyframes rainbow {
                                                                                                                                                                                                                                                                                                                                      -  0% {
                                                                                                                                                                                                                                                                                                                                      -    background-position: 0% 82%;
                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                      -  50% {
                                                                                                                                                                                                                                                                                                                                      -    background-position: 100% 19%;
                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                      -  100% {
                                                                                                                                                                                                                                                                                                                                      -    background-position: 0% 82%;
                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -.sw-update-toolbar {
                                                                                                                                                                                                                                                                                                                                      -  height: $mat-toolbar-height-desktop;
                                                                                                                                                                                                                                                                                                                                      -  position: relative;
                                                                                                                                                                                                                                                                                                                                      -  z-index: 999;
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -  & + .dashboard-container {
                                                                                                                                                                                                                                                                                                                                      -    height: calc(100% - #{$mat-toolbar-height-desktop});
                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -  .rainbow {
                                                                                                                                                                                                                                                                                                                                      -    height: 100%;
                                                                                                                                                                                                                                                                                                                                      -    width: 100%;
                                                                                                                                                                                                                                                                                                                                      -    left: 0;
                                                                                                                                                                                                                                                                                                                                      -    right: 0;
                                                                                                                                                                                                                                                                                                                                      -    top: 0;
                                                                                                                                                                                                                                                                                                                                      -    bottom: 0;
                                                                                                                                                                                                                                                                                                                                      -    position: absolute;
                                                                                                                                                                                                                                                                                                                                      -    background: linear-gradient(
                                                                                                                                                                                                                                                                                                                                      -      124deg,
                                                                                                                                                                                                                                                                                                                                      -      #ff2400,
                                                                                                                                                                                                                                                                                                                                      -      #e81d1d,
                                                                                                                                                                                                                                                                                                                                      -      #e8b71d,
                                                                                                                                                                                                                                                                                                                                      -      #e3e81d,
                                                                                                                                                                                                                                                                                                                                      -      #1de840,
                                                                                                                                                                                                                                                                                                                                      -      #1ddde8,
                                                                                                                                                                                                                                                                                                                                      -      #2b1de8,
                                                                                                                                                                                                                                                                                                                                      -      #dd00f3,
                                                                                                                                                                                                                                                                                                                                      -      #dd00f3
                                                                                                                                                                                                                                                                                                                                      -    );
                                                                                                                                                                                                                                                                                                                                      -    background-size: 1800% 1800%;
                                                                                                                                                                                                                                                                                                                                      -    animation: rainbow 18s ease infinite;
                                                                                                                                                                                                                                                                                                                                      -    padding: 0 24px;
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -    .name {
                                                                                                                                                                                                                                                                                                                                      -      color: white;
                                                                                                                                                                                                                                                                                                                                      -      font-weight: 500;
                                                                                                                                                                                                                                                                                                                                      -      text-shadow: 0px 0px 20px rgba(150, 150, 150, 1);
                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -    .action {
                                                                                                                                                                                                                                                                                                                                      -      margin-left: 24px;
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -      .icon {
                                                                                                                                                                                                                                                                                                                                      -        font-size: 18px;
                                                                                                                                                                                                                                                                                                                                      -        height: 18px;
                                                                                                                                                                                                                                                                                                                                      -        width: 18px;
                                                                                                                                                                                                                                                                                                                                      -        line-height: 18px;
                                                                                                                                                                                                                                                                                                                                      -        margin-right: 6px;
                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -    .close {
                                                                                                                                                                                                                                                                                                                                      -      color: white;
                                                                                                                                                                                                                                                                                                                                      -      text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/RealtimeUsersWidgetComponent.html b/docs/components/RealtimeUsersWidgetComponent.html deleted file mode 100644 index 79a6562ea..000000000 --- a/docs/components/RealtimeUsersWidgetComponent.html +++ /dev/null @@ -1,852 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        - libs/widgets/src/lib/components/realtime-users-widget/realtime-users-widget.component.ts -

                                                                                                                                                                                                                                                                                                                                        - - - -

                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        Implements

                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        - AfterViewInit -

                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        selectorngx-realtime-users-widget
                                                                                                                                                                                                                                                                                                                                        styleUrls./realtime-users-widget.component.scss
                                                                                                                                                                                                                                                                                                                                        templateUrl./realtime-users-widget.component.html
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        Inputs
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        -constructor(cd: ChangeDetectorRef) -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                        cd - ChangeDetectorRef - - No -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        Inputs

                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - data$ - -

                                                                                                                                                                                                                                                                                                                                        - Type : Observable<RealtimeUsersWidgetData> - -

                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - maxLength - -

                                                                                                                                                                                                                                                                                                                                        - Default value : 30 -

                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - pages$ - -

                                                                                                                                                                                                                                                                                                                                        - Type : Observable<RealtimeUsersWidgetPages> - -

                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - - - addData - - - -
                                                                                                                                                                                                                                                                                                                                        -addData(data: RealtimeUsersWidgetData) -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                        data - RealtimeUsersWidgetData - - No -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                                        -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - - - removeData - - - -
                                                                                                                                                                                                                                                                                                                                        -removeData() -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - - - canvas - - - -
                                                                                                                                                                                                                                                                                                                                        - canvas: ElementRef - -
                                                                                                                                                                                                                                                                                                                                        - Type : ElementRef - -
                                                                                                                                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                                                                                                                                        - - @ViewChild('canvas', {read: ElementRef})
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - - - chart - - - -
                                                                                                                                                                                                                                                                                                                                        - chart: Chart - -
                                                                                                                                                                                                                                                                                                                                        - Type : Chart - -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        - - - - currentUsers - - - -
                                                                                                                                                                                                                                                                                                                                        - currentUsers: number - -
                                                                                                                                                                                                                                                                                                                                        - Type : number - -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Input, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                        -import * as Chart from 'chart.js';
                                                                                                                                                                                                                                                                                                                                        -import { ChartConfiguration, ChartOptions } from 'chart.js';
                                                                                                                                                                                                                                                                                                                                        -import defaultsDeep from 'lodash-es/defaultsDeep';
                                                                                                                                                                                                                                                                                                                                        -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                        -import { defaultChartOptions } from '../chart-widget/chart-widget-defaults';
                                                                                                                                                                                                                                                                                                                                        -import { RealtimeUsersWidgetData, RealtimeUsersWidgetPages } from './realtime-users-widget.interface';
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                                                                                                        -  selector: 'ngx-realtime-users-widget',
                                                                                                                                                                                                                                                                                                                                        -  templateUrl: './realtime-users-widget.component.html',
                                                                                                                                                                                                                                                                                                                                        -  styleUrls: ['./realtime-users-widget.component.scss'],
                                                                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                                                                        -export class RealtimeUsersWidgetComponent implements AfterViewInit {
                                                                                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                                                                                        -  pages$: Observable<RealtimeUsersWidgetPages>;
                                                                                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                                                                                        -  data$: Observable<RealtimeUsersWidgetData>;
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                                                                                        -  maxLength = 30;
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  @ViewChild('canvas', { read: ElementRef })
                                                                                                                                                                                                                                                                                                                                        -  canvas: ElementRef;
                                                                                                                                                                                                                                                                                                                                        -  chart: Chart;
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  currentUsers: number;
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  constructor(private cd: ChangeDetectorRef) {}
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                                        -    this.chart = new Chart(this.canvas.nativeElement.getContext('2d'), <ChartConfiguration>{
                                                                                                                                                                                                                                                                                                                                        -      type: 'bar',
                                                                                                                                                                                                                                                                                                                                        -      data: {
                                                                                                                                                                                                                                                                                                                                        -        labels: [],
                                                                                                                                                                                                                                                                                                                                        -        datasets: [
                                                                                                                                                                                                                                                                                                                                        -          {
                                                                                                                                                                                                                                                                                                                                        -            data: [],
                                                                                                                                                                                                                                                                                                                                        -          },
                                                                                                                                                                                                                                                                                                                                        -        ],
                                                                                                                                                                                                                                                                                                                                        -      },
                                                                                                                                                                                                                                                                                                                                        -      options: defaultsDeep(
                                                                                                                                                                                                                                                                                                                                        -        {
                                                                                                                                                                                                                                                                                                                                        -          tooltips: {
                                                                                                                                                                                                                                                                                                                                        -            mode: 'index',
                                                                                                                                                                                                                                                                                                                                        -            intersect: false,
                                                                                                                                                                                                                                                                                                                                        -          },
                                                                                                                                                                                                                                                                                                                                        -          hover: {
                                                                                                                                                                                                                                                                                                                                        -            intersect: true,
                                                                                                                                                                                                                                                                                                                                        -          },
                                                                                                                                                                                                                                                                                                                                        -        } as ChartOptions,
                                                                                                                                                                                                                                                                                                                                        -        defaultChartOptions,
                                                                                                                                                                                                                                                                                                                                        -      ),
                                                                                                                                                                                                                                                                                                                                        -    });
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -    const first = true;
                                                                                                                                                                                                                                                                                                                                        -    this.data$.subscribe(newData => {
                                                                                                                                                                                                                                                                                                                                        -      const oldData = this.chart.data.datasets[0].data as any;
                                                                                                                                                                                                                                                                                                                                        -      this.addData(newData);
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -      setTimeout(() => {
                                                                                                                                                                                                                                                                                                                                        -        this.currentUsers = newData.value;
                                                                                                                                                                                                                                                                                                                                        -      }, 1);
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -      if (oldData.length > this.maxLength) {
                                                                                                                                                                                                                                                                                                                                        -        this.removeData();
                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -      this.cd.markForCheck();
                                                                                                                                                                                                                                                                                                                                        -      this.chart.update();
                                                                                                                                                                                                                                                                                                                                        -    });
                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  addData(data: RealtimeUsersWidgetData) {
                                                                                                                                                                                                                                                                                                                                        -    this.chart.data.labels.push(data.label);
                                                                                                                                                                                                                                                                                                                                        -    const chartData = this.chart.data.datasets[0].data as any;
                                                                                                                                                                                                                                                                                                                                        -    chartData.push(data.value);
                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  removeData() {
                                                                                                                                                                                                                                                                                                                                        -    this.chart.data.labels.shift();
                                                                                                                                                                                                                                                                                                                                        -    const data = this.chart.data.datasets[0].data as any;
                                                                                                                                                                                                                                                                                                                                        -    data.shift();
                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        <ngx-card class="card">
                                                                                                                                                                                                                                                                                                                                        -  <ngx-card-header class="header" fxLayout="column">
                                                                                                                                                                                                                                                                                                                                        -    <ngx-card-header-title>Active Users right now</ngx-card-header-title>
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -    <div class="value">{{ currentUsers }}</div>
                                                                                                                                                                                                                                                                                                                                        -  </ngx-card-header>
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  <ngx-card-content>
                                                                                                                                                                                                                                                                                                                                        -    <div class="section">
                                                                                                                                                                                                                                                                                                                                        -      <div class="heading">Page views per minute</div>
                                                                                                                                                                                                                                                                                                                                        -      <div class="canvas-content">
                                                                                                                                                                                                                                                                                                                                        -        <canvas #canvas></canvas>
                                                                                                                                                                                                                                                                                                                                        -      </div>
                                                                                                                                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -    <div class="section">
                                                                                                                                                                                                                                                                                                                                        -      <div class="heading">Top Active Pages</div>
                                                                                                                                                                                                                                                                                                                                        -      <div class="pages" fxLayout="column">
                                                                                                                                                                                                                                                                                                                                        -        <div class="page" *ngFor="let page of pages$ | async">
                                                                                                                                                                                                                                                                                                                                        -          {{ page.page }}
                                                                                                                                                                                                                                                                                                                                        -        </div>
                                                                                                                                                                                                                                                                                                                                        -      </div>
                                                                                                                                                                                                                                                                                                                                        -    </div>
                                                                                                                                                                                                                                                                                                                                        -  </ngx-card-content>
                                                                                                                                                                                                                                                                                                                                        -</ngx-card>
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        - ./realtime-users-widget.component.scss -

                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        @import 'fu/var';
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -.card {
                                                                                                                                                                                                                                                                                                                                        -  background: #4285f4;
                                                                                                                                                                                                                                                                                                                                        -  color: white;
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  .header {
                                                                                                                                                                                                                                                                                                                                        -    .value {
                                                                                                                                                                                                                                                                                                                                        -      @include mat-typography-level-to-styles($config, display-2);
                                                                                                                                                                                                                                                                                                                                        -      font-weight: 300;
                                                                                                                                                                                                                                                                                                                                        -      margin-top: $spacing/2;
                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -  .section {
                                                                                                                                                                                                                                                                                                                                        -    flex: 1;
                                                                                                                                                                                                                                                                                                                                        -    display: flex;
                                                                                                                                                                                                                                                                                                                                        -    flex-direction: column;
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -    .heading {
                                                                                                                                                                                                                                                                                                                                        -      @include mat-typography-level-to-styles($config, caption);
                                                                                                                                                                                                                                                                                                                                        -      color: $light-secondary-text;
                                                                                                                                                                                                                                                                                                                                        -      border-bottom: 1px solid $light-dividers;
                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -    .canvas-content {
                                                                                                                                                                                                                                                                                                                                        -      max-width: 100%;
                                                                                                                                                                                                                                                                                                                                        -      display: flex;
                                                                                                                                                                                                                                                                                                                                        -      flex: 1;
                                                                                                                                                                                                                                                                                                                                        -      position: relative;
                                                                                                                                                                                                                                                                                                                                        -      padding-top: $spacing/2;
                                                                                                                                                                                                                                                                                                                                        -      padding-bottom: $spacing/2;
                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -    .pages {
                                                                                                                                                                                                                                                                                                                                        -      padding-top: $spacing/2;
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -      .page {
                                                                                                                                                                                                                                                                                                                                        -        & + .page {
                                                                                                                                                                                                                                                                                                                                        -          padding-top: $spacing/3;
                                                                                                                                                                                                                                                                                                                                        -        }
                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/RecentSalesWidgetComponent.html b/docs/components/RecentSalesWidgetComponent.html deleted file mode 100644 index 561b5ab31..000000000 --- a/docs/components/RecentSalesWidgetComponent.html +++ /dev/null @@ -1,783 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          - libs/widgets/src/lib/components/recent-sales-widget/recent-sales-widget.component.ts -

                                                                                                                                                                                                                                                                                                                                          - - - -

                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          Implements

                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          - OnInit - AfterViewInit -

                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          selectorngx-recent-sales-widget
                                                                                                                                                                                                                                                                                                                                          styleUrls./recent-sales-widget.component.scss
                                                                                                                                                                                                                                                                                                                                          templateUrl./recent-sales-widget.component.html
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          Inputs
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          -constructor() -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          Inputs

                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - chartData - -

                                                                                                                                                                                                                                                                                                                                          - Type : ChartData - -

                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - options - -

                                                                                                                                                                                                                                                                                                                                          - Type : RecentSalesWidgetOptions - -

                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - tableData - -

                                                                                                                                                                                                                                                                                                                                          - Type : any[] - -

                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - tableOptions - -

                                                                                                                                                                                                                                                                                                                                          - Type : literal type - -

                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                                          -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                          -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - - - reload - - - -
                                                                                                                                                                                                                                                                                                                                          -reload() -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                          - Properties -

                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - - - canvas - - - -
                                                                                                                                                                                                                                                                                                                                          - canvas: ElementRef - -
                                                                                                                                                                                                                                                                                                                                          - Type : ElementRef - -
                                                                                                                                                                                                                                                                                                                                          - Decorators : -
                                                                                                                                                                                                                                                                                                                                          - - @ViewChild('canvas', {read: ElementRef})
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - - - chart - - - -
                                                                                                                                                                                                                                                                                                                                          - chart: Chart - -
                                                                                                                                                                                                                                                                                                                                          - Type : Chart - -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          - - - - isLoading - - - -
                                                                                                                                                                                                                                                                                                                                          - isLoading: boolean - -
                                                                                                                                                                                                                                                                                                                                          - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          import { AfterViewInit, Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                          -import * as Chart from 'chart.js';
                                                                                                                                                                                                                                                                                                                                          -import { ChartData } from 'chart.js';
                                                                                                                                                                                                                                                                                                                                          -import defaultsDeep from 'lodash-es/defaultsDeep';
                                                                                                                                                                                                                                                                                                                                          -import { defaultChartOptions } from '../chart-widget/chart-widget-defaults';
                                                                                                                                                                                                                                                                                                                                          -import { ListColumn } from '../list/list-column.model';
                                                                                                                                                                                                                                                                                                                                          -import { RecentSalesWidgetOptions } from './recent-sales-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-recent-sales-widget',
                                                                                                                                                                                                                                                                                                                                          -  templateUrl: './recent-sales-widget.component.html',
                                                                                                                                                                                                                                                                                                                                          -  styleUrls: ['./recent-sales-widget.component.scss'],
                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                          -export class RecentSalesWidgetComponent implements OnInit, AfterViewInit {
                                                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                                                          -  tableOptions: {
                                                                                                                                                                                                                                                                                                                                          -    pageSize: number;
                                                                                                                                                                                                                                                                                                                                          -    columns: ListColumn[];
                                                                                                                                                                                                                                                                                                                                          -  };
                                                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                                                          -  tableData: any[];
                                                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                                                          -  chartData: ChartData;
                                                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                                                          -  options: RecentSalesWidgetOptions;
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  @ViewChild('canvas', { read: ElementRef })
                                                                                                                                                                                                                                                                                                                                          -  canvas: ElementRef;
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  chart: Chart;
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  isLoading: boolean;
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  constructor() {}
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                                          -    this.chart = new Chart(this.canvas.nativeElement.getContext('2d'), {
                                                                                                                                                                                                                                                                                                                                          -      type: 'line',
                                                                                                                                                                                                                                                                                                                                          -      data: this.chartData,
                                                                                                                                                                                                                                                                                                                                          -      options: defaultsDeep(
                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                          -          tooltips: {
                                                                                                                                                                                                                                                                                                                                          -            mode: 'index',
                                                                                                                                                                                                                                                                                                                                          -            intersect: false,
                                                                                                                                                                                                                                                                                                                                          -          },
                                                                                                                                                                                                                                                                                                                                          -          elements: {
                                                                                                                                                                                                                                                                                                                                          -            point: {
                                                                                                                                                                                                                                                                                                                                          -              radius: 0,
                                                                                                                                                                                                                                                                                                                                          -            },
                                                                                                                                                                                                                                                                                                                                          -          },
                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                          -        defaultChartOptions,
                                                                                                                                                                                                                                                                                                                                          -      ),
                                                                                                                                                                                                                                                                                                                                          -    });
                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  reload() {
                                                                                                                                                                                                                                                                                                                                          -    this.isLoading = true;
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -    setTimeout(() => {
                                                                                                                                                                                                                                                                                                                                          -      this.isLoading = false;
                                                                                                                                                                                                                                                                                                                                          -    }, 2000);
                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          <ngx-card>
                                                                                                                                                                                                                                                                                                                                          -  <ngx-card-header>
                                                                                                                                                                                                                                                                                                                                          -    <ngx-card-header-title>{{ options.title }}</ngx-card-header-title>
                                                                                                                                                                                                                                                                                                                                          -    <ngx-card-header-sub-title *ngIf="options.subTitle">{{ options.subTitle }}</ngx-card-header-sub-title>
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -    <ngx-card-header-actions>
                                                                                                                                                                                                                                                                                                                                          -      <button mat-icon-button (click)="reload()">
                                                                                                                                                                                                                                                                                                                                          -        <mat-icon>refresh</mat-icon>
                                                                                                                                                                                                                                                                                                                                          -      </button>
                                                                                                                                                                                                                                                                                                                                          -      <button mat-icon-button [matMenuTriggerFor]="menu">
                                                                                                                                                                                                                                                                                                                                          -        <mat-icon>more_vert</mat-icon>
                                                                                                                                                                                                                                                                                                                                          -      </button>
                                                                                                                                                                                                                                                                                                                                          -    </ngx-card-header-actions>
                                                                                                                                                                                                                                                                                                                                          -  </ngx-card-header>
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  <ngx-card-content class="card-content">
                                                                                                                                                                                                                                                                                                                                          -    <ngx-recent-sales-widget-table [data]="tableData" [columns]="tableOptions?.columns"
                                                                                                                                                                                                                                                                                                                                          -                                    [pageSize]="tableOptions?.pageSize"></ngx-recent-sales-widget-table>
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -    <div class="content">
                                                                                                                                                                                                                                                                                                                                          -      <canvas #canvas></canvas>
                                                                                                                                                                                                                                                                                                                                          -    </div>
                                                                                                                                                                                                                                                                                                                                          -  </ngx-card-content>
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  <mat-menu #menu="matMenu">
                                                                                                                                                                                                                                                                                                                                          -    <button mat-menu-item>
                                                                                                                                                                                                                                                                                                                                          -      <mat-icon> settings</mat-icon>
                                                                                                                                                                                                                                                                                                                                          -      <span> Settings </span>
                                                                                                                                                                                                                                                                                                                                          -    </button>
                                                                                                                                                                                                                                                                                                                                          -    <button mat-menu-item disabled>
                                                                                                                                                                                                                                                                                                                                          -      <mat-icon> more</mat-icon>
                                                                                                                                                                                                                                                                                                                                          -      <span> More Info </span>
                                                                                                                                                                                                                                                                                                                                          -    </button>
                                                                                                                                                                                                                                                                                                                                          -    <button mat-menu-item>
                                                                                                                                                                                                                                                                                                                                          -      <mat-icon> remove_circle</mat-icon>
                                                                                                                                                                                                                                                                                                                                          -      <span> Remove Widget </span>
                                                                                                                                                                                                                                                                                                                                          -    </button>
                                                                                                                                                                                                                                                                                                                                          -  </mat-menu>
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -  <ngx-loading-overlay [isLoading]="isLoading"></ngx-loading-overlay>
                                                                                                                                                                                                                                                                                                                                          -</ngx-card>
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          - ./recent-sales-widget.component.scss -

                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          @import 'fu/var';
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -.card-content {
                                                                                                                                                                                                                                                                                                                                          -  padding: 0 !important;
                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -.content {
                                                                                                                                                                                                                                                                                                                                          -  margin-top: $spacing;
                                                                                                                                                                                                                                                                                                                                          -  height: 180px;
                                                                                                                                                                                                                                                                                                                                          -  max-width: 100%;
                                                                                                                                                                                                                                                                                                                                          -  display: flex;
                                                                                                                                                                                                                                                                                                                                          -  flex: 1;
                                                                                                                                                                                                                                                                                                                                          -  position: relative;
                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/RecentSalesWidgetTableComponent.html b/docs/components/RecentSalesWidgetTableComponent.html deleted file mode 100644 index 26d5cb1fb..000000000 --- a/docs/components/RecentSalesWidgetTableComponent.html +++ /dev/null @@ -1,915 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            - libs/widgets/src/lib/components/recent-sales-widget/recent-sales-widget-table/recent-sales-widget-table.component.ts -

                                                                                                                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            - OnInit - AfterViewInit -

                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            selectorngx-recent-sales-widget-table
                                                                                                                                                                                                                                                                                                                                            styleUrls./recent-sales-widget-table.component.scss
                                                                                                                                                                                                                                                                                                                                            templateUrl./recent-sales-widget-table.component.html
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            Inputs
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            Accessors
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            -constructor(dialog: MatDialog) -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                            dialog - MatDialog - - No -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Inputs

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - columns - -

                                                                                                                                                                                                                                                                                                                                            - Type : ListColumn[] - -

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - data - -

                                                                                                                                                                                                                                                                                                                                            - Type : [] - -

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - pageSize - -

                                                                                                                                                                                                                                                                                                                                            - Default value : 10 -

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                                            -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - - - data$ - - - -
                                                                                                                                                                                                                                                                                                                                            - data$: Observable<any[]> - -
                                                                                                                                                                                                                                                                                                                                            - Type : Observable<any[]> - -
                                                                                                                                                                                                                                                                                                                                            - Default value : this.subject$.asObservable() -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - - - dataSource - - - -
                                                                                                                                                                                                                                                                                                                                            - dataSource: MatTableDataSource<any> | null - -
                                                                                                                                                                                                                                                                                                                                            - Type : MatTableDataSource<any> | null - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - - - paginator - - - -
                                                                                                                                                                                                                                                                                                                                            - paginator: MatPaginator - -
                                                                                                                                                                                                                                                                                                                                            - Type : MatPaginator - -
                                                                                                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                                                                                                            - - @ViewChild(MatPaginator)
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - - - sort - - - -
                                                                                                                                                                                                                                                                                                                                            - sort: MatSort - -
                                                                                                                                                                                                                                                                                                                                            - Type : MatSort - -
                                                                                                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                                                                                                            - - @ViewChild(MatSort)
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - - - subject$ - - - -
                                                                                                                                                                                                                                                                                                                                            - subject$: ReplaySubject<any[]> - -
                                                                                                                                                                                                                                                                                                                                            - Type : ReplaySubject<any[]> - -
                                                                                                                                                                                                                                                                                                                                            - Default value : new ReplaySubject<any[]>(1) -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Simulating a service with HTTP that returns Observables -You probably want to remove this and do all requests in a service with HTTP

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            - Accessors -

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - data -
                                                                                                                                                                                                                                                                                                                                            - setdata(value: []) -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                            value - [] - - No -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - visibleColumns -
                                                                                                                                                                                                                                                                                                                                            - getvisibleColumns() -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            import { AfterViewInit, Component, Input, OnInit, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                            -import { MatDialog, MatPaginator, MatSort, MatTableDataSource } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                            -import { Observable } from 'rxjs/internal/Observable';
                                                                                                                                                                                                                                                                                                                                            -import { ReplaySubject } from 'rxjs/internal/ReplaySubject';
                                                                                                                                                                                                                                                                                                                                            -import { filter } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                            -import { ListColumn } from '../../list/list-column.model';
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-recent-sales-widget-table',
                                                                                                                                                                                                                                                                                                                                            -  templateUrl: './recent-sales-widget-table.component.html',
                                                                                                                                                                                                                                                                                                                                            -  styleUrls: ['./recent-sales-widget-table.component.scss'],
                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                            -export class RecentSalesWidgetTableComponent implements OnInit, AfterViewInit {
                                                                                                                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                                                                                                                            -  columns: ListColumn[];
                                                                                                                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                                                                                                                            -  pageSize = 10;
                                                                                                                                                                                                                                                                                                                                            -  /**
                                                                                                                                                                                                                                                                                                                                            -   * Simulating a service with HTTP that returns Observables
                                                                                                                                                                                                                                                                                                                                            -   * You probably want to remove this and do all requests in a service with HTTP
                                                                                                                                                                                                                                                                                                                                            -   */
                                                                                                                                                                                                                                                                                                                                            -  subject$: ReplaySubject<any[]> = new ReplaySubject<any[]>(1);
                                                                                                                                                                                                                                                                                                                                            -  data$: Observable<any[]> = this.subject$.asObservable();
                                                                                                                                                                                                                                                                                                                                            -  dataSource: MatTableDataSource<any> | null;
                                                                                                                                                                                                                                                                                                                                            -  @ViewChild(MatPaginator)
                                                                                                                                                                                                                                                                                                                                            -  paginator: MatPaginator;
                                                                                                                                                                                                                                                                                                                                            -  @ViewChild(MatSort)
                                                                                                                                                                                                                                                                                                                                            -  sort: MatSort;
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -  constructor(private dialog: MatDialog) {}
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                                                                                                                            -  set data(value: any[]) {
                                                                                                                                                                                                                                                                                                                                            -    this.subject$.next(value);
                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -  get visibleColumns() {
                                                                                                                                                                                                                                                                                                                                            -    return this.columns.filter(column => column.visible).map(column => column.property);
                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                            -    this.dataSource = new MatTableDataSource();
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -    this.data$.pipe(filter(Boolean)).subscribe(values => (this.dataSource.data = values));
                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                                            -    this.dataSource.paginator = this.paginator;
                                                                                                                                                                                                                                                                                                                                            -    this.dataSource.sort = this.sort;
                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            <ngx-list fxFlex="grow" fxLayout="column" [hideHeader]="true">
                                                                                                                                                                                                                                                                                                                                            -  <mat-table class="table" #table [dataSource]="dataSource" matSort>
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -    <!--- Note that these columns can be defined in any order.
                                                                                                                                                                                                                                                                                                                                            -          The actual rendered columns are set as a property on the row definition" -->
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -    <!-- Model Properties Column -->
                                                                                                                                                                                                                                                                                                                                            -    <ng-container *ngFor="let column of columns">
                                                                                                                                                                                                                                                                                                                                            -      <ng-container *ngIf="column.isModelProperty" [matColumnDef]="column.property">
                                                                                                                                                                                                                                                                                                                                            -        <mat-header-cell *matHeaderCellDef mat-sort-header> {{ column.name }}</mat-header-cell>
                                                                                                                                                                                                                                                                                                                                            -        <mat-cell *matCellDef="let row">
                                                                                                                                                                                                                                                                                                                                            -          <span class="ngx-mobile-label">{{ column.name }}</span>
                                                                                                                                                                                                                                                                                                                                            -          {{ row[column.property] }}
                                                                                                                                                                                                                                                                                                                                            -        </mat-cell>
                                                                                                                                                                                                                                                                                                                                            -      </ng-container>
                                                                                                                                                                                                                                                                                                                                            -    </ng-container>
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -    <mat-header-row *matHeaderRowDef="visibleColumns"></mat-header-row>
                                                                                                                                                                                                                                                                                                                                            -    <!--suppress UnnecessaryLabelJS -->
                                                                                                                                                                                                                                                                                                                                            -    <mat-row *matRowDef="let row; columns: visibleColumns;"></mat-row>
                                                                                                                                                                                                                                                                                                                                            -  </mat-table>
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -  <mat-paginator class="paginator" [pageSize]="pageSize"></mat-paginator>
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -</ngx-list>
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            - ./recent-sales-widget-table.component.scss -

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            @import 'fu/var';
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -.table {
                                                                                                                                                                                                                                                                                                                                            -  border-top: 1px solid $theme-divider;
                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -.paginator {
                                                                                                                                                                                                                                                                                                                                            -  border-bottom: 1px solid $theme-divider;
                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ResizableComponent.html b/docs/components/ResizableComponent.html deleted file mode 100644 index 9b1150e40..000000000 --- a/docs/components/ResizableComponent.html +++ /dev/null @@ -1,1793 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              - libs/draggable/src/lib/directives/resizable/resizable.component.ts -

                                                                                                                                                                                                                                                                                                                                              - - - -

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              - OnInit - OnChanges -

                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              host{
                                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                                              providers - Store -
                                                                                                                                                                                                                                                                                                                                              selector[resizable]
                                                                                                                                                                                                                                                                                                                                              styleUrlsresizable.component.css
                                                                                                                                                                                                                                                                                                                                              template
                                                                                                                                                                                                                                                                                                                                              <ng-content></ng-content>
                                                                                                                                                                                                                                                                                                                                              -<div *ngFor="let dir of directions"
                                                                                                                                                                                                                                                                                                                                              -  class="ngr-grabber" [ngClass]="'ngr-' + dir"
                                                                                                                                                                                                                                                                                                                                              -  (mousedown)="onMouseDown($event, dir)"
                                                                                                                                                                                                                                                                                                                                              -  (touchstart)="onMouseDown($event, dir)">
                                                                                                                                                                                                                                                                                                                                              -</div>
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              Inputs
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              Outputs
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              Accessors
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              -constructor(_el: ElementRef, _store: Store, _renderer: Renderer2, rState: ResizableState) -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                              _el - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                              _store - Store - - No -
                                                                                                                                                                                                                                                                                                                                              _renderer - Renderer2 - - No -
                                                                                                                                                                                                                                                                                                                                              rState - ResizableState - - No -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              Inputs

                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - bound - -

                                                                                                                                                                                                                                                                                                                                              - Type : IRectangle - -

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              - Default value : null -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - directions - -

                                                                                                                                                                                                                                                                                                                                              - Type : string[] - -

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              - Default value : ['bottom', 'right'] -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - disableResize - -

                                                                                                                                                                                                                                                                                                                                              - Default value : false -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - grid - -

                                                                                                                                                                                                                                                                                                                                              - Type : ISize - -

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              - Default value : { width: 1, height: 1 } -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - height - -

                                                                                                                                                                                                                                                                                                                                              - Type : number - -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - maxHeight - -

                                                                                                                                                                                                                                                                                                                                              - Default value : Infinity -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - maxWidth - -

                                                                                                                                                                                                                                                                                                                                              - Default value : Infinity -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - minHeight - -

                                                                                                                                                                                                                                                                                                                                              - Default value : 400 -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - minWidth - -

                                                                                                                                                                                                                                                                                                                                              - Default value : 350 -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - ratio - -

                                                                                                                                                                                                                                                                                                                                              - Type : number - -

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              - Default value : null -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - width - -

                                                                                                                                                                                                                                                                                                                                              - Type : number - -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - x - -

                                                                                                                                                                                                                                                                                                                                              - Type : number - -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - y - -

                                                                                                                                                                                                                                                                                                                                              - Type : number - -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              Outputs

                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - resizeEnd - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - resizeStart - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - resizing - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - - - Private - emitAction - - - -
                                                                                                                                                                                                                                                                                                                                              - - emitAction(action: String, mousePosition: IPoint, startPosition?: IPoint, startSize?: ISize, startDirection?: string) -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                              action - String - - No -
                                                                                                                                                                                                                                                                                                                                              mousePosition - IPoint - - No -
                                                                                                                                                                                                                                                                                                                                              startPosition - IPoint - - Yes -
                                                                                                                                                                                                                                                                                                                                              startSize - ISize - - Yes -
                                                                                                                                                                                                                                                                                                                                              startDirection - string - - Yes -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - - - Private - emitEvent - - - -
                                                                                                                                                                                                                                                                                                                                              - - emitEvent(output: EventEmitter) -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                              output - EventEmitter<IResizeEvent> - - No -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - - - ngOnChanges - - - -
                                                                                                                                                                                                                                                                                                                                              -ngOnChanges(c: any) -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                              c - any - - No -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                              -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - - - onMouseDown - - - -
                                                                                                                                                                                                                                                                                                                                              -onMouseDown(e: any, dir: any) -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                              e - any - - No -
                                                                                                                                                                                                                                                                                                                                              dir - any - - No -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - - - onMouseMove - - - -
                                                                                                                                                                                                                                                                                                                                              -onMouseMove(e: any) -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                              e - any - - No -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - - - onMouseUp - - - -
                                                                                                                                                                                                                                                                                                                                              -onMouseUp(e: any) -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                              e - any - - No -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - - - Private - setSize - - - -
                                                                                                                                                                                                                                                                                                                                              - - setSize(size: ISize, pos: IPoint) -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                              size - ISize - - No -
                                                                                                                                                                                                                                                                                                                                              pos - IPoint - - No -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              - Accessors -

                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              - - _state -
                                                                                                                                                                                                                                                                                                                                              - get_state() -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              import {
                                                                                                                                                                                                                                                                                                                                              -  Component,
                                                                                                                                                                                                                                                                                                                                              -  ElementRef,
                                                                                                                                                                                                                                                                                                                                              -  Renderer2,
                                                                                                                                                                                                                                                                                                                                              -  Input,
                                                                                                                                                                                                                                                                                                                                              -  Output,
                                                                                                                                                                                                                                                                                                                                              -  EventEmitter,
                                                                                                                                                                                                                                                                                                                                              -  OnInit,
                                                                                                                                                                                                                                                                                                                                              -  OnChanges,
                                                                                                                                                                                                                                                                                                                                              -  AfterViewInit,
                                                                                                                                                                                                                                                                                                                                              -  HostBinding,
                                                                                                                                                                                                                                                                                                                                              -} from '@angular/core';
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -import {
                                                                                                                                                                                                                                                                                                                                              -  Store,
                                                                                                                                                                                                                                                                                                                                              -  IPoint,
                                                                                                                                                                                                                                                                                                                                              -  IOptions,
                                                                                                                                                                                                                                                                                                                                              -  ISize,
                                                                                                                                                                                                                                                                                                                                              -  IResizeState,
                                                                                                                                                                                                                                                                                                                                              -  IResizeEvent,
                                                                                                                                                                                                                                                                                                                                              -  IRectangle,
                                                                                                                                                                                                                                                                                                                                              -  defaultBound,
                                                                                                                                                                                                                                                                                                                                              -} from './resizable.store';
                                                                                                                                                                                                                                                                                                                                              -import { resizeReducer } from './resizable.reducer';
                                                                                                                                                                                                                                                                                                                                              -import { MOUSE_DOWN, RESIZE_STOP, RESIZE } from './resizable.actions';
                                                                                                                                                                                                                                                                                                                                              -import { ResizableState } from './resizable.state';
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                                                                              -  // tslint:disable-next-line
                                                                                                                                                                                                                                                                                                                                              -  selector: '[resizable]',
                                                                                                                                                                                                                                                                                                                                              -  providers: [Store],
                                                                                                                                                                                                                                                                                                                                              -  template: `
                                                                                                                                                                                                                                                                                                                                              -    <ng-content></ng-content>
                                                                                                                                                                                                                                                                                                                                              -    <div *ngFor="let dir of directions"
                                                                                                                                                                                                                                                                                                                                              -      class="ngr-grabber" [ngClass]="'ngr-' + dir"
                                                                                                                                                                                                                                                                                                                                              -      (mousedown)="onMouseDown($event, dir)"
                                                                                                                                                                                                                                                                                                                                              -      (touchstart)="onMouseDown($event, dir)">
                                                                                                                                                                                                                                                                                                                                              -    </div>
                                                                                                                                                                                                                                                                                                                                              -  `,
                                                                                                                                                                                                                                                                                                                                              -  styleUrls: ['resizable.component.css'],
                                                                                                                                                                                                                                                                                                                                              -  // tslint:disable-next-line
                                                                                                                                                                                                                                                                                                                                              -  host: {
                                                                                                                                                                                                                                                                                                                                              -    '(document: mouseup)': 'onMouseUp($event)',
                                                                                                                                                                                                                                                                                                                                              -    '(document: touchend)': 'onMouseUp($event)',
                                                                                                                                                                                                                                                                                                                                              -    '(document: mousemove)': 'onMouseMove($event)',
                                                                                                                                                                                                                                                                                                                                              -    '(document: touchmove)': 'onMouseMove($event)',
                                                                                                                                                                                                                                                                                                                                              -  },
                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                              -export class ResizableComponent implements OnInit, OnChanges {
                                                                                                                                                                                                                                                                                                                                              -  // Resize start event.
                                                                                                                                                                                                                                                                                                                                              -  @Output()
                                                                                                                                                                                                                                                                                                                                              -  resizeStart = new EventEmitter<IResizeEvent>();
                                                                                                                                                                                                                                                                                                                                              -  // Resizing event.
                                                                                                                                                                                                                                                                                                                                              -  @Output()
                                                                                                                                                                                                                                                                                                                                              -  resizing = new EventEmitter<IResizeEvent>();
                                                                                                                                                                                                                                                                                                                                              -  // Resize end event.
                                                                                                                                                                                                                                                                                                                                              -  @Output()
                                                                                                                                                                                                                                                                                                                                              -  resizeEnd = new EventEmitter<IResizeEvent>();
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  // x coordinate of the element.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  x: number;
                                                                                                                                                                                                                                                                                                                                              -  // y coordinate of the element.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  y: number;
                                                                                                                                                                                                                                                                                                                                              -  // Width of the element.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  width?: number;
                                                                                                                                                                                                                                                                                                                                              -  // Height of the element.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  height?: number;
                                                                                                                                                                                                                                                                                                                                              -  // Minimum width.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  minWidth = 350;
                                                                                                                                                                                                                                                                                                                                              -  // Minimum height.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  minHeight = 400;
                                                                                                                                                                                                                                                                                                                                              -  // Maximum width.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  maxWidth = Infinity;
                                                                                                                                                                                                                                                                                                                                              -  // Maximum height.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  maxHeight = Infinity;
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  // Disable the resize.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  disableResize = false;
                                                                                                                                                                                                                                                                                                                                              -  // An array which contains the resize directions.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  directions: string[] = ['bottom', 'right'];
                                                                                                                                                                                                                                                                                                                                              -  // Resize in a grid.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  grid: ISize = { width: 1, height: 1 };
                                                                                                                                                                                                                                                                                                                                              -  // Bound the resize.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  bound: IRectangle = null;
                                                                                                                                                                                                                                                                                                                                              -  // Resize ratio.
                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                              -  ratio: number = null;
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  constructor(
                                                                                                                                                                                                                                                                                                                                              -    private _el: ElementRef,
                                                                                                                                                                                                                                                                                                                                              -    private _store: Store,
                                                                                                                                                                                                                                                                                                                                              -    private _renderer: Renderer2,
                                                                                                                                                                                                                                                                                                                                              -    private rState: ResizableState,
                                                                                                                                                                                                                                                                                                                                              -  ) {}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                              -    this._renderer.addClass(this._el.nativeElement, 'ngresizable');
                                                                                                                                                                                                                                                                                                                                              -    const css = getComputedStyle(this._el.nativeElement);
                                                                                                                                                                                                                                                                                                                                              -    this.width = css.width ? parseInt(css.width, 10) : this.width;
                                                                                                                                                                                                                                                                                                                                              -    this.height = css.height ? parseInt(css.height, 10) : this.height;
                                                                                                                                                                                                                                                                                                                                              -    this.minWidth = css.minWidth ? parseInt(css.minWidth, 10) : this.minWidth;
                                                                                                                                                                                                                                                                                                                                              -    this.minHeight = css.minHeight ? parseInt(css.minHeight, 10) : this.minHeight;
                                                                                                                                                                                                                                                                                                                                              -    this.maxWidth = css.maxWidth ? parseInt(css.maxWidth, 10) : this.maxWidth;
                                                                                                                                                                                                                                                                                                                                              -    this.maxHeight = css.maxHeight ? parseInt(css.maxHeight, 10) : this.maxHeight;
                                                                                                                                                                                                                                                                                                                                              -    // console.log(this.width);
                                                                                                                                                                                                                                                                                                                                              -    // console.log(this.height);
                                                                                                                                                                                                                                                                                                                                              -    // console.log(this.minWidth);
                                                                                                                                                                                                                                                                                                                                              -    // console.log(this.minHeight);
                                                                                                                                                                                                                                                                                                                                              -    // console.log(this.maxWidth);
                                                                                                                                                                                                                                                                                                                                              -    // console.log(this.maxHeight);
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -    this._store.addReducer(resizeReducer);
                                                                                                                                                                                                                                                                                                                                              -    this.setSize({ width: this.width, height: this.height }, { x: this.x, y: this.y });
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  ngOnChanges(c: any) {
                                                                                                                                                                                                                                                                                                                                              -    this.setSize({ width: this.width, height: this.height }, { x: this.x, y: this.y });
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  onMouseMove(e: any) {
                                                                                                                                                                                                                                                                                                                                              -    if (e.touches) {
                                                                                                                                                                                                                                                                                                                                              -      e = e.touches[0];
                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                              -    if (this._state.isResizing) {
                                                                                                                                                                                                                                                                                                                                              -      this.emitAction(RESIZE, {
                                                                                                                                                                                                                                                                                                                                              -        x: e.clientX,
                                                                                                                                                                                                                                                                                                                                              -        y: e.clientY,
                                                                                                                                                                                                                                                                                                                                              -      });
                                                                                                                                                                                                                                                                                                                                              -      const csize = this._state.currentSize;
                                                                                                                                                                                                                                                                                                                                              -      const cpos = this._state.currentPosition;
                                                                                                                                                                                                                                                                                                                                              -      this.setSize(csize, cpos);
                                                                                                                                                                                                                                                                                                                                              -      this.emitEvent(this.resizing);
                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  onMouseDown(e: any, dir: any) {
                                                                                                                                                                                                                                                                                                                                              -    if (e.touches) {
                                                                                                                                                                                                                                                                                                                                              -      e = e.touches[0];
                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                              -    this.emitAction(
                                                                                                                                                                                                                                                                                                                                              -      MOUSE_DOWN,
                                                                                                                                                                                                                                                                                                                                              -      {
                                                                                                                                                                                                                                                                                                                                              -        x: e.clientX,
                                                                                                                                                                                                                                                                                                                                              -        y: e.clientY,
                                                                                                                                                                                                                                                                                                                                              -      },
                                                                                                                                                                                                                                                                                                                                              -      {
                                                                                                                                                                                                                                                                                                                                              -        x: this._el.nativeElement.offsetLeft,
                                                                                                                                                                                                                                                                                                                                              -        y: this._el.nativeElement.offsetTop,
                                                                                                                                                                                                                                                                                                                                              -      },
                                                                                                                                                                                                                                                                                                                                              -      {
                                                                                                                                                                                                                                                                                                                                              -        width: this._el.nativeElement.offsetWidth,
                                                                                                                                                                                                                                                                                                                                              -        height: this._el.nativeElement.offsetHeight,
                                                                                                                                                                                                                                                                                                                                              -      },
                                                                                                                                                                                                                                                                                                                                              -      dir,
                                                                                                                                                                                                                                                                                                                                              -    );
                                                                                                                                                                                                                                                                                                                                              -    this.emitEvent(this.resizeStart);
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  onMouseUp(e: any) {
                                                                                                                                                                                                                                                                                                                                              -    this.emitAction(RESIZE_STOP, { x: 0, y: 0 }, { x: 0, y: 0 });
                                                                                                                                                                                                                                                                                                                                              -    this.emitEvent(this.resizeEnd);
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  private emitAction(
                                                                                                                                                                                                                                                                                                                                              -    action: String,
                                                                                                                                                                                                                                                                                                                                              -    mousePosition: IPoint,
                                                                                                                                                                                                                                                                                                                                              -    startPosition?: IPoint,
                                                                                                                                                                                                                                                                                                                                              -    startSize?: ISize,
                                                                                                                                                                                                                                                                                                                                              -    startDirection?: string,
                                                                                                                                                                                                                                                                                                                                              -  ) {
                                                                                                                                                                                                                                                                                                                                              -    const options: IOptions = {
                                                                                                                                                                                                                                                                                                                                              -      minSize: { width: this.minWidth, height: this.minHeight },
                                                                                                                                                                                                                                                                                                                                              -      maxSize: { width: this.maxWidth, height: this.maxHeight },
                                                                                                                                                                                                                                                                                                                                              -      grid: this.grid,
                                                                                                                                                                                                                                                                                                                                              -      ratio: this.ratio,
                                                                                                                                                                                                                                                                                                                                              -      disabled: this.disableResize,
                                                                                                                                                                                                                                                                                                                                              -      directions: this.directions,
                                                                                                                                                                                                                                                                                                                                              -      bound: this.bound || defaultBound,
                                                                                                                                                                                                                                                                                                                                              -    };
                                                                                                                                                                                                                                                                                                                                              -    this._store.emitAction(action, mousePosition, startPosition, options, startSize, startDirection);
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  private emitEvent(output: EventEmitter<IResizeEvent>) {
                                                                                                                                                                                                                                                                                                                                              -    output.next({
                                                                                                                                                                                                                                                                                                                                              -      position: this._state.currentPosition,
                                                                                                                                                                                                                                                                                                                                              -      size: this._state.currentSize,
                                                                                                                                                                                                                                                                                                                                              -      direction: this._state.direction,
                                                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  private get _state(): IResizeState {
                                                                                                                                                                                                                                                                                                                                              -    return this._store.state;
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -  private setSize(size: ISize, pos: IPoint) {
                                                                                                                                                                                                                                                                                                                                              -    this.width = size.width;
                                                                                                                                                                                                                                                                                                                                              -    this.height = size.height;
                                                                                                                                                                                                                                                                                                                                              -    this.x = pos.x;
                                                                                                                                                                                                                                                                                                                                              -    this.y = pos.y;
                                                                                                                                                                                                                                                                                                                                              -    this._renderer.setStyle(this._el.nativeElement, 'width', this.width + 'px');
                                                                                                                                                                                                                                                                                                                                              -    this._renderer.setStyle(this._el.nativeElement, 'height', this.height + 'px');
                                                                                                                                                                                                                                                                                                                                              -    this._renderer.setStyle(this._el.nativeElement, 'left', this.x + 'px');
                                                                                                                                                                                                                                                                                                                                              -    this._renderer.setStyle(this._el.nativeElement, 'top', this.y + 'px');
                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              - resizable.component.css -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              .ngr-grabber {
                                                                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom {
                                                                                                                                                                                                                                                                                                                                              -  cursor: ns-resize;
                                                                                                                                                                                                                                                                                                                                              -  width: 100%;
                                                                                                                                                                                                                                                                                                                                              -  height: 14px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-left,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-right {
                                                                                                                                                                                                                                                                                                                                              -  cursor: ew-resize;
                                                                                                                                                                                                                                                                                                                                              -  width: 14px;
                                                                                                                                                                                                                                                                                                                                              -  height: 100%;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top::after,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom::after,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-left::after,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-right::after,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top::before,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom::before,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-left::before,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-right::before {
                                                                                                                                                                                                                                                                                                                                              -  content: '';
                                                                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                                                                              -  z-index: 1;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top::before,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom::before,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-left::before,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-right::before {
                                                                                                                                                                                                                                                                                                                                              -  border-radius: 7px;
                                                                                                                                                                                                                                                                                                                                              -  width: 7px;
                                                                                                                                                                                                                                                                                                                                              -  height: 7px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top::after,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom::after {
                                                                                                                                                                                                                                                                                                                                              -  width: 100%;
                                                                                                                                                                                                                                                                                                                                              -  height: 2px;
                                                                                                                                                                                                                                                                                                                                              -  top: 50%;
                                                                                                                                                                                                                                                                                                                                              -  left: 0;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-left::after,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-right::after {
                                                                                                                                                                                                                                                                                                                                              -  width: 2px;
                                                                                                                                                                                                                                                                                                                                              -  height: 100%;
                                                                                                                                                                                                                                                                                                                                              -  left: 50%;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top::before,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom::before {
                                                                                                                                                                                                                                                                                                                                              -  left: 50%;
                                                                                                                                                                                                                                                                                                                                              -  top: 4px;
                                                                                                                                                                                                                                                                                                                                              -  transform: translateX(-50%);
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-left::before,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-right::before {
                                                                                                                                                                                                                                                                                                                                              -  top: 50%;
                                                                                                                                                                                                                                                                                                                                              -  left: 4px;
                                                                                                                                                                                                                                                                                                                                              -  transform: translateY(-50%);
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom {
                                                                                                                                                                                                                                                                                                                                              -  left: 0;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top {
                                                                                                                                                                                                                                                                                                                                              -  top: -7px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom {
                                                                                                                                                                                                                                                                                                                                              -  bottom: -7px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-left,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-right {
                                                                                                                                                                                                                                                                                                                                              -  top: 0;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-left {
                                                                                                                                                                                                                                                                                                                                              -  left: -7px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-right {
                                                                                                                                                                                                                                                                                                                                              -  right: -7px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top-left,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top-right,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom-left,
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom-right {
                                                                                                                                                                                                                                                                                                                                              -  position: absolute;
                                                                                                                                                                                                                                                                                                                                              -  width: 12px;
                                                                                                                                                                                                                                                                                                                                              -  height: 12px;
                                                                                                                                                                                                                                                                                                                                              -  border-radius: 4px;
                                                                                                                                                                                                                                                                                                                                              -  z-index: 1;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top-left {
                                                                                                                                                                                                                                                                                                                                              -  cursor: nwse-resize;
                                                                                                                                                                                                                                                                                                                                              -  top: -5px;
                                                                                                                                                                                                                                                                                                                                              -  left: -5px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-top-right {
                                                                                                                                                                                                                                                                                                                                              -  cursor: nesw-resize;
                                                                                                                                                                                                                                                                                                                                              -  top: -5px;
                                                                                                                                                                                                                                                                                                                                              -  right: -5px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom-left {
                                                                                                                                                                                                                                                                                                                                              -  cursor: nesw-resize;
                                                                                                                                                                                                                                                                                                                                              -  bottom: -5px;
                                                                                                                                                                                                                                                                                                                                              -  left: -5px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -.ngr-grabber.ngr-bottom-right {
                                                                                                                                                                                                                                                                                                                                              -  cursor: nwse-resize;
                                                                                                                                                                                                                                                                                                                                              -  bottom: -5px;
                                                                                                                                                                                                                                                                                                                                              -  right: -5px;
                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/SalesSummaryWidgetComponent.html b/docs/components/SalesSummaryWidgetComponent.html deleted file mode 100644 index e855f58ae..000000000 --- a/docs/components/SalesSummaryWidgetComponent.html +++ /dev/null @@ -1,777 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                - libs/widgets/src/lib/components/sales-summary-widget/sales-summary-widget.component.ts -

                                                                                                                                                                                                                                                                                                                                                - - - -

                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                - AfterViewInit -

                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                selectorngx-sales-summary-widget
                                                                                                                                                                                                                                                                                                                                                styleUrls./sales-summary-widget.component.scss
                                                                                                                                                                                                                                                                                                                                                templateUrl./sales-summary-widget.component.html
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                Inputs
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                Inputs

                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                - - data - -

                                                                                                                                                                                                                                                                                                                                                - Type : ChartData - -

                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                - - options - -

                                                                                                                                                                                                                                                                                                                                                - Type : SalesSummaryWidgetOptions - -

                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                                                -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                - - - - reload - - - -
                                                                                                                                                                                                                                                                                                                                                -reload() -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                - - - - canvas - - - -
                                                                                                                                                                                                                                                                                                                                                - canvas: ElementRef - -
                                                                                                                                                                                                                                                                                                                                                - Type : ElementRef - -
                                                                                                                                                                                                                                                                                                                                                - Decorators : -
                                                                                                                                                                                                                                                                                                                                                - - @ViewChild('canvas', {read: ElementRef})
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                - - - - chart - - - -
                                                                                                                                                                                                                                                                                                                                                - chart: Chart - -
                                                                                                                                                                                                                                                                                                                                                - Type : Chart - -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                - - - - isLoading - - - -
                                                                                                                                                                                                                                                                                                                                                - isLoading: boolean - -
                                                                                                                                                                                                                                                                                                                                                - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                import { AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                -import * as Chart from 'chart.js';
                                                                                                                                                                                                                                                                                                                                                -import { ChartData } from 'chart.js';
                                                                                                                                                                                                                                                                                                                                                -import defaultsDeep from 'lodash-es/defaultsDeep';
                                                                                                                                                                                                                                                                                                                                                -import { defaultChartOptions } from '../chart-widget/chart-widget-defaults';
                                                                                                                                                                                                                                                                                                                                                -import { SalesSummaryWidgetOptions } from './sales-summary-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-sales-summary-widget',
                                                                                                                                                                                                                                                                                                                                                -  templateUrl: './sales-summary-widget.component.html',
                                                                                                                                                                                                                                                                                                                                                -  styleUrls: ['./sales-summary-widget.component.scss'],
                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                -export class SalesSummaryWidgetComponent implements AfterViewInit {
                                                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                                                -  data: ChartData;
                                                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                                                -  options: SalesSummaryWidgetOptions;
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  @ViewChild('canvas', { read: ElementRef })
                                                                                                                                                                                                                                                                                                                                                -  canvas: ElementRef;
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  chart: Chart;
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  isLoading: boolean;
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                                                -    this.chart = new Chart(this.canvas.nativeElement.getContext('2d'), {
                                                                                                                                                                                                                                                                                                                                                -      type: 'line',
                                                                                                                                                                                                                                                                                                                                                -      data: this.data,
                                                                                                                                                                                                                                                                                                                                                -      options: defaultsDeep(
                                                                                                                                                                                                                                                                                                                                                -        {
                                                                                                                                                                                                                                                                                                                                                -          scales: {
                                                                                                                                                                                                                                                                                                                                                -            xAxes: [
                                                                                                                                                                                                                                                                                                                                                -              {
                                                                                                                                                                                                                                                                                                                                                -                stacked: true,
                                                                                                                                                                                                                                                                                                                                                -              },
                                                                                                                                                                                                                                                                                                                                                -            ],
                                                                                                                                                                                                                                                                                                                                                -            yAxes: [
                                                                                                                                                                                                                                                                                                                                                -              {
                                                                                                                                                                                                                                                                                                                                                -                stacked: true,
                                                                                                                                                                                                                                                                                                                                                -              },
                                                                                                                                                                                                                                                                                                                                                -            ],
                                                                                                                                                                                                                                                                                                                                                -          },
                                                                                                                                                                                                                                                                                                                                                -          tooltips: {
                                                                                                                                                                                                                                                                                                                                                -            mode: 'index',
                                                                                                                                                                                                                                                                                                                                                -            intersect: false,
                                                                                                                                                                                                                                                                                                                                                -          },
                                                                                                                                                                                                                                                                                                                                                -          elements: {
                                                                                                                                                                                                                                                                                                                                                -            point: {
                                                                                                                                                                                                                                                                                                                                                -              radius: 0,
                                                                                                                                                                                                                                                                                                                                                -            },
                                                                                                                                                                                                                                                                                                                                                -          },
                                                                                                                                                                                                                                                                                                                                                -        },
                                                                                                                                                                                                                                                                                                                                                -        defaultChartOptions,
                                                                                                                                                                                                                                                                                                                                                -      ),
                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  reload() {
                                                                                                                                                                                                                                                                                                                                                -    this.isLoading = true;
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -    setTimeout(() => {
                                                                                                                                                                                                                                                                                                                                                -      this.isLoading = false;
                                                                                                                                                                                                                                                                                                                                                -    }, 2000);
                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                <ngx-card>
                                                                                                                                                                                                                                                                                                                                                -  <ngx-card-header>
                                                                                                                                                                                                                                                                                                                                                -    <ngx-card-header-title>
                                                                                                                                                                                                                                                                                                                                                -      {{ options.title }}
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -      <!-- <div class="gain" [class.increase]="options.gain >= 0" [class.decrease]="options.gain < 0" fxLayout="row"
                                                                                                                                                                                                                                                                                                                                                -           fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                -        <div class="percent">{{ options.gain >= 0 ? '+' : '-' }}{{ options.gain }}%</div>
                                                                                                                                                                                                                                                                                                                                                -        <mat-icon *ngIf="options.gain >= 0">trending_up</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -        <mat-icon *ngIf="options.gain < 0">trending_down</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -      </div>-->
                                                                                                                                                                                                                                                                                                                                                -    </ngx-card-header-title>
                                                                                                                                                                                                                                                                                                                                                -    <ngx-card-header-sub-title>
                                                                                                                                                                                                                                                                                                                                                -      {{ options.subTitle }}
                                                                                                                                                                                                                                                                                                                                                -    </ngx-card-header-sub-title>
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -    <ngx-card-header-actions>
                                                                                                                                                                                                                                                                                                                                                -      <button mat-icon-button (click)="reload()">
                                                                                                                                                                                                                                                                                                                                                -        <mat-icon>refresh</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -      </button>
                                                                                                                                                                                                                                                                                                                                                -      <button mat-icon-button [matMenuTriggerFor]="menu">
                                                                                                                                                                                                                                                                                                                                                -        <mat-icon>more_vert</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -      </button>
                                                                                                                                                                                                                                                                                                                                                -    </ngx-card-header-actions>
                                                                                                                                                                                                                                                                                                                                                -  </ngx-card-header>
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  <ngx-card-content class="card-content">
                                                                                                                                                                                                                                                                                                                                                -    <div class="sections" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                -      <div class="section" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                -        <div class="label">Monthly Sales</div>
                                                                                                                                                                                                                                                                                                                                                -        <div class="value" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                -          <span>473</span>
                                                                                                                                                                                                                                                                                                                                                -          <mat-icon class="indicator success">trending_up</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -        </div>
                                                                                                                                                                                                                                                                                                                                                -      </div>
                                                                                                                                                                                                                                                                                                                                                -      <div class="section" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                -        <div class="label">Sales Today</div>
                                                                                                                                                                                                                                                                                                                                                -        <div class="value" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                -          <span>46</span>
                                                                                                                                                                                                                                                                                                                                                -          <mat-icon class="indicator warn">trending_down</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -        </div>
                                                                                                                                                                                                                                                                                                                                                -      </div>
                                                                                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -    <div class="content">
                                                                                                                                                                                                                                                                                                                                                -      <canvas #canvas></canvas>
                                                                                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                                                                                -  </ngx-card-content>
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  <ngx-loading-overlay [isLoading]="isLoading"></ngx-loading-overlay>
                                                                                                                                                                                                                                                                                                                                                -</ngx-card>
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -<mat-menu #menu="matMenu">
                                                                                                                                                                                                                                                                                                                                                -  <button mat-menu-item>
                                                                                                                                                                                                                                                                                                                                                -    <mat-icon> settings</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -    <span> Settings </span>
                                                                                                                                                                                                                                                                                                                                                -  </button>
                                                                                                                                                                                                                                                                                                                                                -  <button mat-menu-item disabled>
                                                                                                                                                                                                                                                                                                                                                -    <mat-icon> more</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -    <span> More Info </span>
                                                                                                                                                                                                                                                                                                                                                -  </button>
                                                                                                                                                                                                                                                                                                                                                -  <button mat-menu-item>
                                                                                                                                                                                                                                                                                                                                                -    <mat-icon> remove_circle</mat-icon>
                                                                                                                                                                                                                                                                                                                                                -    <span> Remove Widget </span>
                                                                                                                                                                                                                                                                                                                                                -  </button>
                                                                                                                                                                                                                                                                                                                                                -</mat-menu>
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                - ./sales-summary-widget.component.scss -

                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                @import 'fu/var';
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -.gain {
                                                                                                                                                                                                                                                                                                                                                -  margin-left: $spacing/3;
                                                                                                                                                                                                                                                                                                                                                -  @include mat-typography-level-to-styles($config, caption);
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  .mat-icon {
                                                                                                                                                                                                                                                                                                                                                -    font-size: 18px;
                                                                                                                                                                                                                                                                                                                                                -    height: 18px;
                                                                                                                                                                                                                                                                                                                                                -    width: 18px;
                                                                                                                                                                                                                                                                                                                                                -    line-height: 18px;
                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  &.increase {
                                                                                                                                                                                                                                                                                                                                                -    color: $color-success;
                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  &.decrease {
                                                                                                                                                                                                                                                                                                                                                -    color: $theme-color-warn;
                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -.card-content {
                                                                                                                                                                                                                                                                                                                                                -  padding: 0 !important;
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  .sections {
                                                                                                                                                                                                                                                                                                                                                -    padding: 0 $spacing $spacing;
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -    .section {
                                                                                                                                                                                                                                                                                                                                                -      .label {
                                                                                                                                                                                                                                                                                                                                                -        @include mat-typography-level-to-styles($config, body-1);
                                                                                                                                                                                                                                                                                                                                                -        color: $theme-secondary-text;
                                                                                                                                                                                                                                                                                                                                                -        text-transform: uppercase;
                                                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -      .value {
                                                                                                                                                                                                                                                                                                                                                -        @include mat-typography-level-to-styles($config, display-1);
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -        .indicator {
                                                                                                                                                                                                                                                                                                                                                -          margin-left: $spacing/8;
                                                                                                                                                                                                                                                                                                                                                -          font-size: 32px;
                                                                                                                                                                                                                                                                                                                                                -          height: 32px;
                                                                                                                                                                                                                                                                                                                                                -          width: 32px;
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -          &.success {
                                                                                                                                                                                                                                                                                                                                                -            color: $color-success;
                                                                                                                                                                                                                                                                                                                                                -          }
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -          &.primary {
                                                                                                                                                                                                                                                                                                                                                -            color: $theme-color-primary;
                                                                                                                                                                                                                                                                                                                                                -          }
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -          &.accent {
                                                                                                                                                                                                                                                                                                                                                -            color: $theme-color-accent;
                                                                                                                                                                                                                                                                                                                                                -          }
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -          &.warn {
                                                                                                                                                                                                                                                                                                                                                -            color: $theme-color-warn;
                                                                                                                                                                                                                                                                                                                                                -          }
                                                                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -  .content {
                                                                                                                                                                                                                                                                                                                                                -    max-width: 100%;
                                                                                                                                                                                                                                                                                                                                                -    display: flex;
                                                                                                                                                                                                                                                                                                                                                -    flex: 1;
                                                                                                                                                                                                                                                                                                                                                -    position: relative;
                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ScrollToTopComponent.html b/docs/components/ScrollToTopComponent.html deleted file mode 100644 index 30f0580f9..000000000 --- a/docs/components/ScrollToTopComponent.html +++ /dev/null @@ -1,657 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  - libs/scroll-to-top/src/lib/scroll-to-top.component.ts -

                                                                                                                                                                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  - AfterViewInit - OnDestroy -

                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  selectorscroll-to-top
                                                                                                                                                                                                                                                                                                                                                  styleUrls./scroll-to-top.component.scss
                                                                                                                                                                                                                                                                                                                                                  templateUrl./scroll-to-top.component.html
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  -constructor(pageScrollService: PageScrollService, document: any) -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                  pageScrollService - PageScrollService - - No -
                                                                                                                                                                                                                                                                                                                                                  document - any - - No -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                                                  -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                                                                                                  -ngOnDestroy() -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  - - - - scrollToTop - - - -
                                                                                                                                                                                                                                                                                                                                                  -scrollToTop() -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _stateSubject - - - -
                                                                                                                                                                                                                                                                                                                                                  - _stateSubject: - -
                                                                                                                                                                                                                                                                                                                                                  - Default value : new BehaviorSubject<string>(ShowStatus.hide) -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  - - - - pageScrollInstance - - - -
                                                                                                                                                                                                                                                                                                                                                  - pageScrollInstance: PageScrollInstance - -
                                                                                                                                                                                                                                                                                                                                                  - Type : PageScrollInstance - -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  - - - - state$ - - - -
                                                                                                                                                                                                                                                                                                                                                  - state$: - -
                                                                                                                                                                                                                                                                                                                                                  - Default value : this._stateSubject.asObservable() -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  import { AfterViewInit, Component, Inject, OnDestroy } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                  -import { DOCUMENT } from '@angular/common';
                                                                                                                                                                                                                                                                                                                                                  -import { scrollFabAnimation } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                                                                                                                                  -import { PageScrollInstance, PageScrollService } from 'ngx-page-scroll';
                                                                                                                                                                                                                                                                                                                                                  -import { distinctUntilChanged, map, share, tap, throttleTime } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                  -import { BehaviorSubject, fromEvent } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                  -import { untilDestroy } from '@ngx-starter-kit/ngx-utils';
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -enum ShowStatus {
                                                                                                                                                                                                                                                                                                                                                  -  show = 'show',
                                                                                                                                                                                                                                                                                                                                                  -  hide = 'hide',
                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                                                                  -  selector: 'scroll-to-top',
                                                                                                                                                                                                                                                                                                                                                  -  templateUrl: './scroll-to-top.component.html',
                                                                                                                                                                                                                                                                                                                                                  -  styleUrls: ['./scroll-to-top.component.scss'],
                                                                                                                                                                                                                                                                                                                                                  -  animations: [scrollFabAnimation],
                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                  -export class ScrollToTopComponent implements AfterViewInit, OnDestroy {
                                                                                                                                                                                                                                                                                                                                                  -  private _stateSubject = new BehaviorSubject<string>(ShowStatus.hide);
                                                                                                                                                                                                                                                                                                                                                  -  state$ = this._stateSubject.asObservable();
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -  pageScrollInstance: PageScrollInstance;
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -  constructor(private pageScrollService: PageScrollService, @Inject(DOCUMENT) private document: any) {}
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                                                  -    this.pageScrollInstance = PageScrollInstance.simpleInstance(this.document, '#top');
                                                                                                                                                                                                                                                                                                                                                  -    const scroll$ = fromEvent(window, 'scroll').pipe(
                                                                                                                                                                                                                                                                                                                                                  -      throttleTime(10),
                                                                                                                                                                                                                                                                                                                                                  -      map(() => window.pageYOffset),
                                                                                                                                                                                                                                                                                                                                                  -      map(y => {
                                                                                                                                                                                                                                                                                                                                                  -        if (y > 100) {
                                                                                                                                                                                                                                                                                                                                                  -          return ShowStatus.show;
                                                                                                                                                                                                                                                                                                                                                  -        } else {
                                                                                                                                                                                                                                                                                                                                                  -          return ShowStatus.hide;
                                                                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                                                                  -      }),
                                                                                                                                                                                                                                                                                                                                                  -      distinctUntilChanged(),
                                                                                                                                                                                                                                                                                                                                                  -      share(),
                                                                                                                                                                                                                                                                                                                                                  -      tap(state => this._stateSubject.next(state)),
                                                                                                                                                                                                                                                                                                                                                  -      untilDestroy(this),
                                                                                                                                                                                                                                                                                                                                                  -    );
                                                                                                                                                                                                                                                                                                                                                  -    scroll$.subscribe();
                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -  ngOnDestroy() {}
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -  scrollToTop() {
                                                                                                                                                                                                                                                                                                                                                  -    this.pageScrollService.start(this.pageScrollInstance);
                                                                                                                                                                                                                                                                                                                                                  -    // //use if PageScrollService not installed.
                                                                                                                                                                                                                                                                                                                                                  -    // (function smoothscroll() {
                                                                                                                                                                                                                                                                                                                                                  -    //   const currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
                                                                                                                                                                                                                                                                                                                                                  -    //   if (currentScroll > 0) {
                                                                                                                                                                                                                                                                                                                                                  -    //     window.requestAnimationFrame(smoothscroll);
                                                                                                                                                                                                                                                                                                                                                  -    //     window.scrollTo(0, currentScroll - currentScroll / 20);
                                                                                                                                                                                                                                                                                                                                                  -    //   }
                                                                                                                                                                                                                                                                                                                                                  -    // })();
                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  <button mat-fab class="scroll-to-top"  (click)="scrollToTop()" [@scrollAnimation]="state$ | async">
                                                                                                                                                                                                                                                                                                                                                  -  <mat-icon>keyboard_arrow_up</mat-icon>
                                                                                                                                                                                                                                                                                                                                                  -</button>
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  - ./scroll-to-top.component.scss -

                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  .scroll-to-top {
                                                                                                                                                                                                                                                                                                                                                  -  position: fixed !important;
                                                                                                                                                                                                                                                                                                                                                  -  bottom: 25px;
                                                                                                                                                                                                                                                                                                                                                  -  right: 25px;
                                                                                                                                                                                                                                                                                                                                                  -  z-index: 5;
                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ScrollbarComponent.html b/docs/components/ScrollbarComponent.html deleted file mode 100644 index 37bb27816..000000000 --- a/docs/components/ScrollbarComponent.html +++ /dev/null @@ -1,492 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    - libs/scrollbar/src/lib/scrollbar.component.ts -

                                                                                                                                                                                                                                                                                                                                                    - - - -

                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    Implements

                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    - OnInit -

                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    selectorngx-scrollbar
                                                                                                                                                                                                                                                                                                                                                    styleUrls./scrollbar.component.scss
                                                                                                                                                                                                                                                                                                                                                    templateUrl./scrollbar.component.html
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    -constructor(_element: ElementRef, zone: NgZone) -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                    _element - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                    zone - NgZone - - No -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                    -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    - - - - element - - - -
                                                                                                                                                                                                                                                                                                                                                    - element: ElementRef - -
                                                                                                                                                                                                                                                                                                                                                    - Type : ElementRef - -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    - - - - scrollbarRef - - - -
                                                                                                                                                                                                                                                                                                                                                    - scrollbarRef: Scrollbar - -
                                                                                                                                                                                                                                                                                                                                                    - Type : Scrollbar - -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    import { Component, ElementRef, NgZone, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                    -import Scrollbar from 'smooth-scrollbar';
                                                                                                                                                                                                                                                                                                                                                    -import { scrollbarOptions } from './scrollbar-options';
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-scrollbar',
                                                                                                                                                                                                                                                                                                                                                    -  templateUrl: './scrollbar.component.html',
                                                                                                                                                                                                                                                                                                                                                    -  styleUrls: ['./scrollbar.component.scss'],
                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                    -export class ScrollbarComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                    -  scrollbarRef: Scrollbar;
                                                                                                                                                                                                                                                                                                                                                    -  element: ElementRef;
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -  constructor(private _element: ElementRef, private zone: NgZone) {}
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                    -    this.element = this._element;
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -    const options = scrollbarOptions;
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -    this.zone.runOutsideAngular(() => {
                                                                                                                                                                                                                                                                                                                                                    -      this.scrollbarRef = Scrollbar.init(this.element.nativeElement, options);
                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    <ng-content></ng-content>
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    - ./scrollbar.component.scss -

                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/SearchBarComponent.html b/docs/components/SearchBarComponent.html deleted file mode 100644 index e776dfbd8..000000000 --- a/docs/components/SearchBarComponent.html +++ /dev/null @@ -1,840 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      - libs/toolbar/src/lib/components/search-bar/search-bar.component.ts -

                                                                                                                                                                                                                                                                                                                                                      - - - -

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      Implements

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      - OnInit -

                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      selectorngx-search-bar
                                                                                                                                                                                                                                                                                                                                                      styleUrls./search-bar.component.scss
                                                                                                                                                                                                                                                                                                                                                      templateUrl./search-bar.component.html
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      -constructor(router: Router, sidenavService: MenuService) -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                      router - Router - - No -
                                                                                                                                                                                                                                                                                                                                                      sidenavService - MenuService - - No -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      - - - - closeDropdown - - - -
                                                                                                                                                                                                                                                                                                                                                      -closeDropdown() -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                      -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      - - - - openDropdown - - - -
                                                                                                                                                                                                                                                                                                                                                      -openDropdown() -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      - - - - focused - - - -
                                                                                                                                                                                                                                                                                                                                                      - focused: boolean - -
                                                                                                                                                                                                                                                                                                                                                      - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      - - - - input - - - -
                                                                                                                                                                                                                                                                                                                                                      - input: string - -
                                                                                                                                                                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      - - - - recentlyVisited - - - -
                                                                                                                                                                                                                                                                                                                                                      - recentlyVisited: MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                      - Type : MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                      - Default value : [] -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                      -import { NavigationEnd, Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                      -import { MenuItem, MenuService } from '@ngx-starter-kit/navigator';
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-search-bar',
                                                                                                                                                                                                                                                                                                                                                      -  templateUrl: './search-bar.component.html',
                                                                                                                                                                                                                                                                                                                                                      -  styleUrls: ['./search-bar.component.scss'],
                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                      -export class SearchBarComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                      -  input: string;
                                                                                                                                                                                                                                                                                                                                                      -  focused: boolean;
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  recentlyVisited: MenuItem[] = [];
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  constructor(private router: Router, private sidenavService: MenuService) {}
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                      -    this.router.events.subscribe(event => {
                                                                                                                                                                                                                                                                                                                                                      -      if (event instanceof NavigationEnd) {
                                                                                                                                                                                                                                                                                                                                                      -        const item = this.sidenavService.getItemByRoute(event.urlAfterRedirects);
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -        if (item) {
                                                                                                                                                                                                                                                                                                                                                      -          const index = this.recentlyVisited.indexOf(item);
                                                                                                                                                                                                                                                                                                                                                      -          if (index > -1) {
                                                                                                                                                                                                                                                                                                                                                      -            this.recentlyVisited.splice(index, 1);
                                                                                                                                                                                                                                                                                                                                                      -          }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -          this.recentlyVisited.unshift(item);
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -          if (this.recentlyVisited.length > 5) {
                                                                                                                                                                                                                                                                                                                                                      -            this.recentlyVisited.pop();
                                                                                                                                                                                                                                                                                                                                                      -          }
                                                                                                                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  openDropdown() {
                                                                                                                                                                                                                                                                                                                                                      -    this.focused = true;
                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  closeDropdown() {
                                                                                                                                                                                                                                                                                                                                                      -    this.focused = false;
                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      <div class="search-wrapper" fxLayout="row" [ngClass]="{ 'focus': focused, 'has-input': input }" fxFlex (ngxClickOutside)="closeDropdown()">
                                                                                                                                                                                                                                                                                                                                                      -  <mat-icon class="search-icon">search</mat-icon>
                                                                                                                                                                                                                                                                                                                                                      -  <input #searchInput type="search"
                                                                                                                                                                                                                                                                                                                                                      -         autocomplete="off"
                                                                                                                                                                                                                                                                                                                                                      -         spellcheck="false"
                                                                                                                                                                                                                                                                                                                                                      -         class="search-input"
                                                                                                                                                                                                                                                                                                                                                      -         (focus)="openDropdown()"
                                                                                                                                                                                                                                                                                                                                                      -         placeholder="Search...">
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  <div class="search-dropdown mat-elevation-z1">
                                                                                                                                                                                                                                                                                                                                                      -    <div class="content results" *ngIf="input" fxLayout="column">
                                                                                                                                                                                                                                                                                                                                                      -      <div class="heading" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                      -        <mat-icon class="icon">search</mat-icon>
                                                                                                                                                                                                                                                                                                                                                      -        Search results for: {{ searchInput.value }}
                                                                                                                                                                                                                                                                                                                                                      -      </div>
                                                                                                                                                                                                                                                                                                                                                      -      <div class="items">
                                                                                                                                                                                                                                                                                                                                                      -        <div class="item" matRipple>Overview</div>
                                                                                                                                                                                                                                                                                                                                                      -        <div class="item" matRipple>Dashboard</div>
                                                                                                                                                                                                                                                                                                                                                      -        <div class="item" matRipple>Servers</div>
                                                                                                                                                                                                                                                                                                                                                      -        <div class="item" matRipple>Grid</div>
                                                                                                                                                                                                                                                                                                                                                      -        <div class="item" matRipple>Profile</div>
                                                                                                                                                                                                                                                                                                                                                      -        <div class="item" matRipple>Home</div>
                                                                                                                                                                                                                                                                                                                                                      -      </div>
                                                                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -    <div class="content recents" fxLayout="row" *ngIf="!input">
                                                                                                                                                                                                                                                                                                                                                      -      <div class="recently" fxLayout="column" fxFlex>
                                                                                                                                                                                                                                                                                                                                                      -        <div class="heading" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                      -          <mat-icon class="icon">restore</mat-icon>
                                                                                                                                                                                                                                                                                                                                                      -          Recently Visited
                                                                                                                                                                                                                                                                                                                                                      -        </div>
                                                                                                                                                                                                                                                                                                                                                      -        <div class="items">
                                                                                                                                                                                                                                                                                                                                                      -          <div class="item" matRipple *ngFor="let item of recentlyVisited" [routerLink]="item.route" (click)="closeDropdown()">{{ item.name }}</div>
                                                                                                                                                                                                                                                                                                                                                      -        </div>
                                                                                                                                                                                                                                                                                                                                                      -      </div>
                                                                                                                                                                                                                                                                                                                                                      -      <div class="frequently" fxLayout="column" fxFlex fxFlexOffset="16px">
                                                                                                                                                                                                                                                                                                                                                      -        <div class="heading" fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                      -          <mat-icon class="icon">youtube_searched_for</mat-icon>
                                                                                                                                                                                                                                                                                                                                                      -          Frequently Visited
                                                                                                                                                                                                                                                                                                                                                      -        </div>
                                                                                                                                                                                                                                                                                                                                                      -        <div class="items">
                                                                                                                                                                                                                                                                                                                                                      -          <div class="item" matRipple [routerLink]="['/dashboard']">Dashboard</div>
                                                                                                                                                                                                                                                                                                                                                      -          <div class="item" matRipple [routerLink]="['/dashboard/overview']">Overview</div>
                                                                                                                                                                                                                                                                                                                                                      -          <div class="item" matRipple [routerLink]="['/dashboard/experiments']">Experiments</div>
                                                                                                                                                                                                                                                                                                                                                      -          <div class="item" matRipple [routerLink]="['/dashboard/grid']">Grid</div>
                                                                                                                                                                                                                                                                                                                                                      -          <div class="item" matRipple [routerLink]="['/dashboard/experiments/animations']">Animations</div>
                                                                                                                                                                                                                                                                                                                                                      -          <div class="item" matRipple [routerLink]="['/home']">Home</div>
                                                                                                                                                                                                                                                                                                                                                      -        </div>
                                                                                                                                                                                                                                                                                                                                                      -      </div>
                                                                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                                                                      -  </div>
                                                                                                                                                                                                                                                                                                                                                      -</div>
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      - ./search-bar.component.scss -

                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      @import 'var';
                                                                                                                                                                                                                                                                                                                                                      -@import '~@angular/material/theming';
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -$config: mat-typography-config();
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -:host {
                                                                                                                                                                                                                                                                                                                                                      -  display: block;
                                                                                                                                                                                                                                                                                                                                                      -  width: 100%;
                                                                                                                                                                                                                                                                                                                                                      -  //@include mat-typography-level-to-styles($config, subheading-1);
                                                                                                                                                                                                                                                                                                                                                      -  font: 400 16px/16px Roboto, 'Helvetica Neue', sans-serif;
                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -input[type='search'] {
                                                                                                                                                                                                                                                                                                                                                      -  -webkit-appearance: none;
                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -.search-wrapper {
                                                                                                                                                                                                                                                                                                                                                      -  position: relative;
                                                                                                                                                                                                                                                                                                                                                      -  width: 100%;
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  .search-icon {
                                                                                                                                                                                                                                                                                                                                                      -    position: absolute;
                                                                                                                                                                                                                                                                                                                                                      -    font-size: 24px;
                                                                                                                                                                                                                                                                                                                                                      -    top: 6px;
                                                                                                                                                                                                                                                                                                                                                      -    left: 24px;
                                                                                                                                                                                                                                                                                                                                                      -    transition: color 0.2s ease;
                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  input.search-input {
                                                                                                                                                                                                                                                                                                                                                      -    display: block;
                                                                                                                                                                                                                                                                                                                                                      -    padding: 8px 8px 8px 72px;
                                                                                                                                                                                                                                                                                                                                                      -    box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.12);
                                                                                                                                                                                                                                                                                                                                                      -    height: 36px;
                                                                                                                                                                                                                                                                                                                                                      -    transition: all 0.2s ease;
                                                                                                                                                                                                                                                                                                                                                      -    border: none;
                                                                                                                                                                                                                                                                                                                                                      -    font-size: 16px;
                                                                                                                                                                                                                                                                                                                                                      -    appearance: textfield;
                                                                                                                                                                                                                                                                                                                                                      -    font-weight: 300;
                                                                                                                                                                                                                                                                                                                                                      -    outline: none;
                                                                                                                                                                                                                                                                                                                                                      -    border-radius: 3px;
                                                                                                                                                                                                                                                                                                                                                      -    box-sizing: border-box;
                                                                                                                                                                                                                                                                                                                                                      -    color: currentColor;
                                                                                                                                                                                                                                                                                                                                                      -    background: rgba(48, 52, 65, 0.05);
                                                                                                                                                                                                                                                                                                                                                      -    width: 100%;
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -    &:hover {
                                                                                                                                                                                                                                                                                                                                                      -      background: rgba(48, 52, 65, 0.1);
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -    &::-webkit-input-placeholder {
                                                                                                                                                                                                                                                                                                                                                      -      color: currentColor;
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -    &:-moz-placeholder {
                                                                                                                                                                                                                                                                                                                                                      -      opacity: 1;
                                                                                                                                                                                                                                                                                                                                                      -      color: currentColor;
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -    &::-moz-placeholder {
                                                                                                                                                                                                                                                                                                                                                      -      opacity: 1;
                                                                                                                                                                                                                                                                                                                                                      -      color: currentColor;
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -    &:-ms-input-placeholder {
                                                                                                                                                                                                                                                                                                                                                      -      color: currentColor;
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  &.focus {
                                                                                                                                                                                                                                                                                                                                                      -    .search-icon {
                                                                                                                                                                                                                                                                                                                                                      -      color: rgba(0, 0, 0, 0.87);
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -    input.search-input {
                                                                                                                                                                                                                                                                                                                                                      -      background: white;
                                                                                                                                                                                                                                                                                                                                                      -      background: rgba(48, 52, 65, 0.1);
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -      &::-webkit-input-placeholder {
                                                                                                                                                                                                                                                                                                                                                      -        color: rgba(0, 0, 0, 0.87);
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -      &:-moz-placeholder {
                                                                                                                                                                                                                                                                                                                                                      -        opacity: 1;
                                                                                                                                                                                                                                                                                                                                                      -        color: rgba(0, 0, 0, 0.87);
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -      &::-moz-placeholder {
                                                                                                                                                                                                                                                                                                                                                      -        opacity: 1;
                                                                                                                                                                                                                                                                                                                                                      -        color: rgba(0, 0, 0, 0.87);
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -      &:-ms-input-placeholder {
                                                                                                                                                                                                                                                                                                                                                      -        color: rgba(0, 0, 0, 0.87);
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -    .search-dropdown {
                                                                                                                                                                                                                                                                                                                                                      -      transform: translateY(0);
                                                                                                                                                                                                                                                                                                                                                      -      visibility: visible;
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -  .search-dropdown {
                                                                                                                                                                                                                                                                                                                                                      -    background: white;
                                                                                                                                                                                                                                                                                                                                                      -    position: absolute;
                                                                                                                                                                                                                                                                                                                                                      -    top: (($height__main_toolbar - 36px) / 2) + 36px; // 36px is the height of the search-bar
                                                                                                                                                                                                                                                                                                                                                      -    width: 100%;
                                                                                                                                                                                                                                                                                                                                                      -    z-index: -1;
                                                                                                                                                                                                                                                                                                                                                      -    transform: translateY(-110%);
                                                                                                                                                                                                                                                                                                                                                      -    visibility: hidden;
                                                                                                                                                                                                                                                                                                                                                      -    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -    .content {
                                                                                                                                                                                                                                                                                                                                                      -      padding: 16px;
                                                                                                                                                                                                                                                                                                                                                      -      font-size: 14px;
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -      .heading {
                                                                                                                                                                                                                                                                                                                                                      -        font-size: 13px;
                                                                                                                                                                                                                                                                                                                                                      -        color: #888;
                                                                                                                                                                                                                                                                                                                                                      -        margin-bottom: 2px;
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -        .icon {
                                                                                                                                                                                                                                                                                                                                                      -          font-size: 20px;
                                                                                                                                                                                                                                                                                                                                                      -          height: 20px;
                                                                                                                                                                                                                                                                                                                                                      -          width: 20px;
                                                                                                                                                                                                                                                                                                                                                      -          line-height: 20px;
                                                                                                                                                                                                                                                                                                                                                      -          margin-right: 6px;
                                                                                                                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -      .items {
                                                                                                                                                                                                                                                                                                                                                      -        .item {
                                                                                                                                                                                                                                                                                                                                                      -          position: relative;
                                                                                                                                                                                                                                                                                                                                                      -          padding: 8px 0 6px 26px;
                                                                                                                                                                                                                                                                                                                                                      -          margin: 2px 0;
                                                                                                                                                                                                                                                                                                                                                      -          cursor: pointer;
                                                                                                                                                                                                                                                                                                                                                      -          transition: background 0.1s;
                                                                                                                                                                                                                                                                                                                                                      -          outline: none;
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -          &:hover {
                                                                                                                                                                                                                                                                                                                                                      -            background: #efefef;
                                                                                                                                                                                                                                                                                                                                                      -          }
                                                                                                                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -      &.recents {
                                                                                                                                                                                                                                                                                                                                                      -        .recently {
                                                                                                                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -        .frequently {
                                                                                                                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -      &.results {
                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/SearchComponent.html b/docs/components/SearchComponent.html deleted file mode 100644 index a06b48260..000000000 --- a/docs/components/SearchComponent.html +++ /dev/null @@ -1,582 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        - libs/toolbar/src/lib/components/search/search.component.ts -

                                                                                                                                                                                                                                                                                                                                                        - - - -

                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        Implements

                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        - OnInit -

                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        selectorngx-search
                                                                                                                                                                                                                                                                                                                                                        styleUrls./search.component.scss
                                                                                                                                                                                                                                                                                                                                                        templateUrl./search.component.html
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        -constructor() -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        - - - - close - - - -
                                                                                                                                                                                                                                                                                                                                                        -close() -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                        -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        - - - - open - - - -
                                                                                                                                                                                                                                                                                                                                                        -open() -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        - - - - input - - - -
                                                                                                                                                                                                                                                                                                                                                        - input: ElementRef - -
                                                                                                                                                                                                                                                                                                                                                        - Type : ElementRef - -
                                                                                                                                                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                                                                                                                                                        - - @ViewChild('input', {read: ElementRef})
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        - - - - isOpen - - - -
                                                                                                                                                                                                                                                                                                                                                        - isOpen: boolean - -
                                                                                                                                                                                                                                                                                                                                                        - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                                                                                                                        -  selector: 'ngx-search',
                                                                                                                                                                                                                                                                                                                                                        -  templateUrl: './search.component.html',
                                                                                                                                                                                                                                                                                                                                                        -  styleUrls: ['./search.component.scss'],
                                                                                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                                                                                        -export class SearchComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                        -  isOpen: boolean;
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -  @ViewChild('input', { read: ElementRef })
                                                                                                                                                                                                                                                                                                                                                        -  input: ElementRef;
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -  open() {
                                                                                                                                                                                                                                                                                                                                                        -    this.isOpen = true;
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -    setTimeout(() => {
                                                                                                                                                                                                                                                                                                                                                        -      this.input.nativeElement.focus();
                                                                                                                                                                                                                                                                                                                                                        -    }, 100);
                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -  close() {
                                                                                                                                                                                                                                                                                                                                                        -    this.isOpen = false;
                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        <div fxLayout="row" fxLayoutAlign="center stretch" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                        -  <button class="search-button" mat-button (click)="open()">
                                                                                                                                                                                                                                                                                                                                                        -    <mat-icon>search</mat-icon>
                                                                                                                                                                                                                                                                                                                                                        -  </button>
                                                                                                                                                                                                                                                                                                                                                        -  <mat-form-field class="search" [class.search-open]="isOpen" fxFlex="auto">
                                                                                                                                                                                                                                                                                                                                                        -    <input #input (blur)="close()" matInput placeholder="Search...">
                                                                                                                                                                                                                                                                                                                                                        -  </mat-form-field>
                                                                                                                                                                                                                                                                                                                                                        -</div>
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        - ./search.component.scss -

                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        @import 'fu/var';
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -.search-button {
                                                                                                                                                                                                                                                                                                                                                        -  border-radius: 0;
                                                                                                                                                                                                                                                                                                                                                        -  padding: 0;
                                                                                                                                                                                                                                                                                                                                                        -  min-width: $toolbar-button-width;
                                                                                                                                                                                                                                                                                                                                                        -  max-width: $toolbar-button-width;
                                                                                                                                                                                                                                                                                                                                                        -  color: $toolbar-button-icon-color;
                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -.search {
                                                                                                                                                                                                                                                                                                                                                        -  width: 0;
                                                                                                                                                                                                                                                                                                                                                        -  overflow: hidden;
                                                                                                                                                                                                                                                                                                                                                        -  opacity: 0;
                                                                                                                                                                                                                                                                                                                                                        -  visibility: hidden;
                                                                                                                                                                                                                                                                                                                                                        -  transition: all 0.4s cubic-bezier(0.35, 0, 0.25, 1);
                                                                                                                                                                                                                                                                                                                                                        -  margin-top: 8px;
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -  &.search-open {
                                                                                                                                                                                                                                                                                                                                                        -    width: 250px;
                                                                                                                                                                                                                                                                                                                                                        -    visibility: visible;
                                                                                                                                                                                                                                                                                                                                                        -    opacity: 1;
                                                                                                                                                                                                                                                                                                                                                        -    margin-left: 8px;
                                                                                                                                                                                                                                                                                                                                                        -    margin-right: 8px;
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -    @include media-xs {
                                                                                                                                                                                                                                                                                                                                                        -      max-width: 60vw;
                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/SidenavComponent.html b/docs/components/SidenavComponent.html deleted file mode 100644 index 300cfe268..000000000 --- a/docs/components/SidenavComponent.html +++ /dev/null @@ -1,826 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          - libs/sidenav/src/lib/sidenav.component.ts -

                                                                                                                                                                                                                                                                                                                                                          - - - -

                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          Implements

                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          - OnInit - OnDestroy -

                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          encapsulationViewEncapsulation.None
                                                                                                                                                                                                                                                                                                                                                          selectorngx-sidenav
                                                                                                                                                                                                                                                                                                                                                          styleUrls./sidenav.component.scss
                                                                                                                                                                                                                                                                                                                                                          templateUrl./sidenav.component.html
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          -constructor(router: Router, menuService: MenuService, snackBar: MatSnackBar, cd: ChangeDetectorRef) -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                          router - Router - - No -
                                                                                                                                                                                                                                                                                                                                                          menuService - MenuService - - No -
                                                                                                                                                                                                                                                                                                                                                          snackBar - MatSnackBar - - No -
                                                                                                                                                                                                                                                                                                                                                          cd - ChangeDetectorRef - - No -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          - - - - isIconSidenav - - - -
                                                                                                                                                                                                                                                                                                                                                          -isIconSidenav() -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - Returns : boolean - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                                                                                                          -ngOnDestroy() -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                          -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          - - - - toggleIconSidenav - - - -
                                                                                                                                                                                                                                                                                                                                                          -toggleIconSidenav() -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                          - Properties -

                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          - - - - Private - _destroyed$ - - - -
                                                                                                                                                                                                                                                                                                                                                          - _destroyed$: - -
                                                                                                                                                                                                                                                                                                                                                          - Default value : new Subject<void>() -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          - - - - items - - - -
                                                                                                                                                                                                                                                                                                                                                          - items: MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                          - Type : MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          import {
                                                                                                                                                                                                                                                                                                                                                          -  Component,
                                                                                                                                                                                                                                                                                                                                                          -  OnInit,
                                                                                                                                                                                                                                                                                                                                                          -  ViewEncapsulation,
                                                                                                                                                                                                                                                                                                                                                          -  OnDestroy,
                                                                                                                                                                                                                                                                                                                                                          -  HostBinding,
                                                                                                                                                                                                                                                                                                                                                          -  ChangeDetectorRef,
                                                                                                                                                                                                                                                                                                                                                          -  HostListener,
                                                                                                                                                                                                                                                                                                                                                          -} from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                          -import { Router, NavigationEnd } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                          -import { Observable, Subject, Subscription } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -import { MatSnackBar, MatSnackBarConfig } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                          -import { MenuItem, MenuService, SidenavState } from '@ngx-starter-kit/navigator';
                                                                                                                                                                                                                                                                                                                                                          -import { untilDestroy } from '@ngx-starter-kit/ngx-utils';
                                                                                                                                                                                                                                                                                                                                                          -// import { sidenavAnimation } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-sidenav',
                                                                                                                                                                                                                                                                                                                                                          -  templateUrl: './sidenav.component.html',
                                                                                                                                                                                                                                                                                                                                                          -  styleUrls: ['./sidenav.component.scss'],
                                                                                                                                                                                                                                                                                                                                                          -  // animations: [sidenavAnimation]
                                                                                                                                                                                                                                                                                                                                                          -  encapsulation: ViewEncapsulation.None,
                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                          -export class SidenavComponent implements OnInit, OnDestroy {
                                                                                                                                                                                                                                                                                                                                                          -  private _destroyed$ = new Subject<void>();
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  items: MenuItem[];
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  constructor(
                                                                                                                                                                                                                                                                                                                                                          -    private router: Router,
                                                                                                                                                                                                                                                                                                                                                          -    private menuService: MenuService,
                                                                                                                                                                                                                                                                                                                                                          -    private snackBar: MatSnackBar,
                                                                                                                                                                                                                                                                                                                                                          -    private cd: ChangeDetectorRef,
                                                                                                                                                                                                                                                                                                                                                          -  ) {}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                          -    this.menuService.items$.pipe(untilDestroy(this)).subscribe((items: MenuItem[]) => {
                                                                                                                                                                                                                                                                                                                                                          -      this.items = items;
                                                                                                                                                                                                                                                                                                                                                          -    });
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -    // this.router.events.pipe(untilDestroy(this))
                                                                                                                                                                                                                                                                                                                                                          -    //   .subscribe(event => {
                                                                                                                                                                                                                                                                                                                                                          -    //   if (event instanceof NavigationEnd) {
                                                                                                                                                                                                                                                                                                                                                          -    //     this.menuService.setCurrentlyOpenByRoute(event.url);
                                                                                                                                                                                                                                                                                                                                                          -    //     // setTimeout(() => {
                                                                                                                                                                                                                                                                                                                                                          -    //     //   window.dispatchEvent(new Event('resize'));
                                                                                                                                                                                                                                                                                                                                                          -    //     // }, 400);
                                                                                                                                                                                                                                                                                                                                                          -    //     this.cd.markForCheck();
                                                                                                                                                                                                                                                                                                                                                          -    //   }
                                                                                                                                                                                                                                                                                                                                                          -    // });
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  ngOnDestroy() {}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  toggleIconSidenav() {
                                                                                                                                                                                                                                                                                                                                                          -    setTimeout(() => {
                                                                                                                                                                                                                                                                                                                                                          -      window.dispatchEvent(new Event('resize'));
                                                                                                                                                                                                                                                                                                                                                          -    }, 300);
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -    this.menuService.isIconSidenav = !this.menuService.isIconSidenav;
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -    const snackBarConfig: MatSnackBarConfig = <MatSnackBarConfig>{
                                                                                                                                                                                                                                                                                                                                                          -      duration: 10000,
                                                                                                                                                                                                                                                                                                                                                          -    };
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -    if (this.menuService.isIconSidenav) {
                                                                                                                                                                                                                                                                                                                                                          -      this.snackBar.open(
                                                                                                                                                                                                                                                                                                                                                          -        'You activated Icon-Sidenav, move your mouse to the content and see what happens!',
                                                                                                                                                                                                                                                                                                                                                          -        '',
                                                                                                                                                                                                                                                                                                                                                          -        snackBarConfig,
                                                                                                                                                                                                                                                                                                                                                          -      );
                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  isIconSidenav(): boolean {
                                                                                                                                                                                                                                                                                                                                                          -    return this.menuService.isIconSidenav;
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          <div class="sidenav-container" fxLayout="column">
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  <mat-toolbar class="sidenav-toolbar mat-elevation-z2">
                                                                                                                                                                                                                                                                                                                                                          -    <div fxLayout="row" style="width: 100%;">
                                                                                                                                                                                                                                                                                                                                                          -      <span style="width: 22px; text-align: center; margin-left: -3px;" fxFlexAlign="center"><img src="assets/img/logo-icon2.png" style="width: 25px; vertical-align: text-top;"></span>
                                                                                                                                                                                                                                                                                                                                                          -      <img style="height: 35px; margin-left: 24px; margin-bottom: -5px;" src="assets/img/logo_text.png" fxFlexAlign="center" class="fade-in-on-icon-sidenav">
                                                                                                                                                                                                                                                                                                                                                          -      <span fxFlex><!-- fill space --></span>
                                                                                                                                                                                                                                                                                                                                                          -      <div fxHide="true" fxHide.gt-sm="false" fxFlexAlign="center">
                                                                                                                                                                                                                                                                                                                                                          -        <button mat-icon-button (click)="toggleIconSidenav()">
                                                                                                                                                                                                                                                                                                                                                          -          <mat-icon class="icon-sidenav-toggle fade-in-on-icon-sidenav" [class.rotate]="isIconSidenav()">chevron_left</mat-icon>
                                                                                                                                                                                                                                                                                                                                                          -        </button>
                                                                                                                                                                                                                                                                                                                                                          -      </div>
                                                                                                                                                                                                                                                                                                                                                          -    </div>
                                                                                                                                                                                                                                                                                                                                                          -  </mat-toolbar>
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  <div class="sidenav-scrollbar-container" fxLayout="column">
                                                                                                                                                                                                                                                                                                                                                          -    <perfect-scrollbar>
                                                                                                                                                                                                                                                                                                                                                          -      <mat-nav-list fxLayout="column" class="sidenav-list sidenav-toplevel">
                                                                                                                                                                                                                                                                                                                                                          -        <ngx-sidenav-item *ngFor="let item of items" [item]="item"></ngx-sidenav-item>
                                                                                                                                                                                                                                                                                                                                                          -      </mat-nav-list>
                                                                                                                                                                                                                                                                                                                                                          -    </perfect-scrollbar>
                                                                                                                                                                                                                                                                                                                                                          -  </div>
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -</div>
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          - ./sidenav.component.scss -

                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          @import 'var';
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -mat-toolbar.mat-toolbar.sidenav-toolbar {
                                                                                                                                                                                                                                                                                                                                                          -  background: $background-color__sidenav-toolbar;
                                                                                                                                                                                                                                                                                                                                                          -  padding: 0 14px 0 24px;
                                                                                                                                                                                                                                                                                                                                                          -  z-index: 3;
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -.sidenav-container,
                                                                                                                                                                                                                                                                                                                                                          -.sidenav-scrollbar-container {
                                                                                                                                                                                                                                                                                                                                                          -  height: 100%;
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -.cdk-focus-trap-content,
                                                                                                                                                                                                                                                                                                                                                          -mat-sidenav {
                                                                                                                                                                                                                                                                                                                                                          -  overflow-y: hidden !important;
                                                                                                                                                                                                                                                                                                                                                          -  overflow-x: hidden;
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -.icon-sidenav-toggle {
                                                                                                                                                                                                                                                                                                                                                          -  color: $color__sidenav-list;
                                                                                                                                                                                                                                                                                                                                                          -  transition: transform 0.25s;
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  &.rotate {
                                                                                                                                                                                                                                                                                                                                                          -    transform: rotate(-180deg);
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -//Moved
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -.sidenav {
                                                                                                                                                                                                                                                                                                                                                          -  width: $width__sidenav;
                                                                                                                                                                                                                                                                                                                                                          -  max-width: $width__sidenav;
                                                                                                                                                                                                                                                                                                                                                          -  background: $background-color__sidenav-list;
                                                                                                                                                                                                                                                                                                                                                          -  overflow-x: hidden;
                                                                                                                                                                                                                                                                                                                                                          -  z-index: $z-index__mat-sidenav;
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -@keyframes fadein {
                                                                                                                                                                                                                                                                                                                                                          -  0% {
                                                                                                                                                                                                                                                                                                                                                          -    opacity: 0;
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -  100% {
                                                                                                                                                                                                                                                                                                                                                          -    opacity: 1;
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -@keyframes fadeout {
                                                                                                                                                                                                                                                                                                                                                          -  0% {
                                                                                                                                                                                                                                                                                                                                                          -    opacity: 1;
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -  100% {
                                                                                                                                                                                                                                                                                                                                                          -    opacity: 0;
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -@media screen and (min-width: 960px) {
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav + .cdk-visually-hidden + .mat-drawer-content,
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav + .mat-drawer-content {
                                                                                                                                                                                                                                                                                                                                                          -    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                                                                                                                                                                                                                                                                                                                                                          -    transition-property: transform, max-width, margin-left, margin-right !important;
                                                                                                                                                                                                                                                                                                                                                          -    margin-left: 0 !important;
                                                                                                                                                                                                                                                                                                                                                          -    background: #eee;
                                                                                                                                                                                                                                                                                                                                                          -    z-index: $z-index__mat-sidenav-content;
                                                                                                                                                                                                                                                                                                                                                          -    overflow: hidden;
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -    box-shadow: inset 7px 0 9px -7px rgba(0, 0, 0, 0.4);
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav + .cdk-visually-hidden + .mat-drawer-content,
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav + .mat-drawer-content {
                                                                                                                                                                                                                                                                                                                                                          -    max-width: calc(100% - #{$width__sidenav});
                                                                                                                                                                                                                                                                                                                                                          -    transform: translate3d($width__sidenav, 0, 0) !important;
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav.icon-sidenav.collapsed + .cdk-visually-hidden + .mat-drawer-content,
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav.icon-sidenav.collapsed + .mat-drawer-content {
                                                                                                                                                                                                                                                                                                                                                          -    max-width: calc(100% - #{$max-width__icon-sidenav});
                                                                                                                                                                                                                                                                                                                                                          -    transform: translate3d($max-width__icon-sidenav, 0, 0) !important;
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav.icon-sidenav + .cdk-visually-hidden + .mat-drawer-content,
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav.icon-sidenav + .mat-drawer-content {
                                                                                                                                                                                                                                                                                                                                                          -    max-width: calc(100% - #{$max-width__icon-sidenav});
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -  .sidenav {
                                                                                                                                                                                                                                                                                                                                                          -    &.collapsed {
                                                                                                                                                                                                                                                                                                                                                          -      //max-width: $max-width__icon-sidenav; // Padding width + icon width
                                                                                                                                                                                                                                                                                                                                                          -      //min-width: $max-width__icon-sidenav;
                                                                                                                                                                                                                                                                                                                                                          -      .fade-in-on-icon-sidenav {
                                                                                                                                                                                                                                                                                                                                                          -        //noinspection CssInvalidPropertyValue
                                                                                                                                                                                                                                                                                                                                                          -        animation: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadeout;
                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -    &:not(.collapsed) {
                                                                                                                                                                                                                                                                                                                                                          -      .fade-in-on-icon-sidenav {
                                                                                                                                                                                                                                                                                                                                                          -        //noinspection CssInvalidPropertyValue
                                                                                                                                                                                                                                                                                                                                                          -        animation: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadein;
                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/SidenavItemComponent.html b/docs/components/SidenavItemComponent.html deleted file mode 100644 index c0f4a6dff..000000000 --- a/docs/components/SidenavItemComponent.html +++ /dev/null @@ -1,933 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            - libs/sidenav/src/lib/components/sidenav-item/sidenav-item.component.ts -

                                                                                                                                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            - OnInit -

                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            encapsulationViewEncapsulation.None
                                                                                                                                                                                                                                                                                                                                                            selectorngx-sidenav-item
                                                                                                                                                                                                                                                                                                                                                            styleUrls./sidenav-item.component.scss
                                                                                                                                                                                                                                                                                                                                                            templateUrl./sidenav-item.component.html
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            Inputs
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            HostBindings
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            -constructor(menuService: MenuService) -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                            menuService - MenuService - - No -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            Inputs

                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            - - item - -

                                                                                                                                                                                                                                                                                                                                                            - Type : MenuItem - -

                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            HostBindings

                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            - - - - class.open - - - -
                                                                                                                                                                                                                                                                                                                                                            - class.open: - -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            - - - - class.sidenav-item - - - -
                                                                                                                                                                                                                                                                                                                                                            - class.sidenav-item: - -
                                                                                                                                                                                                                                                                                                                                                            - Default value : true -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            - - - - Private - getOpenSubItemsCount - - - -
                                                                                                                                                                                                                                                                                                                                                            - - getOpenSubItemsCount(item: MenuItem) -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                            item - MenuItem - - No -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - Returns : number - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            - - - - getSubItemsHeight - - - -
                                                                                                                                                                                                                                                                                                                                                            -getSubItemsHeight() -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - Returns : string - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            - - - - toggleDropdown - - - -
                                                                                                                                                                                                                                                                                                                                                            -toggleDropdown() -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            import { Component, OnInit, ViewEncapsulation, HostBinding } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                            -import { Input } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                            -import { MenuItem, MenuService } from '@ngx-starter-kit/navigator';
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-sidenav-item',
                                                                                                                                                                                                                                                                                                                                                            -  templateUrl: './sidenav-item.component.html',
                                                                                                                                                                                                                                                                                                                                                            -  styleUrls: ['./sidenav-item.component.scss'],
                                                                                                                                                                                                                                                                                                                                                            -  encapsulation: ViewEncapsulation.None,
                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                            -export class SidenavItemComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                                                                                                                                            -  item: MenuItem;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.open')
                                                                                                                                                                                                                                                                                                                                                            -  get isOpen() {
                                                                                                                                                                                                                                                                                                                                                            -    return this.menuService.isOpen(this.item);
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.sidenav-item')
                                                                                                                                                                                                                                                                                                                                                            -  sidenavItemClass = true;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  constructor(private menuService: MenuService) {}
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  toggleDropdown(): void {
                                                                                                                                                                                                                                                                                                                                                            -    if (this.item.children && this.item.children.length > 0) {
                                                                                                                                                                                                                                                                                                                                                            -      this.menuService.toggleItemOpen(this.item);
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  // Receives the count of Sub Items and multiplies it with 48 (height of one SidenavItem) to set the height for animation.
                                                                                                                                                                                                                                                                                                                                                            -  getSubItemsHeight(): string {
                                                                                                                                                                                                                                                                                                                                                            -    return this.getOpenSubItemsCount(this.item) * 48 + 'px';
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  // Counts the amount of Sub Items there is and returns the count.
                                                                                                                                                                                                                                                                                                                                                            -  private getOpenSubItemsCount(item: MenuItem): number {
                                                                                                                                                                                                                                                                                                                                                            -    let count = 0;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    if (item.children && item.children.length > 0 && this.menuService.isOpen(item)) {
                                                                                                                                                                                                                                                                                                                                                            -      count += item.children.length;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -      item.children.forEach(subItem => {
                                                                                                                                                                                                                                                                                                                                                            -        count += this.getOpenSubItemsCount(subItem);
                                                                                                                                                                                                                                                                                                                                                            -      });
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    return count;
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            <ng-container *ngIf="item.disabled !== true">
                                                                                                                                                                                                                                                                                                                                                            -  <a class="sidenav-anchor"
                                                                                                                                                                                                                                                                                                                                                            -     *ngIf="!(item.children?.length > 0); else elseBlock"
                                                                                                                                                                                                                                                                                                                                                            -     mat-list-item matRipple
                                                                                                                                                                                                                                                                                                                                                            -     [routerLink]="[item.link]"
                                                                                                                                                                                                                                                                                                                                                            -     routerLinkActive="active"
                                                                                                                                                                                                                                                                                                                                                            -     [routerLinkActiveOptions]="{exact: true}">
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    <mat-icon>{{ item.icon }}</mat-icon>
                                                                                                                                                                                                                                                                                                                                                            -    <span class="sidenav-item-name fade-in-on-icon-sidenav">{{ item.name }}</span>
                                                                                                                                                                                                                                                                                                                                                            -    <span fxFlex><!-- fill space --></span>
                                                                                                                                                                                                                                                                                                                                                            -    <span class="badge fade-in-on-icon-sidenav" *ngIf="item.badge"
                                                                                                                                                                                                                                                                                                                                                            -          [style.background-color]="item.badgeColor">{{ item.badge }}</span>
                                                                                                                                                                                                                                                                                                                                                            -  </a>
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  <ng-template #elseBlock>
                                                                                                                                                                                                                                                                                                                                                            -    <a class="sidenav-anchor"
                                                                                                                                                                                                                                                                                                                                                            -       mat-list-item matRipple
                                                                                                                                                                                                                                                                                                                                                            -       (click)="toggleDropdown()">
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -      <mat-icon>{{ item.icon }}</mat-icon>
                                                                                                                                                                                                                                                                                                                                                            -      <span class="sidenav-item-name fade-in-on-icon-sidenav">{{ item.name }}</span>
                                                                                                                                                                                                                                                                                                                                                            -      <span fxFlex><!-- fill space --></span>
                                                                                                                                                                                                                                                                                                                                                            -      <!--<span class="badge fade-in-on-icon-sidenav" *ngIf="item.badge" -->
                                                                                                                                                                                                                                                                                                                                                            -            <!--[style.background-color]="item.badge.color" style="margin-right: 12px;">{{ item.badge.value }}</span>-->
                                                                                                                                                                                                                                                                                                                                                            -      <mat-icon class="sidenav-item-dropdown-indicator rotate fade-in-on-icon-sidenav">expand_more</mat-icon>
                                                                                                                                                                                                                                                                                                                                                            -    </a>
                                                                                                                                                                                                                                                                                                                                                            -  </ng-template>
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  <mat-nav-list class="sidenav-list sidenav-list-nested" fxLayout="column" [style.height]="getSubItemsHeight()">
                                                                                                                                                                                                                                                                                                                                                            -    <ngx-sidenav-item *ngFor="let submenu of item.children" [item]="submenu"></ngx-sidenav-item>
                                                                                                                                                                                                                                                                                                                                                            -  </mat-nav-list>
                                                                                                                                                                                                                                                                                                                                                            -</ng-container>
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            - ./sidenav-item.component.scss -

                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            @import 'var';
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -:host {
                                                                                                                                                                                                                                                                                                                                                            -  display: block;
                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -mat-nav-list a.sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -  &.mat-list-item .mat-list-item-content {
                                                                                                                                                                                                                                                                                                                                                            -    padding-left: $padding-left-right__sidenav-list__mat-list-item;
                                                                                                                                                                                                                                                                                                                                                            -    padding-right: $padding-left-right__sidenav-list__mat-list-item;
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  .sidenav-item-name {
                                                                                                                                                                                                                                                                                                                                                            -    margin-left: $margin-left__sidenav-list__item-name;
                                                                                                                                                                                                                                                                                                                                                            -    font-size: 14px;
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  mat-icon {
                                                                                                                                                                                                                                                                                                                                                            -    width: $width-height__sidenav-list__icon;
                                                                                                                                                                                                                                                                                                                                                            -    height: $width-height__sidenav-list__icon;
                                                                                                                                                                                                                                                                                                                                                            -    font-size: 18px;
                                                                                                                                                                                                                                                                                                                                                            -    line-height: 18px;
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -.sidenav-list {
                                                                                                                                                                                                                                                                                                                                                            -  transition: height 0.4s cubic-bezier(0.35, 0, 0.25, 1);
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  > ngx-sidenav-item {
                                                                                                                                                                                                                                                                                                                                                            -    &.open {
                                                                                                                                                                                                                                                                                                                                                            -      > .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -        .sidenav-item-dropdown-indicator {
                                                                                                                                                                                                                                                                                                                                                            -          transform: rotate(180deg);
                                                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    .sidenav-item-dropdown-indicator {
                                                                                                                                                                                                                                                                                                                                                            -      transition: transform 0.25s;
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    .badge {
                                                                                                                                                                                                                                                                                                                                                            -      padding: 4px 8px;
                                                                                                                                                                                                                                                                                                                                                            -      font-size: 12px;
                                                                                                                                                                                                                                                                                                                                                            -      background: #2196f3;
                                                                                                                                                                                                                                                                                                                                                            -      border-radius: 5px;
                                                                                                                                                                                                                                                                                                                                                            -      color: #fff;
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -.sidenav-toplevel {
                                                                                                                                                                                                                                                                                                                                                            -  // Every sidenav-anchor in this sidenav
                                                                                                                                                                                                                                                                                                                                                            -  .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -    position: relative;
                                                                                                                                                                                                                                                                                                                                                            -    cursor: pointer;
                                                                                                                                                                                                                                                                                                                                                            -    color: $color__sidenav-list;
                                                                                                                                                                                                                                                                                                                                                            -    transition: color 0.1s;
                                                                                                                                                                                                                                                                                                                                                            -    outline: none;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    &:hover {
                                                                                                                                                                                                                                                                                                                                                            -      color: #ffffff;
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    &.active {
                                                                                                                                                                                                                                                                                                                                                            -      color: #ffffff;
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  > .sidenav-item {
                                                                                                                                                                                                                                                                                                                                                            -    // Top Level Item
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    > .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -      &:hover {
                                                                                                                                                                                                                                                                                                                                                            -        background: $background-color__sidenav-list__hover;
                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -      &.active {
                                                                                                                                                                                                                                                                                                                                                            -        background: $background-color__sidenav-list__active;
                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    > .sidenav-list-nested > .sidenav-item {
                                                                                                                                                                                                                                                                                                                                                            -      // Level 1 aka 1st Dropdown
                                                                                                                                                                                                                                                                                                                                                            -      background: $background-color__sidenav-list__level1;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -      > .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -        &:hover {
                                                                                                                                                                                                                                                                                                                                                            -          background: $background-color__sidenav-list__level1__hover;
                                                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -        &.active {
                                                                                                                                                                                                                                                                                                                                                            -          background: $background-color__sidenav-list__level1__active;
                                                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -      > .sidenav-list-nested > .sidenav-item {
                                                                                                                                                                                                                                                                                                                                                            -        // Level 2
                                                                                                                                                                                                                                                                                                                                                            -        background: $background-color__sidenav-list__level2;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -        > .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -          padding-left: $padding__sidenav-item__level2;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -          &:hover {
                                                                                                                                                                                                                                                                                                                                                            -            background: $background-color__sidenav-list__level2__hover;
                                                                                                                                                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -          &.active {
                                                                                                                                                                                                                                                                                                                                                            -            background: $background-color__sidenav-list__level2__active;
                                                                                                                                                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -        > .sidenav-list-nested > .sidenav-item {
                                                                                                                                                                                                                                                                                                                                                            -          // Level 3
                                                                                                                                                                                                                                                                                                                                                            -          background: $background-color__sidenav-list__level3;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -          > .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -            padding-left: $padding__sidenav-item__level3;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -            &:hover {
                                                                                                                                                                                                                                                                                                                                                            -              background: $background-color__sidenav-list__level3__hover;
                                                                                                                                                                                                                                                                                                                                                            -            }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -            &.active {
                                                                                                                                                                                                                                                                                                                                                            -              background: $background-color__sidenav-list__level3__active;
                                                                                                                                                                                                                                                                                                                                                            -            }
                                                                                                                                                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -          > .sidenav-list-nested > .sidenav-item {
                                                                                                                                                                                                                                                                                                                                                            -            // Level 4
                                                                                                                                                                                                                                                                                                                                                            -            background: $background-color__sidenav-list__level4;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -            > .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -              padding-left: $padding__sidenav-item__level4;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -              &:hover {
                                                                                                                                                                                                                                                                                                                                                            -                background: $background-color__sidenav-list__level4__hover;
                                                                                                                                                                                                                                                                                                                                                            -              }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -              &.active {
                                                                                                                                                                                                                                                                                                                                                            -                background: $background-color__sidenav-list__level4__active;
                                                                                                                                                                                                                                                                                                                                                            -              }
                                                                                                                                                                                                                                                                                                                                                            -            }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -            > .sidenav-list-nested > .sidenav-item {
                                                                                                                                                                                                                                                                                                                                                            -              // Level 5
                                                                                                                                                                                                                                                                                                                                                            -              background: $background-color__sidenav-list__level5;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -              > .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -                padding-left: $padding__sidenav-item__level5;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -                &:hover {
                                                                                                                                                                                                                                                                                                                                                            -                  background: $background-color__sidenav-list__level5__hover;
                                                                                                                                                                                                                                                                                                                                                            -                }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -                &.active {
                                                                                                                                                                                                                                                                                                                                                            -                  background: $background-color__sidenav-list__level5__active;
                                                                                                                                                                                                                                                                                                                                                            -                }
                                                                                                                                                                                                                                                                                                                                                            -              }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -              .sidenav-list-nested > .sidenav-item {
                                                                                                                                                                                                                                                                                                                                                            -                // Infinite Levels after
                                                                                                                                                                                                                                                                                                                                                            -                > .sidenav-anchor {
                                                                                                                                                                                                                                                                                                                                                            -                  padding-left: $padding__sidenav-item__level6;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -                  &:hover {
                                                                                                                                                                                                                                                                                                                                                            -                    background: $background-color__sidenav-list__level6__hover;
                                                                                                                                                                                                                                                                                                                                                            -                  }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -                  &.active {
                                                                                                                                                                                                                                                                                                                                                            -                    background: $background-color__sidenav-list__level6__active;
                                                                                                                                                                                                                                                                                                                                                            -                  }
                                                                                                                                                                                                                                                                                                                                                            -                }
                                                                                                                                                                                                                                                                                                                                                            -              }
                                                                                                                                                                                                                                                                                                                                                            -            }
                                                                                                                                                                                                                                                                                                                                                            -          }
                                                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -  .sidenav-item .sidenav-list-nested {
                                                                                                                                                                                                                                                                                                                                                            -    position: relative;
                                                                                                                                                                                                                                                                                                                                                            -    padding: 0;
                                                                                                                                                                                                                                                                                                                                                            -    overflow: hidden;
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    &:before,
                                                                                                                                                                                                                                                                                                                                                            -    &:after {
                                                                                                                                                                                                                                                                                                                                                            -      content: ' ';
                                                                                                                                                                                                                                                                                                                                                            -      left: 0;
                                                                                                                                                                                                                                                                                                                                                            -      position: absolute;
                                                                                                                                                                                                                                                                                                                                                            -      width: 100%;
                                                                                                                                                                                                                                                                                                                                                            -      height: 2px;
                                                                                                                                                                                                                                                                                                                                                            -      z-index: 3;
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    &:before {
                                                                                                                                                                                                                                                                                                                                                            -      background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0, transparent);
                                                                                                                                                                                                                                                                                                                                                            -      top: 0;
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -    &:after {
                                                                                                                                                                                                                                                                                                                                                            -      background: linear-gradient(-180deg, rgba(0, 0, 0, 0.3) 0, transparent);
                                                                                                                                                                                                                                                                                                                                                            -      bottom: 0;
                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/SidenavToggleComponent.html b/docs/components/SidenavToggleComponent.html deleted file mode 100644 index cc6e25a7b..000000000 --- a/docs/components/SidenavToggleComponent.html +++ /dev/null @@ -1,439 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              - libs/toolbar/src/lib/components/sidenav-toggle/sidenav-toggle.component.ts -

                                                                                                                                                                                                                                                                                                                                                              - - - -

                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              - OnInit -

                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              selectorngx-sidenav-toggle
                                                                                                                                                                                                                                                                                                                                                              styleUrls./sidenav-toggle.component.scss
                                                                                                                                                                                                                                                                                                                                                              templateUrl./sidenav-toggle.component.html
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              Inputs
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              -constructor() -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              Inputs

                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              - - sidenav - -

                                                                                                                                                                                                                                                                                                                                                              - Type : MatSidenav - -

                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                              -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              - - - - openSidenav - - - -
                                                                                                                                                                                                                                                                                                                                                              -openSidenav() -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              import { Component, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                              -import { MatSidenav } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-sidenav-toggle',
                                                                                                                                                                                                                                                                                                                                                              -  templateUrl: './sidenav-toggle.component.html',
                                                                                                                                                                                                                                                                                                                                                              -  styleUrls: ['./sidenav-toggle.component.scss'],
                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                              -export class SidenavToggleComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                                              -  sidenav: MatSidenav;
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -  openSidenav() {
                                                                                                                                                                                                                                                                                                                                                              -    this.sidenav.open();
                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              <button class="button" (click)="openSidenav()" mat-icon-button fxHide.gt-md>
                                                                                                                                                                                                                                                                                                                                                              -  <mat-icon>menu</mat-icon>
                                                                                                                                                                                                                                                                                                                                                              -</button>
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              - ./sidenav-toggle.component.scss -

                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              @import 'fu/var';
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -.button {
                                                                                                                                                                                                                                                                                                                                                              -  color: $toolbar-button-icon-color;
                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/StickyTableComponent.html b/docs/components/StickyTableComponent.html deleted file mode 100644 index ff958a792..000000000 --- a/docs/components/StickyTableComponent.html +++ /dev/null @@ -1,974 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                - libs/experiments/src/lib/containers/sticky-table/sticky-table.component.ts -

                                                                                                                                                                                                                                                                                                                                                                - - - -

                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                - AfterViewInit -

                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                selectorngx-sticky-table
                                                                                                                                                                                                                                                                                                                                                                styleUrls./sticky-table.component.scss
                                                                                                                                                                                                                                                                                                                                                                templateUrl./sticky-table.component.html
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                                                                -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                - - - - crumbs - - - -
                                                                                                                                                                                                                                                                                                                                                                - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                                                                                - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                                                                                - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Sticky Table' }, - ] -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                - - - - dataSource - - - -
                                                                                                                                                                                                                                                                                                                                                                - dataSource: - -
                                                                                                                                                                                                                                                                                                                                                                - Default value : new MatTableDataSource<Element>(ELEMENT_DATA) -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                - - - - displayedColumns - - - -
                                                                                                                                                                                                                                                                                                                                                                - displayedColumns: [] - -
                                                                                                                                                                                                                                                                                                                                                                - Type : [] - -
                                                                                                                                                                                                                                                                                                                                                                - Default value : [ - 'position', - 'name', - 'weight', - 'symbol', - 'test', - 'test1', - 'test2', - 'test3', - 'test4', - 'test5', - 'test6', - 'test7', - 'test8', - ] -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                - - - - paginator - - - -
                                                                                                                                                                                                                                                                                                                                                                - paginator: MatPaginator - -
                                                                                                                                                                                                                                                                                                                                                                - Type : MatPaginator - -
                                                                                                                                                                                                                                                                                                                                                                - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                - - @ViewChild(MatPaginator)
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                import { AfterViewInit, Component, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                -import { MatPaginator, MatTableDataSource } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                                -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -/* tslint:disable:max-line-length */
                                                                                                                                                                                                                                                                                                                                                                -const ELEMENT_DATA: Element[] = [
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 1,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Hydrogen',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 1.0079,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'H',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 2,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Helium',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 4.0026,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'He',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 3,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Lithium',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 6.941,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Li',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 4,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Beryllium',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 9.0122,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Be',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 5,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Boron',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 10.811,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'B',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 6,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Carbon',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 12.0107,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'C',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 7,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Nitrogen',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 14.0067,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'N',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 8,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Oxygen',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 15.9994,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'O',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 9,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Fluorine',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 18.9984,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'F',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 10,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Neon',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 20.1797,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Ne',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 11,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Sodium',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 22.9897,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Na',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 12,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Magnesium',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 24.305,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Mg',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 13,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Aluminum',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 26.9815,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Al',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 14,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Silicon',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 28.0855,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Si',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 15,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Phosphorus',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 30.9738,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'P',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 16,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Sulfur',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 32.065,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'S',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                -    position: 17,
                                                                                                                                                                                                                                                                                                                                                                -    name: 'Chlorine',
                                                                                                                                                                                                                                                                                                                                                                -    weight: 35.453,
                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Cl',
                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                -];
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-sticky-table',
                                                                                                                                                                                                                                                                                                                                                                -  templateUrl: './sticky-table.component.html',
                                                                                                                                                                                                                                                                                                                                                                -  styleUrls: ['./sticky-table.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                -export class StickyTableComponent implements AfterViewInit {
                                                                                                                                                                                                                                                                                                                                                                -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Sticky Table' },
                                                                                                                                                                                                                                                                                                                                                                -  ];
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -  displayedColumns = [
                                                                                                                                                                                                                                                                                                                                                                -    'position',
                                                                                                                                                                                                                                                                                                                                                                -    'name',
                                                                                                                                                                                                                                                                                                                                                                -    'weight',
                                                                                                                                                                                                                                                                                                                                                                -    'symbol',
                                                                                                                                                                                                                                                                                                                                                                -    'test',
                                                                                                                                                                                                                                                                                                                                                                -    'test1',
                                                                                                                                                                                                                                                                                                                                                                -    'test2',
                                                                                                                                                                                                                                                                                                                                                                -    'test3',
                                                                                                                                                                                                                                                                                                                                                                -    'test4',
                                                                                                                                                                                                                                                                                                                                                                -    'test5',
                                                                                                                                                                                                                                                                                                                                                                -    'test6',
                                                                                                                                                                                                                                                                                                                                                                -    'test7',
                                                                                                                                                                                                                                                                                                                                                                -    'test8',
                                                                                                                                                                                                                                                                                                                                                                -  ];
                                                                                                                                                                                                                                                                                                                                                                -  dataSource = new MatTableDataSource<Element>(ELEMENT_DATA);
                                                                                                                                                                                                                                                                                                                                                                -  @ViewChild(MatPaginator)
                                                                                                                                                                                                                                                                                                                                                                -  paginator: MatPaginator;
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                                                                -    this.dataSource.paginator = this.paginator;
                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -export interface Element {
                                                                                                                                                                                                                                                                                                                                                                -  name: string;
                                                                                                                                                                                                                                                                                                                                                                -  position: number;
                                                                                                                                                                                                                                                                                                                                                                -  weight: number;
                                                                                                                                                                                                                                                                                                                                                                -  symbol: string;
                                                                                                                                                                                                                                                                                                                                                                -  test: string;
                                                                                                                                                                                                                                                                                                                                                                -  test1: string;
                                                                                                                                                                                                                                                                                                                                                                -  test2: string;
                                                                                                                                                                                                                                                                                                                                                                -  test3: string;
                                                                                                                                                                                                                                                                                                                                                                -  test4: string;
                                                                                                                                                                                                                                                                                                                                                                -  test5: string;
                                                                                                                                                                                                                                                                                                                                                                -  test6: string;
                                                                                                                                                                                                                                                                                                                                                                -  test7: string;
                                                                                                                                                                                                                                                                                                                                                                -  test8: string;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -/**  Copyright 2018 Google Inc. All Rights Reserved.
                                                                                                                                                                                                                                                                                                                                                                - Use of this source code is governed by an MIT-style license that
                                                                                                                                                                                                                                                                                                                                                                - can be found in the LICENSE file at http://angular.io/license */
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                <ngx-breadcrumbs title="Experiments" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -<div class="example-container mat-elevation-z8">
                                                                                                                                                                                                                                                                                                                                                                -  <mat-table #table [dataSource]="dataSource">
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -    <!--- Note that these columns can be defined in any order.
                                                                                                                                                                                                                                                                                                                                                                -          The actual rendered columns are set as a property on the row definition" -->
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -    <!-- Position Column -->
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="position" sticky>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> No. </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.position}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -    <!-- Name Column -->
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="name">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> Name </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.name}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -    <!-- Weight Column -->
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="weight">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> Weight </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.weight}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -    <!-- Symbol Column -->
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="symbol" sticky>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> Symbol </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.symbol}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test1">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test1 </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test1}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test2">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test2 </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test2}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test3">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test3 </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test3}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test4">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test4 </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test4}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test5">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test5 </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test5}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test6">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test6 </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test6}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test7">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test7 </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test7}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -    <ng-container matColumnDef="test8">
                                                                                                                                                                                                                                                                                                                                                                -      <mat-header-cell *matHeaderCellDef> test8 </mat-header-cell>
                                                                                                                                                                                                                                                                                                                                                                -      <mat-cell *matCellDef="let element"> {{element.test8}} </mat-cell>
                                                                                                                                                                                                                                                                                                                                                                -    </ng-container>
                                                                                                                                                                                                                                                                                                                                                                -    <mat-header-row *matHeaderRowDef="displayedColumns ; sticky: true"></mat-header-row>
                                                                                                                                                                                                                                                                                                                                                                -    <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
                                                                                                                                                                                                                                                                                                                                                                -  </mat-table>
                                                                                                                                                                                                                                                                                                                                                                -  <mat-paginator #paginator
                                                                                                                                                                                                                                                                                                                                                                -                 [pageSize]="10"
                                                                                                                                                                                                                                                                                                                                                                -                 [pageSizeOptions]="[5, 10, 20]"
                                                                                                                                                                                                                                                                                                                                                                -                 [showFirstLastButtons]="true">
                                                                                                                                                                                                                                                                                                                                                                -  </mat-paginator>
                                                                                                                                                                                                                                                                                                                                                                -</div>
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                - ./sticky-table.component.scss -

                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                :host {
                                                                                                                                                                                                                                                                                                                                                                -  display: block;
                                                                                                                                                                                                                                                                                                                                                                -  padding: 1.5%;
                                                                                                                                                                                                                                                                                                                                                                -  position: relative;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -.example-container {
                                                                                                                                                                                                                                                                                                                                                                -  display: flex;
                                                                                                                                                                                                                                                                                                                                                                -  flex-direction: column;
                                                                                                                                                                                                                                                                                                                                                                -  max-height: 500px;
                                                                                                                                                                                                                                                                                                                                                                -  min-width: 300px;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.container {
                                                                                                                                                                                                                                                                                                                                                                -  background-color: white;
                                                                                                                                                                                                                                                                                                                                                                -  border: 1.5px solid black;
                                                                                                                                                                                                                                                                                                                                                                -  border-radius: 10px;
                                                                                                                                                                                                                                                                                                                                                                -  text-align: center;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.mat-table {
                                                                                                                                                                                                                                                                                                                                                                -  position: relative;
                                                                                                                                                                                                                                                                                                                                                                -  overflow: auto;
                                                                                                                                                                                                                                                                                                                                                                -  max-height: 500px;
                                                                                                                                                                                                                                                                                                                                                                -  width: 100%;
                                                                                                                                                                                                                                                                                                                                                                -  background-color: rgba(255, 255, 255, 0.959);
                                                                                                                                                                                                                                                                                                                                                                -  height: 100vh;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.container {
                                                                                                                                                                                                                                                                                                                                                                -  background-color: white;
                                                                                                                                                                                                                                                                                                                                                                -  border: 1.5px solid black;
                                                                                                                                                                                                                                                                                                                                                                -  border-radius: 10px;
                                                                                                                                                                                                                                                                                                                                                                -  text-align: center;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.mat-form-field-underline {
                                                                                                                                                                                                                                                                                                                                                                -  background-color: transparent;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.mat-form-field-flex {
                                                                                                                                                                                                                                                                                                                                                                -  font-size: 14px;
                                                                                                                                                                                                                                                                                                                                                                -  line-height: 1em;
                                                                                                                                                                                                                                                                                                                                                                -  color: #555;
                                                                                                                                                                                                                                                                                                                                                                -  background-image: none;
                                                                                                                                                                                                                                                                                                                                                                -  border: 1px solid #ccc;
                                                                                                                                                                                                                                                                                                                                                                -  border-radius: 4px;
                                                                                                                                                                                                                                                                                                                                                                -  margin-top: 8px;
                                                                                                                                                                                                                                                                                                                                                                -  padding: 2px;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.mat-form-field-wrapper {
                                                                                                                                                                                                                                                                                                                                                                -  padding-bottom: 1.25em;
                                                                                                                                                                                                                                                                                                                                                                -  padding-top: 1.25em;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.mat-form-field-infix {
                                                                                                                                                                                                                                                                                                                                                                -  border: 0px;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.mat-paginator {
                                                                                                                                                                                                                                                                                                                                                                -  background-color: white;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -.mat-row,
                                                                                                                                                                                                                                                                                                                                                                -.mat-header-row {
                                                                                                                                                                                                                                                                                                                                                                -  min-width: 1123px;
                                                                                                                                                                                                                                                                                                                                                                -  width: 100%;
                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/SvgViewerComponent.html b/docs/components/SvgViewerComponent.html deleted file mode 100644 index 93ae9ce52..000000000 --- a/docs/components/SvgViewerComponent.html +++ /dev/null @@ -1,627 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  - libs/svg-viewer/src/lib/svg-viewer.component.ts -

                                                                                                                                                                                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  - OnInit -

                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  providers - SvgViewerService -
                                                                                                                                                                                                                                                                                                                                                                  selectorsvg-viewer
                                                                                                                                                                                                                                                                                                                                                                  template
                                                                                                                                                                                                                                                                                                                                                                  <div class="svg-viewer" aria-hidden="true"></div>
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  Inputs
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  -constructor(elementRef: ElementRef, renderer: Renderer2, svgViewerService: SvgViewerService) -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                  elementRef - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                  renderer - Renderer2 - - No -
                                                                                                                                                                                                                                                                                                                                                                  svgViewerService - SvgViewerService - - No -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  Inputs

                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  - - scaleToContainer - -

                                                                                                                                                                                                                                                                                                                                                                  - Type : boolean - -

                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  - - src - -

                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -

                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - fetchAndInlineSvgContent - - - -
                                                                                                                                                                                                                                                                                                                                                                  - - fetchAndInlineSvgContent(path: string) -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                  path - string - - No -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - inlineSvgContent - - - -
                                                                                                                                                                                                                                                                                                                                                                  - - inlineSvgContent(svg: SVGElement) -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                  svg - SVGElement - - No -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                  -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  import { Component, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                  -import { SvgViewerService } from './svg-viewer.service';
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                                                                                  -  selector: 'svg-viewer',
                                                                                                                                                                                                                                                                                                                                                                  -  template: '<div class="svg-viewer" aria-hidden="true"></div>',
                                                                                                                                                                                                                                                                                                                                                                  -  providers: [SvgViewerService],
                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                  -export class SvgViewerComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                                                                                                                                  -  src: string;
                                                                                                                                                                                                                                                                                                                                                                  -  @Input()
                                                                                                                                                                                                                                                                                                                                                                  -  scaleToContainer: boolean;
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -  constructor(
                                                                                                                                                                                                                                                                                                                                                                  -    private elementRef: ElementRef,
                                                                                                                                                                                                                                                                                                                                                                  -    private renderer: Renderer2,
                                                                                                                                                                                                                                                                                                                                                                  -    private svgViewerService: SvgViewerService,
                                                                                                                                                                                                                                                                                                                                                                  -  ) {}
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                                  -    this.fetchAndInlineSvgContent(this.src);
                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -  private inlineSvgContent(svg: SVGElement) {
                                                                                                                                                                                                                                                                                                                                                                  -    const el = this.elementRef.nativeElement;
                                                                                                                                                                                                                                                                                                                                                                  -    el.innerHTML = '';
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -    if (this.scaleToContainer) {
                                                                                                                                                                                                                                                                                                                                                                  -      this.renderer.setAttribute(svg, 'width', '100%');
                                                                                                                                                                                                                                                                                                                                                                  -      this.renderer.setAttribute(svg, 'height', '100%');
                                                                                                                                                                                                                                                                                                                                                                  -      this.renderer.setAttribute(svg, 'preserveAspectRatio', 'xMidYMid meet');
                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                  -    this.renderer.appendChild(el, svg);
                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -  private fetchAndInlineSvgContent(path: string): void {
                                                                                                                                                                                                                                                                                                                                                                  -    this.svgViewerService.getSVG(path).subscribe((svgResponse: SVGElement) => {
                                                                                                                                                                                                                                                                                                                                                                  -      this.inlineSvgContent(svgResponse);
                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/TextToSpeechPreferencesComponent.html b/docs/components/TextToSpeechPreferencesComponent.html deleted file mode 100644 index 2a4c810ac..000000000 --- a/docs/components/TextToSpeechPreferencesComponent.html +++ /dev/null @@ -1,626 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    - libs/chat-box/src/lib/components/text-to-speech-preferences/text-to-speech-preferences.component.ts -

                                                                                                                                                                                                                                                                                                                                                                    - - - -

                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    Implements

                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    - OnInit -

                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    selectorngx-text-to-speech-preferences
                                                                                                                                                                                                                                                                                                                                                                    styleUrls./text-to-speech-preferences.component.scss
                                                                                                                                                                                                                                                                                                                                                                    templateUrl./text-to-speech-preferences.component.html
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    -constructor(store: Store, fb: FormBuilder) -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                    store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                    fb - FormBuilder - - No -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    - - - - buildForm - - - -
                                                                                                                                                                                                                                                                                                                                                                    -buildForm() -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                    -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    - - - - reset - - - -
                                                                                                                                                                                                                                                                                                                                                                    -reset() -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    - - - - voiceForm - - - -
                                                                                                                                                                                                                                                                                                                                                                    - voiceForm: FormGroup - -
                                                                                                                                                                                                                                                                                                                                                                    - Type : FormGroup - -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    - - - - voices - - - -
                                                                                                                                                                                                                                                                                                                                                                    - voices: SpeechSynthesisVoice[] - -
                                                                                                                                                                                                                                                                                                                                                                    - Type : SpeechSynthesisVoice[] - -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    import { Component, OnDestroy, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                    -import { Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                    -import { ChatBoxState } from '../../state/chat-box.store';
                                                                                                                                                                                                                                                                                                                                                                    -import { FormBuilder, FormGroup, Validators } from '@angular/forms';
                                                                                                                                                                                                                                                                                                                                                                    -import { UpdateForm, UpdateFormDirty, UpdateFormValue } from '@ngxs/form-plugin';
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-text-to-speech-preferences',
                                                                                                                                                                                                                                                                                                                                                                    -  templateUrl: './text-to-speech-preferences.component.html',
                                                                                                                                                                                                                                                                                                                                                                    -  styleUrls: ['./text-to-speech-preferences.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                    -export class TextToSpeechPreferencesComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                    -  voices: SpeechSynthesisVoice[];
                                                                                                                                                                                                                                                                                                                                                                    -  voiceForm: FormGroup;
                                                                                                                                                                                                                                                                                                                                                                    -  constructor(private store: Store, private fb: FormBuilder) {}
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                                    -    this.voices = this.store.selectSnapshot(ChatBoxState.getVoices);
                                                                                                                                                                                                                                                                                                                                                                    -    this.buildForm();
                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -  buildForm() {
                                                                                                                                                                                                                                                                                                                                                                    -    this.voiceForm = this.fb.group({
                                                                                                                                                                                                                                                                                                                                                                    -      voice: [this.voices[48]],
                                                                                                                                                                                                                                                                                                                                                                    -      volume: [1, Validators.required],
                                                                                                                                                                                                                                                                                                                                                                    -      rate: [1, Validators.required],
                                                                                                                                                                                                                                                                                                                                                                    -      pitch: [1, Validators.required],
                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -  reset() {
                                                                                                                                                                                                                                                                                                                                                                    -    this.store.dispatch(
                                                                                                                                                                                                                                                                                                                                                                    -      new UpdateForm({
                                                                                                                                                                                                                                                                                                                                                                    -        path: 'chatbox.voiceForm',
                                                                                                                                                                                                                                                                                                                                                                    -        value: {
                                                                                                                                                                                                                                                                                                                                                                    -          voice: this.voices[48],
                                                                                                                                                                                                                                                                                                                                                                    -          volume: 1,
                                                                                                                                                                                                                                                                                                                                                                    -          rate: 1,
                                                                                                                                                                                                                                                                                                                                                                    -          pitch: 1,
                                                                                                                                                                                                                                                                                                                                                                    -        },
                                                                                                                                                                                                                                                                                                                                                                    -        dirty: false,
                                                                                                                                                                                                                                                                                                                                                                    -        status: 'VALID',
                                                                                                                                                                                                                                                                                                                                                                    -        errors: {},
                                                                                                                                                                                                                                                                                                                                                                    -      }),
                                                                                                                                                                                                                                                                                                                                                                    -    );
                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    <mat-card>
                                                                                                                                                                                                                                                                                                                                                                    -  <form [formGroup]="voiceForm" ngxsForm="chatbox.voiceForm" fxLayout="column">
                                                                                                                                                                                                                                                                                                                                                                    -    <mat-card-content>
                                                                                                                                                                                                                                                                                                                                                                    -    <div>
                                                                                                                                                                                                                                                                                                                                                                    -      <mat-form-field>
                                                                                                                                                                                                                                                                                                                                                                    -        <mat-select placeholder="Favorite Voice" formControlName="voice">
                                                                                                                                                                                                                                                                                                                                                                    -          <mat-option *ngFor="let voice of voices" [value]="voice">
                                                                                                                                                                                                                                                                                                                                                                    -            {{voice.name}}[{{voice.lang}}]
                                                                                                                                                                                                                                                                                                                                                                    -          </mat-option>
                                                                                                                                                                                                                                                                                                                                                                    -        </mat-select>
                                                                                                                                                                                                                                                                                                                                                                    -      </mat-form-field>
                                                                                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                                                                                    -    <div>
                                                                                                                                                                                                                                                                                                                                                                    -      <mat-label>Volume</mat-label>
                                                                                                                                                                                                                                                                                                                                                                    -      <mat-slider matTooltip="Volume" formControlName="volume" min="0" max="1" step="0.1" thumbLabel></mat-slider>
                                                                                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                                                                                    -    <div>
                                                                                                                                                                                                                                                                                                                                                                    -      <mat-label style="margin-right: 20px">Rate</mat-label>
                                                                                                                                                                                                                                                                                                                                                                    -      <mat-slider formControlName="rate" min="0.1" max="10" step="0.1" thumbLabel></mat-slider>
                                                                                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                                                                                    -    <div>
                                                                                                                                                                                                                                                                                                                                                                    -      <mat-label style="margin-right: 16px">Pitch</mat-label>
                                                                                                                                                                                                                                                                                                                                                                    -      <mat-slider formControlName="pitch" min="0" max="2" step="0.1" thumbLabel></mat-slider>
                                                                                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                                                                                    -    </mat-card-content>
                                                                                                                                                                                                                                                                                                                                                                    -    <mat-card-actions>
                                                                                                                                                                                                                                                                                                                                                                    -      <button mat-button color="warn" (click)="reset()">Reset</button>
                                                                                                                                                                                                                                                                                                                                                                    -    </mat-card-actions>
                                                                                                                                                                                                                                                                                                                                                                    -  </form>
                                                                                                                                                                                                                                                                                                                                                                    -</mat-card>
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    - ./text-to-speech-preferences.component.scss -

                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - Legend -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    Html element -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    Component -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ThemePickerComponent.html b/docs/components/ThemePickerComponent.html deleted file mode 100644 index 1024fc8bc..000000000 --- a/docs/components/ThemePickerComponent.html +++ /dev/null @@ -1,832 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      - libs/theme-picker/src/lib/theme-picker.component.ts -

                                                                                                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                                                                                                                                      encapsulationViewEncapsulation.None
                                                                                                                                                                                                                                                                                                                                                                      selectortheme-picker
                                                                                                                                                                                                                                                                                                                                                                      styleUrls./theme-picker.component.scss
                                                                                                                                                                                                                                                                                                                                                                      templateUrl./theme-picker.component.html
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      HostBindings
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      -constructor(styleManager: StyleManagerService, _themeStorage: ThemeStorageService) -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                      styleManager - StyleManagerService - - No -
                                                                                                                                                                                                                                                                                                                                                                      _themeStorage - ThemeStorageService - - No -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      HostBindings

                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - attr.aria-hidden - - - -
                                                                                                                                                                                                                                                                                                                                                                      - attr.aria-hidden: - -
                                                                                                                                                                                                                                                                                                                                                                      - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - Private - _getCurrentThemeFromHref - - - -
                                                                                                                                                                                                                                                                                                                                                                      - - _getCurrentThemeFromHref(href: string) -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                      href - string - - No -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - Returns : DocsSiteTheme - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - installTheme - - - -
                                                                                                                                                                                                                                                                                                                                                                      -installTheme(theme: DocsSiteTheme) -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                      theme - DocsSiteTheme - - No -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - currentTheme - - - -
                                                                                                                                                                                                                                                                                                                                                                      - currentTheme: - -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - Public - styleManager - - - -
                                                                                                                                                                                                                                                                                                                                                                      - styleManager: StyleManagerService - -
                                                                                                                                                                                                                                                                                                                                                                      - Type : StyleManagerService - -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - themes - - - -
                                                                                                                                                                                                                                                                                                                                                                      - themes: [] - -
                                                                                                                                                                                                                                                                                                                                                                      - Type : [] - -
                                                                                                                                                                                                                                                                                                                                                                      - Default value : [ - { - primary: '#673AB7', - accent: '#FFC107', - href: 'deeppurple-amber.css', - isDark: false, - }, - { - primary: '#3F51B5', - accent: '#E91E63', - href: 'indigo-pink.css', - isDark: false, - isDefault: true, - }, - { - primary: '#E91E63', - accent: '#607D8B', - href: 'pink-bluegrey.css', - isDark: true, - }, - { - primary: '#9C27B0', - accent: '#4CAF50', - href: 'purple-green.css', - isDark: true, - }, - ] -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      import { Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                      -import { StyleManagerService } from './style-manager.service';
                                                                                                                                                                                                                                                                                                                                                                      -import { ThemeStorageService, DocsSiteTheme } from './theme-storage.service';
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                                                                                                      -  selector: 'theme-picker',
                                                                                                                                                                                                                                                                                                                                                                      -  templateUrl: './theme-picker.component.html',
                                                                                                                                                                                                                                                                                                                                                                      -  styleUrls: ['./theme-picker.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                      -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                      -  encapsulation: ViewEncapsulation.None,
                                                                                                                                                                                                                                                                                                                                                                      -  // host: { 'aria-hidden': 'true' }
                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                      -export class ThemePickerComponent {
                                                                                                                                                                                                                                                                                                                                                                      -  @HostBinding('attr.aria-hidden')
                                                                                                                                                                                                                                                                                                                                                                      -  ariaHidden = true;
                                                                                                                                                                                                                                                                                                                                                                      -  currentTheme;
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -  themes = [
                                                                                                                                                                                                                                                                                                                                                                      -    {
                                                                                                                                                                                                                                                                                                                                                                      -      primary: '#673AB7',
                                                                                                                                                                                                                                                                                                                                                                      -      accent: '#FFC107',
                                                                                                                                                                                                                                                                                                                                                                      -      href: 'deeppurple-amber.css',
                                                                                                                                                                                                                                                                                                                                                                      -      isDark: false,
                                                                                                                                                                                                                                                                                                                                                                      -    },
                                                                                                                                                                                                                                                                                                                                                                      -    {
                                                                                                                                                                                                                                                                                                                                                                      -      primary: '#3F51B5',
                                                                                                                                                                                                                                                                                                                                                                      -      accent: '#E91E63',
                                                                                                                                                                                                                                                                                                                                                                      -      href: 'indigo-pink.css',
                                                                                                                                                                                                                                                                                                                                                                      -      isDark: false,
                                                                                                                                                                                                                                                                                                                                                                      -      isDefault: true,
                                                                                                                                                                                                                                                                                                                                                                      -    },
                                                                                                                                                                                                                                                                                                                                                                      -    {
                                                                                                                                                                                                                                                                                                                                                                      -      primary: '#E91E63',
                                                                                                                                                                                                                                                                                                                                                                      -      accent: '#607D8B',
                                                                                                                                                                                                                                                                                                                                                                      -      href: 'pink-bluegrey.css',
                                                                                                                                                                                                                                                                                                                                                                      -      isDark: true,
                                                                                                                                                                                                                                                                                                                                                                      -    },
                                                                                                                                                                                                                                                                                                                                                                      -    {
                                                                                                                                                                                                                                                                                                                                                                      -      primary: '#9C27B0',
                                                                                                                                                                                                                                                                                                                                                                      -      accent: '#4CAF50',
                                                                                                                                                                                                                                                                                                                                                                      -      href: 'purple-green.css',
                                                                                                                                                                                                                                                                                                                                                                      -      isDark: true,
                                                                                                                                                                                                                                                                                                                                                                      -    },
                                                                                                                                                                                                                                                                                                                                                                      -  ];
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -  constructor(public styleManager: StyleManagerService, private _themeStorage: ThemeStorageService) {
                                                                                                                                                                                                                                                                                                                                                                      -    const currentTheme = this._themeStorage.getStoredTheme();
                                                                                                                                                                                                                                                                                                                                                                      -    if (currentTheme) {
                                                                                                                                                                                                                                                                                                                                                                      -      this.installTheme(currentTheme);
                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -  installTheme(theme: DocsSiteTheme) {
                                                                                                                                                                                                                                                                                                                                                                      -    this.currentTheme = this._getCurrentThemeFromHref(theme.href);
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -    if (theme.isDefault) {
                                                                                                                                                                                                                                                                                                                                                                      -      this.styleManager.removeStyle('theme');
                                                                                                                                                                                                                                                                                                                                                                      -    } else {
                                                                                                                                                                                                                                                                                                                                                                      -      this.styleManager.setStyle('theme', `assets/themes/${theme.href}`);
                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -    if (this.currentTheme) {
                                                                                                                                                                                                                                                                                                                                                                      -      this._themeStorage.storeTheme(this.currentTheme);
                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -  private _getCurrentThemeFromHref(href: string): DocsSiteTheme {
                                                                                                                                                                                                                                                                                                                                                                      -    return this.themes.find(theme => theme.href === href);
                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      <button mat-icon-button [matMenuTriggerFor]="themeMenu" matTooltip="Select a theme!" tabindex="-1">
                                                                                                                                                                                                                                                                                                                                                                      -  <mat-icon>format_color_fill</mat-icon>
                                                                                                                                                                                                                                                                                                                                                                      -</button>
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -<!-- TODO: replace use of `mat-menu` here with a custom overlay -->
                                                                                                                                                                                                                                                                                                                                                                      -<mat-menu class="default-theme-picker-menu" #themeMenu="matMenu" x-position="before">
                                                                                                                                                                                                                                                                                                                                                                      -  <mat-grid-list cols="2">
                                                                                                                                                                                                                                                                                                                                                                      -    <mat-grid-tile *ngFor="let theme of themes">
                                                                                                                                                                                                                                                                                                                                                                      -      <div mat-menu-item (click)="installTheme(theme)">
                                                                                                                                                                                                                                                                                                                                                                      -        <div class="default-theme-picker-swatch">
                                                                                                                                                                                                                                                                                                                                                                      -          <mat-icon class="default-theme-chosen-icon" *ngIf="currentTheme === theme">check_circle</mat-icon>
                                                                                                                                                                                                                                                                                                                                                                      -          <div class="default-theme-picker-primary" [style.background]="theme.primary"></div>
                                                                                                                                                                                                                                                                                                                                                                      -        </div>
                                                                                                                                                                                                                                                                                                                                                                      -      </div>
                                                                                                                                                                                                                                                                                                                                                                      -    </mat-grid-tile>
                                                                                                                                                                                                                                                                                                                                                                      -  </mat-grid-list>
                                                                                                                                                                                                                                                                                                                                                                      -</mat-menu>
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      - ./theme-picker.component.scss -

                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      $theme-picker-menu-padding: 8px;
                                                                                                                                                                                                                                                                                                                                                                      -$theme-picker-grid-cell-size: 48px;
                                                                                                                                                                                                                                                                                                                                                                      -$theme-picker-grid-cells-per-row: 2;
                                                                                                                                                                                                                                                                                                                                                                      -$theme-picker-swatch-size: 36px;
                                                                                                                                                                                                                                                                                                                                                                      -$theme-picker-accent-stripe-size: 6px;
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -.default-theme-picker-menu {
                                                                                                                                                                                                                                                                                                                                                                      -  .mat-menu-content {
                                                                                                                                                                                                                                                                                                                                                                      -    padding: $theme-picker-menu-padding;
                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -  [mat-menu-item] {
                                                                                                                                                                                                                                                                                                                                                                      -    flex: 0 0 auto;
                                                                                                                                                                                                                                                                                                                                                                      -    padding: 0;
                                                                                                                                                                                                                                                                                                                                                                      -    overflow: hidden;
                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -  .default-theme-picker-swatch {
                                                                                                                                                                                                                                                                                                                                                                      -    position: relative;
                                                                                                                                                                                                                                                                                                                                                                      -    width: $theme-picker-swatch-size;
                                                                                                                                                                                                                                                                                                                                                                      -    height: $theme-picker-swatch-size;
                                                                                                                                                                                                                                                                                                                                                                      -    margin: ($theme-picker-grid-cell-size - $theme-picker-swatch-size) / 2;
                                                                                                                                                                                                                                                                                                                                                                      -    border-radius: 50%;
                                                                                                                                                                                                                                                                                                                                                                      -    overflow: hidden;
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -    .default-theme-chosen-icon {
                                                                                                                                                                                                                                                                                                                                                                      -      color: white;
                                                                                                                                                                                                                                                                                                                                                                      -      position: absolute;
                                                                                                                                                                                                                                                                                                                                                                      -      left: 50%;
                                                                                                                                                                                                                                                                                                                                                                      -      top: 50%;
                                                                                                                                                                                                                                                                                                                                                                      -      transform: translate(-50%, -50%);
                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -    &::after {
                                                                                                                                                                                                                                                                                                                                                                      -      content: '';
                                                                                                                                                                                                                                                                                                                                                                      -      position: absolute;
                                                                                                                                                                                                                                                                                                                                                                      -      top: 0;
                                                                                                                                                                                                                                                                                                                                                                      -      left: 0;
                                                                                                                                                                                                                                                                                                                                                                      -      width: 100%;
                                                                                                                                                                                                                                                                                                                                                                      -      height: 100%;
                                                                                                                                                                                                                                                                                                                                                                      -      box-sizing: border-box;
                                                                                                                                                                                                                                                                                                                                                                      -      border: 1px solid rgba(0, 0, 0, 0.2);
                                                                                                                                                                                                                                                                                                                                                                      -      border-radius: 50%;
                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -  .default-theme-picker-primary {
                                                                                                                                                                                                                                                                                                                                                                      -    width: 100%;
                                                                                                                                                                                                                                                                                                                                                                      -    height: 100%;
                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -  .default-theme-picker-accent {
                                                                                                                                                                                                                                                                                                                                                                      -    position: absolute;
                                                                                                                                                                                                                                                                                                                                                                      -    bottom: $theme-picker-accent-stripe-size;
                                                                                                                                                                                                                                                                                                                                                                      -    width: 100%;
                                                                                                                                                                                                                                                                                                                                                                      -    height: $theme-picker-accent-stripe-size;
                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - Legend -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      Html element -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      Component -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/ToolbarComponent.html b/docs/components/ToolbarComponent.html deleted file mode 100644 index aab08720e..000000000 --- a/docs/components/ToolbarComponent.html +++ /dev/null @@ -1,575 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        - libs/toolbar/src/lib/toolbar.component.ts -

                                                                                                                                                                                                                                                                                                                                                                        - - - -

                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        Implements

                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        - OnInit -

                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        selectorngx-toolbar
                                                                                                                                                                                                                                                                                                                                                                        styleUrls./toolbar.component.scss
                                                                                                                                                                                                                                                                                                                                                                        templateUrl./toolbar.component.html
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        Inputs
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        -constructor() -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        Inputs

                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        - - quickpanel - -

                                                                                                                                                                                                                                                                                                                                                                        - Type : MatSidenav - -

                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        - - sidenav - -

                                                                                                                                                                                                                                                                                                                                                                        - Type : MatSidenav - -

                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                        -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        - - - - isFullscreen - - - -
                                                                                                                                                                                                                                                                                                                                                                        - isFullscreen: - -
                                                                                                                                                                                                                                                                                                                                                                        - Default value : false -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        - - - - profile$ - - - -
                                                                                                                                                                                                                                                                                                                                                                        - profile$: Observable<any> - -
                                                                                                                                                                                                                                                                                                                                                                        - Type : Observable<any> - -
                                                                                                                                                                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                        - - @Select(AuthState.profile)
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        import { Component, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                        -import { Select } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                        -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                        -import { AuthState } from '@ngx-starter-kit/auth';
                                                                                                                                                                                                                                                                                                                                                                        -import { MatSidenav } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -@Component({
                                                                                                                                                                                                                                                                                                                                                                        -  selector: 'ngx-toolbar',
                                                                                                                                                                                                                                                                                                                                                                        -  templateUrl: './toolbar.component.html',
                                                                                                                                                                                                                                                                                                                                                                        -  styleUrls: ['./toolbar.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                                                                                                        -export class ToolbarComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                        -  @Select(AuthState.profile)
                                                                                                                                                                                                                                                                                                                                                                        -  profile$: Observable<any>;
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                                                                                                                        -  quickpanel: MatSidenav;
                                                                                                                                                                                                                                                                                                                                                                        -  @Input()
                                                                                                                                                                                                                                                                                                                                                                        -  sidenav: MatSidenav;
                                                                                                                                                                                                                                                                                                                                                                        -  isFullscreen = false;
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        <mat-toolbar class="toolbar" fxLayout="row" fxLayoutAlign="space-between">
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  <div fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                                        -    <ngx-sidenav-toggle [sidenav]="sidenav"></ngx-sidenav-toggle>
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -    <img class="logo" [routerLink]="['/']" fxHide.gt-md fxHide.xs
                                                                                                                                                                                                                                                                                                                                                                        -         style="height: 35px; margin-left: 24px; margin-bottom: -5px;"
                                                                                                                                                                                                                                                                                                                                                                        -         src="assets/img/logo_text_dark.png">
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -    <ngx-search-bar fxFlex="500px" fxHide fxShow.gt-md></ngx-search-bar>
                                                                                                                                                                                                                                                                                                                                                                        -  </div>
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  <div fxLayout="row">
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -    <ngx-fullscreen-toggle class="button" fxHide fxShow.gt-sm></ngx-fullscreen-toggle>
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -    <ngx-search class="button" fxHide fxShow.gt-sm></ngx-search>
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -    <ngx-notifications class="button" fxHide fxShow.gt-sm></ngx-notifications>
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -    <!--<theme-picker class="button" fxShow fxHide.lt-md></theme-picker>-->
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -    <ngx-user-menu class="button" [currentUser]="profile$ | async"></ngx-user-menu>
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -    <ngx-quickpanel-toggle class="button" [quickpanel]="quickpanel"></ngx-quickpanel-toggle>
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  </div>
                                                                                                                                                                                                                                                                                                                                                                        -</mat-toolbar>
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        - ./toolbar.component.scss -

                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        @import '~@angular/material/theming';
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -$config: mat-typography-config();
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -@import 'fu/var';
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -:host {
                                                                                                                                                                                                                                                                                                                                                                        -  z-index: $toolbar-z-index;
                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -//mat-toolbar {
                                                                                                                                                                                                                                                                                                                                                                        -.toolbar {
                                                                                                                                                                                                                                                                                                                                                                        -  background: $toolbar-background;
                                                                                                                                                                                                                                                                                                                                                                        -  padding-right: 0;
                                                                                                                                                                                                                                                                                                                                                                        -  height: $toolbar-height;
                                                                                                                                                                                                                                                                                                                                                                        -  padding-left: $spacing/1.5;
                                                                                                                                                                                                                                                                                                                                                                        -  max-width: 100%;
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  @include mat-elevation($toolbar-elevation);
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  .button {
                                                                                                                                                                                                                                                                                                                                                                        -    border-left: 1px solid rgba(0, 0, 0, 0.08);
                                                                                                                                                                                                                                                                                                                                                                        -    display: flex;
                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -  @include media-xs {
                                                                                                                                                                                                                                                                                                                                                                        -    padding-left: $spacing/3;
                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - Legend -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        Html element -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        Component -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/TotalCounterComponent.html b/docs/components/TotalCounterComponent.html deleted file mode 100644 index 13b373722..000000000 --- a/docs/components/TotalCounterComponent.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          - libs/clap/src/lib/components/total-counter.component.ts -

                                                                                                                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                          changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                                                                                                                                          selectorngx-total-counter
                                                                                                                                                                                                                                                                                                                                                                          styles - :host { - background-color: transparent; - color: rgba(0, 0, 0, 0.6); - position: absolute; - left: calc(50% - 16px); - top: -32px; - font-size: 14px; - text-align: center; - } -
                                                                                                                                                                                                                                                                                                                                                                          template
                                                                                                                                                                                                                                                                                                                                                                          {{ counter }}
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          Inputs
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          Inputs

                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                          - - counter - -

                                                                                                                                                                                                                                                                                                                                                                          - Type : string - -

                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-total-counter',
                                                                                                                                                                                                                                                                                                                                                                          -  template: `
                                                                                                                                                                                                                                                                                                                                                                          -    {{ counter }}
                                                                                                                                                                                                                                                                                                                                                                          -  `,
                                                                                                                                                                                                                                                                                                                                                                          -  styles: [
                                                                                                                                                                                                                                                                                                                                                                          -    `
                                                                                                                                                                                                                                                                                                                                                                          -      :host {
                                                                                                                                                                                                                                                                                                                                                                          -        background-color: transparent;
                                                                                                                                                                                                                                                                                                                                                                          -        color: rgba(0, 0, 0, 0.6);
                                                                                                                                                                                                                                                                                                                                                                          -        position: absolute;
                                                                                                                                                                                                                                                                                                                                                                          -        left: calc(50% - 16px);
                                                                                                                                                                                                                                                                                                                                                                          -        top: -32px;
                                                                                                                                                                                                                                                                                                                                                                          -        font-size: 14px;
                                                                                                                                                                                                                                                                                                                                                                          -        text-align: center;
                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                          -    `,
                                                                                                                                                                                                                                                                                                                                                                          -  ],
                                                                                                                                                                                                                                                                                                                                                                          -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                          -export class TotalCounterComponent {
                                                                                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                                                                                          -  counter: string;
                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                          -      :host {
                                                                                                                                                                                                                                                                                                                                                                          -        background-color: transparent;
                                                                                                                                                                                                                                                                                                                                                                          -        color: rgba(0, 0, 0, 0.6);
                                                                                                                                                                                                                                                                                                                                                                          -        position: absolute;
                                                                                                                                                                                                                                                                                                                                                                          -        left: calc(50% - 16px);
                                                                                                                                                                                                                                                                                                                                                                          -        top: -32px;
                                                                                                                                                                                                                                                                                                                                                                          -        font-size: 14px;
                                                                                                                                                                                                                                                                                                                                                                          -        text-align: center;
                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                          -    
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - Legend -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          Html element -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          Component -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/TypingIndicatorComponent.html b/docs/components/TypingIndicatorComponent.html deleted file mode 100644 index 74ae10e04..000000000 --- a/docs/components/TypingIndicatorComponent.html +++ /dev/null @@ -1,410 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            - libs/chat-box/src/lib/components/typing-indicator/typing-indicator.component.ts -

                                                                                                                                                                                                                                                                                                                                                                            - - - -

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            - OnInit -

                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                            selectortyping-indicator
                                                                                                                                                                                                                                                                                                                                                                            styleUrls./typing-indicator.component.scss
                                                                                                                                                                                                                                                                                                                                                                            templateUrl./typing-indicator.component.html
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                            -constructor() -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                            - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                            -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                                                                                                            -  selector: 'typing-indicator',
                                                                                                                                                                                                                                                                                                                                                                            -  templateUrl: './typing-indicator.component.html',
                                                                                                                                                                                                                                                                                                                                                                            -  styleUrls: ['./typing-indicator.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                            -export class TypingIndicatorComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                            -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            <div class="typing-indicator">
                                                                                                                                                                                                                                                                                                                                                                            -  <span></span>
                                                                                                                                                                                                                                                                                                                                                                            -  <span></span>
                                                                                                                                                                                                                                                                                                                                                                            -  <span></span>
                                                                                                                                                                                                                                                                                                                                                                            -</div>
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            - ./typing-indicator.component.scss -

                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            /* TYPING
                                                                                                                                                                                                                                                                                                                                                                            --------------------------------------------------- */
                                                                                                                                                                                                                                                                                                                                                                            -.typing-indicator {
                                                                                                                                                                                                                                                                                                                                                                            -  $ti-color-bg: #e6e7ed;
                                                                                                                                                                                                                                                                                                                                                                            -  background-color: $ti-color-bg;
                                                                                                                                                                                                                                                                                                                                                                            -  will-change: transform;
                                                                                                                                                                                                                                                                                                                                                                            -  width: auto;
                                                                                                                                                                                                                                                                                                                                                                            -  border-radius: 33px;
                                                                                                                                                                                                                                                                                                                                                                            -  padding: 10px;
                                                                                                                                                                                                                                                                                                                                                                            -  display: inline-block;
                                                                                                                                                                                                                                                                                                                                                                            -  margin: 5px auto 0;
                                                                                                                                                                                                                                                                                                                                                                            -  top: -10px;
                                                                                                                                                                                                                                                                                                                                                                            -  position: relative;
                                                                                                                                                                                                                                                                                                                                                                            -  animation: 2s bulge infinite ease-out;
                                                                                                                                                                                                                                                                                                                                                                            -  &::before,
                                                                                                                                                                                                                                                                                                                                                                            -  &::after {
                                                                                                                                                                                                                                                                                                                                                                            -    content: '';
                                                                                                                                                                                                                                                                                                                                                                            -    position: absolute;
                                                                                                                                                                                                                                                                                                                                                                            -    bottom: -2px;
                                                                                                                                                                                                                                                                                                                                                                            -    left: -2px;
                                                                                                                                                                                                                                                                                                                                                                            -    height: 10px;
                                                                                                                                                                                                                                                                                                                                                                            -    width: 10px;
                                                                                                                                                                                                                                                                                                                                                                            -    border-radius: 40%;
                                                                                                                                                                                                                                                                                                                                                                            -    background-color: $ti-color-bg;
                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                            -  &::after {
                                                                                                                                                                                                                                                                                                                                                                            -    height: 5px;
                                                                                                                                                                                                                                                                                                                                                                            -    width: 5px;
                                                                                                                                                                                                                                                                                                                                                                            -    left: -5px;
                                                                                                                                                                                                                                                                                                                                                                            -    bottom: -5px;
                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                            -  span {
                                                                                                                                                                                                                                                                                                                                                                            -    height: 6px;
                                                                                                                                                                                                                                                                                                                                                                            -    width: 6px;
                                                                                                                                                                                                                                                                                                                                                                            -    float: left;
                                                                                                                                                                                                                                                                                                                                                                            -    margin: 0 1px;
                                                                                                                                                                                                                                                                                                                                                                            -    background-color: #9e9ea1;
                                                                                                                                                                                                                                                                                                                                                                            -    display: block;
                                                                                                                                                                                                                                                                                                                                                                            -    border-radius: 50%;
                                                                                                                                                                                                                                                                                                                                                                            -    opacity: 0.4;
                                                                                                                                                                                                                                                                                                                                                                            -    @for $i from 1 through 3 {
                                                                                                                                                                                                                                                                                                                                                                            -      &:nth-of-type(#{$i}) {
                                                                                                                                                                                                                                                                                                                                                                            -        animation: 1s blink infinite ($i * 0.3333s);
                                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -@keyframes blink {
                                                                                                                                                                                                                                                                                                                                                                            -  50% {
                                                                                                                                                                                                                                                                                                                                                                            -    opacity: 1;
                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -@keyframes bulge {
                                                                                                                                                                                                                                                                                                                                                                            -  50% {
                                                                                                                                                                                                                                                                                                                                                                            -    transform: scale(1.05);
                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - Legend -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            Html element -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            Component -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/UserMenuComponent.html b/docs/components/UserMenuComponent.html deleted file mode 100644 index d3381c62e..000000000 --- a/docs/components/UserMenuComponent.html +++ /dev/null @@ -1,723 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              - libs/toolbar/src/lib/components/user-menu/user-menu.component.ts -

                                                                                                                                                                                                                                                                                                                                                                              - - - -

                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              - OnInit -

                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              changeDetectionChangeDetectionStrategy.OnPush
                                                                                                                                                                                                                                                                                                                                                                              selectorngx-user-menu
                                                                                                                                                                                                                                                                                                                                                                              styleUrls./user-menu.component.scss
                                                                                                                                                                                                                                                                                                                                                                              templateUrl./user-menu.component.html
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              Inputs
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              -constructor(store: Store) -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                              store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              Inputs

                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              - - currentUser - -

                                                                                                                                                                                                                                                                                                                                                                              - Default value : null -

                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - logout - - - -
                                                                                                                                                                                                                                                                                                                                                                              - - logout() -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                              -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              - - - - onClickOutside - - - -
                                                                                                                                                                                                                                                                                                                                                                              -onClickOutside() -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              - - - - toggleDropdown - - - -
                                                                                                                                                                                                                                                                                                                                                                              -toggleDropdown() -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              - - - - isOpen - - - -
                                                                                                                                                                                                                                                                                                                                                                              - isOpen: boolean - -
                                                                                                                                                                                                                                                                                                                                                                              - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                              -import { Logout } from '@ngx-starter-kit/auth';
                                                                                                                                                                                                                                                                                                                                                                              -import { Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-user-menu',
                                                                                                                                                                                                                                                                                                                                                                              -  templateUrl: './user-menu.component.html',
                                                                                                                                                                                                                                                                                                                                                                              -  styleUrls: ['./user-menu.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                              -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                              -export class UserMenuComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                              -  isOpen: boolean;
                                                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                                                              -  currentUser = null;
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -  constructor(private store: Store) {}
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                                              -    if (this.currentUser.given_name && this.currentUser.given_name === 'Sumanth') {
                                                                                                                                                                                                                                                                                                                                                                              -      this.currentUser.photoURL = 'assets/img/avatars/user-image.jpg';
                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -  toggleDropdown() {
                                                                                                                                                                                                                                                                                                                                                                              -    this.isOpen = !this.isOpen;
                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -  onClickOutside() {
                                                                                                                                                                                                                                                                                                                                                                              -    this.isOpen = false;
                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -  public logout() {
                                                                                                                                                                                                                                                                                                                                                                              -    this.store.dispatch(new Logout());
                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              <div class="user-container" #userButton (ngxClickOutside)="onClickOutside()">
                                                                                                                                                                                                                                                                                                                                                                              -  <button class="user-button" mat-button (click)="toggleDropdown()" [class.open]="isOpen">
                                                                                                                                                                                                                                                                                                                                                                              -    <span fxLayout="row" fxLayoutAlign="start center">
                                                                                                                                                                                                                                                                                                                                                                              -      <img class="user-avatar" [src]="currentUser?.photoURL || 'assets/img/avatars/noavatar.png'">
                                                                                                                                                                                                                                                                                                                                                                              -      <span class="name" fxHide fxShow.gt-sm>{{currentUser?.given_name || 'Sumo Demo'}}</span>
                                                                                                                                                                                                                                                                                                                                                                              -      <mat-icon class="icon" fxHide fxShow.gt-sm>keyboard_arrow_down</mat-icon>
                                                                                                                                                                                                                                                                                                                                                                              -    </span>
                                                                                                                                                                                                                                                                                                                                                                              -  </button>
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -  <div class="dropdown mat-elevation-z1" [class.open]="isOpen">
                                                                                                                                                                                                                                                                                                                                                                              -    <div class="content">
                                                                                                                                                                                                                                                                                                                                                                              -      <mat-nav-list>
                                                                                                                                                                                                                                                                                                                                                                              -        <mat-list-item>
                                                                                                                                                                                                                                                                                                                                                                              -          <a matLine >Profile</a>
                                                                                                                                                                                                                                                                                                                                                                              -          <button mat-icon-button>
                                                                                                                                                                                                                                                                                                                                                                              -            <mat-icon>account_circle</mat-icon>
                                                                                                                                                                                                                                                                                                                                                                              -          </button>
                                                                                                                                                                                                                                                                                                                                                                              -        </mat-list-item>
                                                                                                                                                                                                                                                                                                                                                                              -        <mat-list-item>
                                                                                                                                                                                                                                                                                                                                                                              -          <a matLine >Settings</a>
                                                                                                                                                                                                                                                                                                                                                                              -          <button mat-icon-button>
                                                                                                                                                                                                                                                                                                                                                                              -            <mat-icon>settings</mat-icon>
                                                                                                                                                                                                                                                                                                                                                                              -          </button>
                                                                                                                                                                                                                                                                                                                                                                              -        </mat-list-item>
                                                                                                                                                                                                                                                                                                                                                                              -        <mat-list-item>
                                                                                                                                                                                                                                                                                                                                                                              -          <a matLine >Help</a>
                                                                                                                                                                                                                                                                                                                                                                              -          <button mat-icon-button>
                                                                                                                                                                                                                                                                                                                                                                              -            <mat-icon>help</mat-icon>
                                                                                                                                                                                                                                                                                                                                                                              -          </button>
                                                                                                                                                                                                                                                                                                                                                                              -        </mat-list-item>
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -        <mat-divider></mat-divider>
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -        <mat-list-item (click)="logout()">
                                                                                                                                                                                                                                                                                                                                                                              -          <a matLine >Logout</a>
                                                                                                                                                                                                                                                                                                                                                                              -          <button mat-icon-button>
                                                                                                                                                                                                                                                                                                                                                                              -            <mat-icon>exit_to_app</mat-icon>
                                                                                                                                                                                                                                                                                                                                                                              -          </button>
                                                                                                                                                                                                                                                                                                                                                                              -        </mat-list-item>
                                                                                                                                                                                                                                                                                                                                                                              -      </mat-nav-list>
                                                                                                                                                                                                                                                                                                                                                                              -    </div>
                                                                                                                                                                                                                                                                                                                                                                              -  </div>
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -</div>
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              - ./user-menu.component.scss -

                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              @import 'var';
                                                                                                                                                                                                                                                                                                                                                                              -@import 'constants';
                                                                                                                                                                                                                                                                                                                                                                              -@import '~@angular/material/theming';
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -.user-container {
                                                                                                                                                                                                                                                                                                                                                                              -  height: 100%;
                                                                                                                                                                                                                                                                                                                                                                              -  position: relative;
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -  .user-button {
                                                                                                                                                                                                                                                                                                                                                                              -    height: 100%;
                                                                                                                                                                                                                                                                                                                                                                              -    min-width: 50px;
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -    .user-avatar {
                                                                                                                                                                                                                                                                                                                                                                              -      width: 30px;
                                                                                                                                                                                                                                                                                                                                                                              -      height: 30px;
                                                                                                                                                                                                                                                                                                                                                                              -      border-radius: 50%;
                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -    .name {
                                                                                                                                                                                                                                                                                                                                                                              -      margin: 0 8px 0 10px;
                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -    .icon {
                                                                                                                                                                                                                                                                                                                                                                              -      width: 16px;
                                                                                                                                                                                                                                                                                                                                                                              -      height: 16px;
                                                                                                                                                                                                                                                                                                                                                                              -      font-size: 16px;
                                                                                                                                                                                                                                                                                                                                                                              -      transform: rotate(0);
                                                                                                                                                                                                                                                                                                                                                                              -      transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -    &.open {
                                                                                                                                                                                                                                                                                                                                                                              -      background: rgba(0, 0, 0, 0.05);
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -      .icon {
                                                                                                                                                                                                                                                                                                                                                                              -        transform: rotate(-180deg);
                                                                                                                                                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -  .dropdown {
                                                                                                                                                                                                                                                                                                                                                                              -    background: white;
                                                                                                                                                                                                                                                                                                                                                                              -    position: absolute;
                                                                                                                                                                                                                                                                                                                                                                              -    top: $mat-toolbar-height-desktop;
                                                                                                                                                                                                                                                                                                                                                                              -    right: 0;
                                                                                                                                                                                                                                                                                                                                                                              -    width: 100%;
                                                                                                                                                                                                                                                                                                                                                                              -    min-width: 160px;
                                                                                                                                                                                                                                                                                                                                                                              -    z-index: -1;
                                                                                                                                                                                                                                                                                                                                                                              -    transform: translateY(-110%);
                                                                                                                                                                                                                                                                                                                                                                              -    visibility: hidden;
                                                                                                                                                                                                                                                                                                                                                                              -    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -    @media ($mat-xsmall) {
                                                                                                                                                                                                                                                                                                                                                                              -      top: $mat-toolbar-height-mobile-portrait;
                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -    &.open {
                                                                                                                                                                                                                                                                                                                                                                              -      transform: translateY(0);
                                                                                                                                                                                                                                                                                                                                                                              -      visibility: visible;
                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - Legend -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              Html element -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              Component -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/VirtualScrollComponent.html b/docs/components/VirtualScrollComponent.html deleted file mode 100644 index 2bfdd7287..000000000 --- a/docs/components/VirtualScrollComponent.html +++ /dev/null @@ -1,892 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                - libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                - - - -

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                - OnInit -

                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                selectorngx-virtual-scroll
                                                                                                                                                                                                                                                                                                                                                                                styleUrls./virtual-scroll.component.scss
                                                                                                                                                                                                                                                                                                                                                                                templateUrl./virtual-scroll.component.html
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - emitData - - - -
                                                                                                                                                                                                                                                                                                                                                                                -emitData() -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - sortBy - - - -
                                                                                                                                                                                                                                                                                                                                                                                -sortBy(prop: "name" | "capital") -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                prop - "name" | "capital" - - No -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - crumbs - - - -
                                                                                                                                                                                                                                                                                                                                                                                - crumbs: ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                                                                                                - Type : ReadonlyArray<Crumb> - -
                                                                                                                                                                                                                                                                                                                                                                                - Default value : [ - { name: 'Dashboard', link: '/dashboard' }, - { name: 'Experiments', link: '/dashboard/experiments' }, - { name: 'Virtual Scroll' }, - ] -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - indexTrackFn - - - -
                                                                                                                                                                                                                                                                                                                                                                                - indexTrackFn: - -
                                                                                                                                                                                                                                                                                                                                                                                - Default value : (index: number) => index -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - nameTrackFn - - - -
                                                                                                                                                                                                                                                                                                                                                                                - nameTrackFn: - -
                                                                                                                                                                                                                                                                                                                                                                                - Default value : (_: number, item: State) => item.name -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - observableData - - - -
                                                                                                                                                                                                                                                                                                                                                                                - observableData: - -
                                                                                                                                                                                                                                                                                                                                                                                - Default value : new BehaviorSubject<number[]>([]) -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - states - - - -
                                                                                                                                                                                                                                                                                                                                                                                - states: [] - -
                                                                                                                                                                                                                                                                                                                                                                                - Type : [] - -
                                                                                                                                                                                                                                                                                                                                                                                - Default value : [ - { name: 'Alabama', capital: 'Montgomery' }, - { name: 'Alaska', capital: 'Juneau' }, - { name: 'Arizona', capital: 'Phoenix' }, - { name: 'Arkansas', capital: 'Little Rock' }, - { name: 'California', capital: 'Sacramento' }, - { name: 'Colorado', capital: 'Denver' }, - { name: 'Connecticut', capital: 'Hartford' }, - { name: 'Delaware', capital: 'Dover' }, - { name: 'Florida', capital: 'Tallahassee' }, - { name: 'Georgia', capital: 'Atlanta' }, - { name: 'Hawaii', capital: 'Honolulu' }, - { name: 'Idaho', capital: 'Boise' }, - { name: 'Illinois', capital: 'Springfield' }, - { name: 'Indiana', capital: 'Indianapolis' }, - { name: 'Iowa', capital: 'Des Moines' }, - { name: 'Kansas', capital: 'Topeka' }, - { name: 'Kentucky', capital: 'Frankfort' }, - { name: 'Louisiana', capital: 'Baton Rouge' }, - { name: 'Maine', capital: 'Augusta' }, - { name: 'Maryland', capital: 'Annapolis' }, - { name: 'Massachusetts', capital: 'Boston' }, - { name: 'Michigan', capital: 'Lansing' }, - { name: 'Minnesota', capital: 'St. Paul' }, - { name: 'Mississippi', capital: 'Jackson' }, - { name: 'Missouri', capital: 'Jefferson City' }, - { name: 'Montana', capital: 'Helena' }, - { name: 'Nebraska', capital: 'Lincoln' }, - { name: 'Nevada', capital: 'Carson City' }, - { name: 'New Hampshire', capital: 'Concord' }, - { name: 'New Jersey', capital: 'Trenton' }, - { name: 'New Mexico', capital: 'Santa Fe' }, - { name: 'New York', capital: 'Albany' }, - { name: 'North Carolina', capital: 'Raleigh' }, - { name: 'North Dakota', capital: 'Bismarck' }, - { name: 'Ohio', capital: 'Columbus' }, - { name: 'Oklahoma', capital: 'Oklahoma City' }, - { name: 'Oregon', capital: 'Salem' }, - { name: 'Pennsylvania', capital: 'Harrisburg' }, - { name: 'Rhode Island', capital: 'Providence' }, - { name: 'South Carolina', capital: 'Columbia' }, - { name: 'South Dakota', capital: 'Pierre' }, - { name: 'Tennessee', capital: 'Nashville' }, - { name: 'Texas', capital: 'Austin' }, - { name: 'Utah', capital: 'Salt Lake City' }, - { name: 'Vermont', capital: 'Montpelier' }, - { name: 'Virginia', capital: 'Richmond' }, - { name: 'Washington', capital: 'Olympia' }, - { name: 'West Virginia', capital: 'Charleston' }, - { name: 'Wisconsin', capital: 'Madison' }, - { name: 'Wyoming', capital: 'Cheyenne' }, - ] -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - statesObservable - - - -
                                                                                                                                                                                                                                                                                                                                                                                - statesObservable: - -
                                                                                                                                                                                                                                                                                                                                                                                - Default value : new BehaviorSubject(this.states) -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                import { Component, OnInit, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                -import { BehaviorSubject } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -interface State {
                                                                                                                                                                                                                                                                                                                                                                                -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                -  capital: string;
                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-virtual-scroll',
                                                                                                                                                                                                                                                                                                                                                                                -  templateUrl: './virtual-scroll.component.html',
                                                                                                                                                                                                                                                                                                                                                                                -  styleUrls: ['./virtual-scroll.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                -export class VirtualScrollComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                                -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Virtual Scroll' },
                                                                                                                                                                                                                                                                                                                                                                                -  ];
                                                                                                                                                                                                                                                                                                                                                                                -  observableData = new BehaviorSubject<number[]>([]);
                                                                                                                                                                                                                                                                                                                                                                                -  states = [
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Alabama', capital: 'Montgomery' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Alaska', capital: 'Juneau' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Arizona', capital: 'Phoenix' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Arkansas', capital: 'Little Rock' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'California', capital: 'Sacramento' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Colorado', capital: 'Denver' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Connecticut', capital: 'Hartford' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Delaware', capital: 'Dover' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Florida', capital: 'Tallahassee' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Georgia', capital: 'Atlanta' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Hawaii', capital: 'Honolulu' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Idaho', capital: 'Boise' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Illinois', capital: 'Springfield' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Indiana', capital: 'Indianapolis' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Iowa', capital: 'Des Moines' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Kansas', capital: 'Topeka' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Kentucky', capital: 'Frankfort' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Louisiana', capital: 'Baton Rouge' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Maine', capital: 'Augusta' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Maryland', capital: 'Annapolis' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Massachusetts', capital: 'Boston' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Michigan', capital: 'Lansing' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Minnesota', capital: 'St. Paul' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Mississippi', capital: 'Jackson' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Missouri', capital: 'Jefferson City' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Montana', capital: 'Helena' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Nebraska', capital: 'Lincoln' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Nevada', capital: 'Carson City' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'New Hampshire', capital: 'Concord' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'New Jersey', capital: 'Trenton' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'New Mexico', capital: 'Santa Fe' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'New York', capital: 'Albany' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'North Carolina', capital: 'Raleigh' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'North Dakota', capital: 'Bismarck' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Ohio', capital: 'Columbus' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Oklahoma', capital: 'Oklahoma City' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Oregon', capital: 'Salem' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Pennsylvania', capital: 'Harrisburg' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Rhode Island', capital: 'Providence' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'South Carolina', capital: 'Columbia' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'South Dakota', capital: 'Pierre' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Tennessee', capital: 'Nashville' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Texas', capital: 'Austin' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Utah', capital: 'Salt Lake City' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Vermont', capital: 'Montpelier' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Virginia', capital: 'Richmond' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Washington', capital: 'Olympia' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'West Virginia', capital: 'Charleston' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Wisconsin', capital: 'Madison' },
                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Wyoming', capital: 'Cheyenne' },
                                                                                                                                                                                                                                                                                                                                                                                -  ];
                                                                                                                                                                                                                                                                                                                                                                                -  statesObservable = new BehaviorSubject(this.states);
                                                                                                                                                                                                                                                                                                                                                                                -  indexTrackFn = (index: number) => index;
                                                                                                                                                                                                                                                                                                                                                                                -  nameTrackFn = (_: number, item: State) => item.name;
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -  constructor() {
                                                                                                                                                                                                                                                                                                                                                                                -    this.emitData();
                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -  emitData() {
                                                                                                                                                                                                                                                                                                                                                                                -    const data = this.observableData.value.concat([50]);
                                                                                                                                                                                                                                                                                                                                                                                -    this.observableData.next(data);
                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -  sortBy(prop: 'name' | 'capital') {
                                                                                                                                                                                                                                                                                                                                                                                -    this.statesObservable.next(
                                                                                                                                                                                                                                                                                                                                                                                -      this.states.map(s => ({ ...s })).sort((a, b) => {
                                                                                                                                                                                                                                                                                                                                                                                -        const aProp = a[prop],
                                                                                                                                                                                                                                                                                                                                                                                -          bProp = b[prop];
                                                                                                                                                                                                                                                                                                                                                                                -        if (aProp < bProp) {
                                                                                                                                                                                                                                                                                                                                                                                -          return -1;
                                                                                                                                                                                                                                                                                                                                                                                -        } else if (aProp > bProp) {
                                                                                                                                                                                                                                                                                                                                                                                -          return 1;
                                                                                                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                                                                                                -        return 0;
                                                                                                                                                                                                                                                                                                                                                                                -      }),
                                                                                                                                                                                                                                                                                                                                                                                -    );
                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                <ngx-breadcrumbs title="Experiments" [crumbs]="crumbs"></ngx-breadcrumbs>
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -<button mat-button (click)="sortBy('name')">Sort by state name</button>
                                                                                                                                                                                                                                                                                                                                                                                -<button mat-button (click)="sortBy('capital')">Sort by state capital</button>
                                                                                                                                                                                                                                                                                                                                                                                -<cdk-virtual-scroll-viewport class="demo-viewport" [itemSize]="60">
                                                                                                                                                                                                                                                                                                                                                                                -  <div *cdkVirtualFor="let state of statesObservable | async; trackBy: nameTrackFn"
                                                                                                                                                                                                                                                                                                                                                                                -       class="demo-state-item">
                                                                                                                                                                                                                                                                                                                                                                                -    <div class="demo-state">{{state.name}}</div>
                                                                                                                                                                                                                                                                                                                                                                                -    <div class="demo-capital">{{state.capital}}</div>
                                                                                                                                                                                                                                                                                                                                                                                -  </div>
                                                                                                                                                                                                                                                                                                                                                                                -</cdk-virtual-scroll-viewport>
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                - ./virtual-scroll.component.scss -

                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                :host {
                                                                                                                                                                                                                                                                                                                                                                                -  display: block;
                                                                                                                                                                                                                                                                                                                                                                                -  padding: 1.5%;
                                                                                                                                                                                                                                                                                                                                                                                -  position: relative;
                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -.demo-viewport {
                                                                                                                                                                                                                                                                                                                                                                                -  height: 500px;
                                                                                                                                                                                                                                                                                                                                                                                -  width: 500px;
                                                                                                                                                                                                                                                                                                                                                                                -  border: 1px solid black;
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -  .cdk-virtual-scroll-content-wrapper {
                                                                                                                                                                                                                                                                                                                                                                                -    display: flex;
                                                                                                                                                                                                                                                                                                                                                                                -    flex-direction: column;
                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -.demo-state-item {
                                                                                                                                                                                                                                                                                                                                                                                -  height: 60px;
                                                                                                                                                                                                                                                                                                                                                                                -  display: flex;
                                                                                                                                                                                                                                                                                                                                                                                -  flex-direction: column;
                                                                                                                                                                                                                                                                                                                                                                                -  justify-content: center;
                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -.demo-state {
                                                                                                                                                                                                                                                                                                                                                                                -  font-size: 20px;
                                                                                                                                                                                                                                                                                                                                                                                -  font-weight: 500;
                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -.demo-capital {
                                                                                                                                                                                                                                                                                                                                                                                -  font-size: 14px;
                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - Legend -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                Html element -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                Component -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/components/WizdashComponent.html b/docs/components/WizdashComponent.html deleted file mode 100644 index d378b28e1..000000000 --- a/docs/components/WizdashComponent.html +++ /dev/null @@ -1,1952 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  - libs/widgets/src/lib/containers/wizdash/wizdash.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                  - - - -

                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  - OnInit -

                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  selectorngx-wizdash
                                                                                                                                                                                                                                                                                                                                                                                  styleUrls./wizdash.component.scss
                                                                                                                                                                                                                                                                                                                                                                                  templateUrl./wizdash.component.html
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  -constructor(wizdashService: WizdashService, router: Router) -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                  wizdashService - WizdashService - - No -
                                                                                                                                                                                                                                                                                                                                                                                  router - Router - - No -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - col - - - -
                                                                                                                                                                                                                                                                                                                                                                                  -col(colAmount: number) -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                  colAmount - number - - No -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - Returns : string - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                  -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  Everything implemented here is purely for Demo-Demonstration and can be removed and replaced with your implementation

                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _gap - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - _gap: number - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : 16 -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  Needed for the Layout

                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _realtimeUsersDataSubject - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - _realtimeUsersDataSubject: - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : new ReplaySubject<RealtimeUsersWidgetData>(30) -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _realtimeUsersPagesSubject - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - _realtimeUsersPagesSubject: - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : new ReplaySubject<RealtimeUsersWidgetPages[]>(1) -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - advancedPieChartData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - advancedPieChartData$: Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - advancedPieChartOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - advancedPieChartOptions: AdvancedPieChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : AdvancedPieChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - title: 'Sales by country', - subTitle: 'Top 3 countries sold 34% more items this month\n', - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - audienceOverviewOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - audienceOverviewOptions: AudienceOverviewWidgetOptions[] - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : AudienceOverviewWidgetOptions[] - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : [] -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - clicksData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - clicksData$: Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - conversionsData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - conversionsData$: Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - conversionsOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - conversionsOptions: LineChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : LineChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - title: 'Conversions', - gain: 10.4, - subTitle: 'compared to last month', - background: '#009688', - color: '#FFFFFF', - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - gap - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - gap: - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : `${this._gap}px` -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - Static - isInitialLoad - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - isInitialLoad: - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - realtimeUsersData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - realtimeUsersData$: Observable<RealtimeUsersWidgetData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<RealtimeUsersWidgetData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : this._realtimeUsersDataSubject.asObservable() -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - realtimeUsersPages$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - realtimeUsersPages$: Observable<RealtimeUsersWidgetPages[]> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<RealtimeUsersWidgetPages[]> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : this._realtimeUsersPagesSubject.asObservable() -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - recentSalesData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - recentSalesData$: Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - recentSalesOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - recentSalesOptions: RecentSalesWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : RecentSalesWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - title: 'Recent Sales', - subTitle: 'See who bought what in realtime', - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - recentSalesTableData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - recentSalesTableData$: Observable<any[]> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<any[]> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - recentSalesTableOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - recentSalesTableOptions: object - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : object - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - pageSize: 5, - columns: [ - { name: 'Product', property: 'name', visible: true, isModelProperty: true }, - { name: '$ Price', property: 'price', visible: true, isModelProperty: true }, - { name: 'Time ago', property: 'timestamp', visible: true, isModelProperty: true }, - ], - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - salesData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - salesData$: Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - salesSummaryData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - salesSummaryData$: Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - salesSummaryOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - salesSummaryOptions: SalesSummaryWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : SalesSummaryWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - title: 'Sales Summary', - subTitle: 'Compare Sales by Time', - gain: 37.2, - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - top5CategoriesData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - top5CategoriesData$: Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - top5CategoriesOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - top5CategoriesOptions: DonutChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : DonutChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - title: 'Top Categories', - subTitle: 'Compare Sales by Category', - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - totalClicksOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - totalClicksOptions: LineChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : LineChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - title: 'Total Clicks', - gain: -6.1, - subTitle: 'compared to last month', - background: '#66BB6A', - color: '#FFFFFF', - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - totalSalesOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - totalSalesOptions: BarChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : BarChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - title: 'Total Sales', - gain: 16.3, - subTitle: 'compared to last month', - background: '#5C6BC0', - color: '#FFFFFF', - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - totalVisitsOptions - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - totalVisitsOptions: LineChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : LineChartWidgetOptions - -
                                                                                                                                                                                                                                                                                                                                                                                  - Default value : { - title: 'Visits', - gain: 42.5, - subTitle: 'compared to last month', - background: '#00BCD4', - color: '#FFFFFF', - } -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - visitsData$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                  - visitsData$: Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - Type : Observable<ChartData> - -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  import { Component, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                  -import { Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                  -import { ChartData } from 'chart.js';
                                                                                                                                                                                                                                                                                                                                                                                  -import * as moment from 'moment';
                                                                                                                                                                                                                                                                                                                                                                                  -import { Observable } from 'rxjs/internal/Observable';
                                                                                                                                                                                                                                                                                                                                                                                  -import { ReplaySubject } from 'rxjs/internal/ReplaySubject';
                                                                                                                                                                                                                                                                                                                                                                                  -import { fadeOutAnimation } from '@ngx-starter-kit/animations';
                                                                                                                                                                                                                                                                                                                                                                                  -import { AdvancedPieChartWidgetOptions } from '../../components/advanced-pie-chart-widget/advanced-pie-chart-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                  -import { AudienceOverviewWidgetOptions } from '../../components/audience-overview-widget/audience-overview-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                  -import { BarChartWidgetOptions } from '../../components/bar-chart-widget/bar-chart-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                  -import { DonutChartWidgetOptions } from '../../components/donut-chart-widget/donut-chart-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                  -import { LineChartWidgetOptions } from '../../components/line-chart-widget/line-chart-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                  -import {
                                                                                                                                                                                                                                                                                                                                                                                  -  RealtimeUsersWidgetData,
                                                                                                                                                                                                                                                                                                                                                                                  -  RealtimeUsersWidgetPages,
                                                                                                                                                                                                                                                                                                                                                                                  -} from '../../components/realtime-users-widget/realtime-users-widget.interface';
                                                                                                                                                                                                                                                                                                                                                                                  -import { RecentSalesWidgetOptions } from '../../components/recent-sales-widget/recent-sales-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                  -import { SalesSummaryWidgetOptions } from '../../components/sales-summary-widget/sales-summary-widget-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                  -import { WizdashService } from './wizdash.service';
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-wizdash',
                                                                                                                                                                                                                                                                                                                                                                                  -  templateUrl: './wizdash.component.html',
                                                                                                                                                                                                                                                                                                                                                                                  -  styleUrls: ['./wizdash.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                  -  // animations: [fadeOutAnimation],
                                                                                                                                                                                                                                                                                                                                                                                  -  // host: { '[@fadeOutAnimation]': 'true' }
                                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                                  -export class WizdashComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                                  -  private static isInitialLoad = true;
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  salesData$: Observable<ChartData>;
                                                                                                                                                                                                                                                                                                                                                                                  -  totalSalesOptions: BarChartWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    title: 'Total Sales',
                                                                                                                                                                                                                                                                                                                                                                                  -    gain: 16.3,
                                                                                                                                                                                                                                                                                                                                                                                  -    subTitle: 'compared to last month',
                                                                                                                                                                                                                                                                                                                                                                                  -    background: '#5C6BC0',
                                                                                                                                                                                                                                                                                                                                                                                  -    color: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  visitsData$: Observable<ChartData>;
                                                                                                                                                                                                                                                                                                                                                                                  -  totalVisitsOptions: LineChartWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    title: 'Visits',
                                                                                                                                                                                                                                                                                                                                                                                  -    gain: 42.5,
                                                                                                                                                                                                                                                                                                                                                                                  -    subTitle: 'compared to last month',
                                                                                                                                                                                                                                                                                                                                                                                  -    background: '#00BCD4',
                                                                                                                                                                                                                                                                                                                                                                                  -    color: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  clicksData$: Observable<ChartData>;
                                                                                                                                                                                                                                                                                                                                                                                  -  totalClicksOptions: LineChartWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    title: 'Total Clicks',
                                                                                                                                                                                                                                                                                                                                                                                  -    gain: -6.1,
                                                                                                                                                                                                                                                                                                                                                                                  -    subTitle: 'compared to last month',
                                                                                                                                                                                                                                                                                                                                                                                  -    background: '#66BB6A',
                                                                                                                                                                                                                                                                                                                                                                                  -    color: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  conversionsData$: Observable<ChartData>;
                                                                                                                                                                                                                                                                                                                                                                                  -  conversionsOptions: LineChartWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    title: 'Conversions',
                                                                                                                                                                                                                                                                                                                                                                                  -    gain: 10.4,
                                                                                                                                                                                                                                                                                                                                                                                  -    subTitle: 'compared to last month',
                                                                                                                                                                                                                                                                                                                                                                                  -    background: '#009688',
                                                                                                                                                                                                                                                                                                                                                                                  -    color: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  salesSummaryData$: Observable<ChartData>;
                                                                                                                                                                                                                                                                                                                                                                                  -  salesSummaryOptions: SalesSummaryWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    title: 'Sales Summary',
                                                                                                                                                                                                                                                                                                                                                                                  -    subTitle: 'Compare Sales by Time',
                                                                                                                                                                                                                                                                                                                                                                                  -    gain: 37.2,
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  top5CategoriesData$: Observable<ChartData>;
                                                                                                                                                                                                                                                                                                                                                                                  -  top5CategoriesOptions: DonutChartWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    title: 'Top Categories',
                                                                                                                                                                                                                                                                                                                                                                                  -    subTitle: 'Compare Sales by Category',
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  audienceOverviewOptions: AudienceOverviewWidgetOptions[] = [];
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  private _realtimeUsersDataSubject = new ReplaySubject<RealtimeUsersWidgetData>(30);
                                                                                                                                                                                                                                                                                                                                                                                  -  realtimeUsersData$: Observable<RealtimeUsersWidgetData> = this._realtimeUsersDataSubject.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                  -  private _realtimeUsersPagesSubject = new ReplaySubject<RealtimeUsersWidgetPages[]>(1);
                                                                                                                                                                                                                                                                                                                                                                                  -  realtimeUsersPages$: Observable<RealtimeUsersWidgetPages[]> = this._realtimeUsersPagesSubject.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  recentSalesData$: Observable<ChartData>;
                                                                                                                                                                                                                                                                                                                                                                                  -  recentSalesOptions: RecentSalesWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    title: 'Recent Sales',
                                                                                                                                                                                                                                                                                                                                                                                  -    subTitle: 'See who bought what in realtime',
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -  recentSalesTableOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    pageSize: 5,
                                                                                                                                                                                                                                                                                                                                                                                  -    columns: [
                                                                                                                                                                                                                                                                                                                                                                                  -      { name: 'Product', property: 'name', visible: true, isModelProperty: true },
                                                                                                                                                                                                                                                                                                                                                                                  -      { name: '$ Price', property: 'price', visible: true, isModelProperty: true },
                                                                                                                                                                                                                                                                                                                                                                                  -      { name: 'Time ago', property: 'timestamp', visible: true, isModelProperty: true },
                                                                                                                                                                                                                                                                                                                                                                                  -    ],
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -  recentSalesTableData$: Observable<any[]>;
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  advancedPieChartOptions: AdvancedPieChartWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -    title: 'Sales by country',
                                                                                                                                                                                                                                                                                                                                                                                  -    subTitle: 'Top 3 countries sold 34% more items this month\n',
                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                  -  advancedPieChartData$: Observable<ChartData>;
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(private wizdashService: WizdashService, private router: Router) {
                                                                                                                                                                                                                                                                                                                                                                                  -    /**
                                                                                                                                                                                                                                                                                                                                                                                  -     * Edge wrong drawing fix
                                                                                                                                                                                                                                                                                                                                                                                  -     * Navigate anywhere and on Promise right back
                                                                                                                                                                                                                                                                                                                                                                                  -     */
                                                                                                                                                                                                                                                                                                                                                                                  -    if (/Edge/.test(navigator.userAgent)) {
                                                                                                                                                                                                                                                                                                                                                                                  -      if (WizdashComponent.isInitialLoad) {
                                                                                                                                                                                                                                                                                                                                                                                  -        this.router.navigate(['/apps/chat']).then(() => {
                                                                                                                                                                                                                                                                                                                                                                                  -          this.router.navigate(['/']);
                                                                                                                                                                                                                                                                                                                                                                                  -        });
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -        WizdashComponent.isInitialLoad = false;
                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                  -   * Needed for the Layout
                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                  -  private _gap = 16;
                                                                                                                                                                                                                                                                                                                                                                                  -  gap = `${this._gap}px`;
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  col(colAmount: number) {
                                                                                                                                                                                                                                                                                                                                                                                  -    return `1 1 calc(${100 / colAmount}% - ${this._gap - this._gap / colAmount}px)`;
                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                  -   * Everything implemented here is purely for Demo-Demonstration and can be removed and replaced with your implementation
                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                  -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                                                  -    this.salesData$ = this.wizdashService.getSales();
                                                                                                                                                                                                                                                                                                                                                                                  -    this.visitsData$ = this.wizdashService.getVisits();
                                                                                                                                                                                                                                                                                                                                                                                  -    this.clicksData$ = this.wizdashService.getClicks();
                                                                                                                                                                                                                                                                                                                                                                                  -    this.conversionsData$ = this.wizdashService.getConversions();
                                                                                                                                                                                                                                                                                                                                                                                  -    this.salesSummaryData$ = this.wizdashService.getSalesSummary();
                                                                                                                                                                                                                                                                                                                                                                                  -    this.top5CategoriesData$ = this.wizdashService.getTop5Categories();
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    // Audience Overview Widget
                                                                                                                                                                                                                                                                                                                                                                                  -    this.wizdashService.getAudienceOverviewUsers().subscribe(response => {
                                                                                                                                                                                                                                                                                                                                                                                  -      this.audienceOverviewOptions.push({
                                                                                                                                                                                                                                                                                                                                                                                  -        label: 'Users',
                                                                                                                                                                                                                                                                                                                                                                                  -        data: response,
                                                                                                                                                                                                                                                                                                                                                                                  -      } as AudienceOverviewWidgetOptions);
                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                  -    this.wizdashService.getAudienceOverviewSessions().subscribe(response => {
                                                                                                                                                                                                                                                                                                                                                                                  -      this.audienceOverviewOptions.push({
                                                                                                                                                                                                                                                                                                                                                                                  -        label: 'Sessions',
                                                                                                                                                                                                                                                                                                                                                                                  -        data: response,
                                                                                                                                                                                                                                                                                                                                                                                  -      } as AudienceOverviewWidgetOptions);
                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                  -    this.wizdashService.getAudienceOverviewBounceRate().subscribe(response => {
                                                                                                                                                                                                                                                                                                                                                                                  -      const property: AudienceOverviewWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -        label: 'Bounce Rate',
                                                                                                                                                                                                                                                                                                                                                                                  -        data: response,
                                                                                                                                                                                                                                                                                                                                                                                  -      };
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      // Calculate Bounce Rate Average
                                                                                                                                                                                                                                                                                                                                                                                  -      const data = response.datasets[0].data as number[];
                                                                                                                                                                                                                                                                                                                                                                                  -      property.sum = `${(data.reduce((sum, x) => sum + x) / data.length).toFixed(2)}%`;
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      this.audienceOverviewOptions.push(property);
                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    this.wizdashService.getAudienceOverviewSessionDuration().subscribe(response => {
                                                                                                                                                                                                                                                                                                                                                                                  -      const property: AudienceOverviewWidgetOptions = {
                                                                                                                                                                                                                                                                                                                                                                                  -        label: 'Session Duration',
                                                                                                                                                                                                                                                                                                                                                                                  -        data: response,
                                                                                                                                                                                                                                                                                                                                                                                  -      };
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      // Calculate Average Session Duration and Format to Human Readable Format
                                                                                                                                                                                                                                                                                                                                                                                  -      const data = response.datasets[0].data as number[];
                                                                                                                                                                                                                                                                                                                                                                                  -      const averageSeconds = (data.reduce((sum, x) => sum + x) / data.length).toFixed(0);
                                                                                                                                                                                                                                                                                                                                                                                  -      property.sum = `${averageSeconds} sec`;
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      this.audienceOverviewOptions.push(property);
                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    // Prefill realtimeUsersData with 30 random values
                                                                                                                                                                                                                                                                                                                                                                                  -    for (let i = 0; i < 30; i++) {
                                                                                                                                                                                                                                                                                                                                                                                  -      this._realtimeUsersDataSubject.next({
                                                                                                                                                                                                                                                                                                                                                                                  -        label: moment().fromNow(),
                                                                                                                                                                                                                                                                                                                                                                                  -        value: Math.round(Math.random() * (100 - 10) + 10),
                                                                                                                                                                                                                                                                                                                                                                                  -      } as RealtimeUsersWidgetData);
                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    // Simulate incoming values for Realtime Users Widget
                                                                                                                                                                                                                                                                                                                                                                                  -    setInterval(() => {
                                                                                                                                                                                                                                                                                                                                                                                  -      this._realtimeUsersDataSubject.next({
                                                                                                                                                                                                                                                                                                                                                                                  -        label: moment().fromNow(),
                                                                                                                                                                                                                                                                                                                                                                                  -        value: Math.round(Math.random() * (100 - 10) + 10),
                                                                                                                                                                                                                                                                                                                                                                                  -      } as RealtimeUsersWidgetData);
                                                                                                                                                                                                                                                                                                                                                                                  -    }, 5000);
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    // Prefill realtimeUsersPages with 3 random values
                                                                                                                                                                                                                                                                                                                                                                                  -    const demoPages = [];
                                                                                                                                                                                                                                                                                                                                                                                  -    const demoPagesPossibleValues = [
                                                                                                                                                                                                                                                                                                                                                                                  -      '/components',
                                                                                                                                                                                                                                                                                                                                                                                  -      '/tables/all-in-one-table',
                                                                                                                                                                                                                                                                                                                                                                                  -      '/apps/inbox',
                                                                                                                                                                                                                                                                                                                                                                                  -      '/apps/chat',
                                                                                                                                                                                                                                                                                                                                                                                  -      '/dashboard',
                                                                                                                                                                                                                                                                                                                                                                                  -      '/login',
                                                                                                                                                                                                                                                                                                                                                                                  -      '/register',
                                                                                                                                                                                                                                                                                                                                                                                  -      '/apps/calendar',
                                                                                                                                                                                                                                                                                                                                                                                  -      '/forms/form-elements',
                                                                                                                                                                                                                                                                                                                                                                                  -    ];
                                                                                                                                                                                                                                                                                                                                                                                  -    for (let i = 0; i < 3; i++) {
                                                                                                                                                                                                                                                                                                                                                                                  -      const nextPossibleValue =
                                                                                                                                                                                                                                                                                                                                                                                  -        demoPagesPossibleValues[+Math.round(Math.random() * (demoPagesPossibleValues.length - 1))];
                                                                                                                                                                                                                                                                                                                                                                                  -      if (demoPages.indexOf(nextPossibleValue) === -1) {
                                                                                                                                                                                                                                                                                                                                                                                  -        demoPages.push(nextPossibleValue);
                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      this._realtimeUsersPagesSubject.next(
                                                                                                                                                                                                                                                                                                                                                                                  -        demoPages.map(pages => {
                                                                                                                                                                                                                                                                                                                                                                                  -          return { page: pages } as RealtimeUsersWidgetPages;
                                                                                                                                                                                                                                                                                                                                                                                  -        }),
                                                                                                                                                                                                                                                                                                                                                                                  -      );
                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    // Simulate incoming values for Realtime Users Widget
                                                                                                                                                                                                                                                                                                                                                                                  -    setInterval(() => {
                                                                                                                                                                                                                                                                                                                                                                                  -      const nextPossibleValue =
                                                                                                                                                                                                                                                                                                                                                                                  -        demoPagesPossibleValues[+Math.round(Math.random() * (demoPagesPossibleValues.length - 1))];
                                                                                                                                                                                                                                                                                                                                                                                  -      if (demoPages.indexOf(nextPossibleValue) === -1) {
                                                                                                                                                                                                                                                                                                                                                                                  -        demoPages.push(nextPossibleValue);
                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      if (demoPages.length > Math.random() * (5 - 1) + 1) {
                                                                                                                                                                                                                                                                                                                                                                                  -        demoPages.splice(Math.round(Math.random() * demoPages.length), 1);
                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      this._realtimeUsersPagesSubject.next(
                                                                                                                                                                                                                                                                                                                                                                                  -        demoPages.map(pages => {
                                                                                                                                                                                                                                                                                                                                                                                  -          return { page: pages } as RealtimeUsersWidgetPages;
                                                                                                                                                                                                                                                                                                                                                                                  -        }),
                                                                                                                                                                                                                                                                                                                                                                                  -      );
                                                                                                                                                                                                                                                                                                                                                                                  -    }, 5000);
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    this.recentSalesTableData$ = this.wizdashService.getRecentSalesTableData();
                                                                                                                                                                                                                                                                                                                                                                                  -    this.recentSalesData$ = this.wizdashService.getRecentSalesData();
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    this.advancedPieChartData$ = this.wizdashService.getAdvancedPieChartData();
                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  <ngx-scrollbar class="dashboard" ngxPage ngxPagePadding fxLayout="column" [fxLayoutGap]="gap">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  <!-- FIRST ROW -->
                                                                                                                                                                                                                                                                                                                                                                                  -  <div fxFlex="noshrink" fxLayout="column" [fxLayoutGap]="gap"
                                                                                                                                                                                                                                                                                                                                                                                  -       fxLayout.gt-lg="row">
                                                                                                                                                                                                                                                                                                                                                                                  -    <div fxLayout="column" [fxLayoutGap]="gap" [fxFlex]="col(2)"
                                                                                                                                                                                                                                                                                                                                                                                  -         fxLayout.gt-sm="row">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div ngxAspectRatio="2:1" ngxAspectRatio.sm="3:1"
                                                                                                                                                                                                                                                                                                                                                                                  -           fxFlex="auto" [fxFlex.gt-sm]="col(4)">
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-bar-chart-widget ngxAspectRatioContent class="widget" [data]="salesData$ | async"
                                                                                                                                                                                                                                                                                                                                                                                  -                               [options]="totalSalesOptions"></ngx-bar-chart-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div ngxAspectRatio="2:1" ngxAspectRatio.sm="3:1"
                                                                                                                                                                                                                                                                                                                                                                                  -           fxFlex="auto" [fxFlex.gt-sm]="col(4)">
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-line-chart-widget ngxAspectRatioContent class="widget" [data]="visitsData$ | async"
                                                                                                                                                                                                                                                                                                                                                                                  -                                [options]="totalVisitsOptions"></ngx-line-chart-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    <div fxLayout="column" [fxLayoutGap]="gap" [fxFlex]="col(2)"
                                                                                                                                                                                                                                                                                                                                                                                  -         fxLayout.gt-sm="row">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div ngxAspectRatio="2:1" ngxAspectRatio.sm="3:1"
                                                                                                                                                                                                                                                                                                                                                                                  -           fxFlex="auto" [fxFlex.gt-sm]="col(4)">
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-line-chart-widget ngxAspectRatioContent [data]="clicksData$ | async"
                                                                                                                                                                                                                                                                                                                                                                                  -                                [options]="totalClicksOptions"></ngx-line-chart-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div ngxAspectRatio="2:1" ngxAspectRatio.sm="3:1"
                                                                                                                                                                                                                                                                                                                                                                                  -           fxFlex="auto" [fxFlex.gt-sm]="col(4)">
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-line-chart-widget ngxAspectRatioContent [data]="conversionsData$ | async"
                                                                                                                                                                                                                                                                                                                                                                                  -                                [options]="conversionsOptions"></ngx-line-chart-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                                                                  -  </div>
                                                                                                                                                                                                                                                                                                                                                                                  -  <!-- END FIRST ROW -->
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  <div fxFlex="noshrink" fxLayout="column" [fxLayoutGap]="gap"
                                                                                                                                                                                                                                                                                                                                                                                  -       fxLayout.gt-lg="row">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    <div fxLayout="column" [fxLayoutGap]="gap" [fxFlex]="col(2)"
                                                                                                                                                                                                                                                                                                                                                                                  -         fxLayout.gt-sm="row">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div [ngxAspectRatio.xs]="'1:2-' + gap" [ngxAspectRatio]="'1.5:1-' + gap"
                                                                                                                                                                                                                                                                                                                                                                                  -           [ngxAspectRatio.gt-md]="'2:1-' + gap" [ngxAspectRatio.gt-lg]="'1.5:1-' + gap"
                                                                                                                                                                                                                                                                                                                                                                                  -           fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-audience-overview-widget ngxAspectRatioContent
                                                                                                                                                                                                                                                                                                                                                                                  -                                       [options]="audienceOverviewOptions"></ngx-audience-overview-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    <div fxLayout="column" [fxLayoutGap]="gap" [fxFlex]="col(2)"
                                                                                                                                                                                                                                                                                                                                                                                  -         fxLayout.gt-sm="row">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div fxLayout="column" [fxLayoutGap]="gap" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                                                  -        <div ngxAspectRatio="1:1" ngxAspectRatio.sm="1.5:1" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                                                  -          <ngx-sales-summary-widget ngxAspectRatioContent [data]="salesSummaryData$ | async"
                                                                                                                                                                                                                                                                                                                                                                                  -                                     [options]="salesSummaryOptions"></ngx-sales-summary-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -        </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-quick-info-widget fxFlex="grow" value="234" label="Customers" [background]="'#009688'" color="white"
                                                                                                                                                                                                                                                                                                                                                                                  -                                icon="people"></ngx-quick-info-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div ngxAspectRatio.xs="1:1.1" ngxAspectRatio.sm="1.5:1" ngxAspectRatio.gt-sm="1:1.32" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-realtime-users-widget ngxAspectRatioContent [data$]="realtimeUsersData$"
                                                                                                                                                                                                                                                                                                                                                                                  -                                    [pages$]="realtimeUsersPages$"></ngx-realtime-users-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                                                                  -  </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  <div fxFlex="noshrink" fxLayout="column" [fxLayoutGap]="gap"
                                                                                                                                                                                                                                                                                                                                                                                  -       fxLayout.gt-lg="row">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    <div fxLayout="column" [fxLayoutGap]="gap" [fxFlex]="col(2)">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <ngx-advanced-pie-chart-widget [data]="advancedPieChartData$ | async"
                                                                                                                                                                                                                                                                                                                                                                                  -                                      [options]="advancedPieChartOptions"></ngx-advanced-pie-chart-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div fxLayout="column" [fxLayoutGap]="gap"
                                                                                                                                                                                                                                                                                                                                                                                  -           fxLayout.gt-sm="row">
                                                                                                                                                                                                                                                                                                                                                                                  -        <div ngxAspectRatio="1:1.3" ngxAspectRatio.sm="1:1" fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                                                  -          <ngx-donut-chart-widget ngxAspectRatioContent [data]="top5CategoriesData$ | async"
                                                                                                                                                                                                                                                                                                                                                                                  -                                   [options]="top5CategoriesOptions"></ngx-donut-chart-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -        </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -        <div fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                                                  -          <mat-card class="example-card">
                                                                                                                                                                                                                                                                                                                                                                                  -            <mat-card-header>
                                                                                                                                                                                                                                                                                                                                                                                  -              <img mat-card-avatar src="assets/img/avatars/1.jpg">
                                                                                                                                                                                                                                                                                                                                                                                  -              <mat-card-title>Shiba Inu</mat-card-title>
                                                                                                                                                                                                                                                                                                                                                                                  -              <mat-card-subtitle>Dog Breed</mat-card-subtitle>
                                                                                                                                                                                                                                                                                                                                                                                  -            </mat-card-header>
                                                                                                                                                                                                                                                                                                                                                                                  -            <img mat-card-image src="https://material.angular.io/assets/img/examples/shiba2.jpg"
                                                                                                                                                                                                                                                                                                                                                                                  -                 alt="Photo of a Shiba Inu">
                                                                                                                                                                                                                                                                                                                                                                                  -            <mat-card-content>
                                                                                                                                                                                                                                                                                                                                                                                  -              <p>
                                                                                                                                                                                                                                                                                                                                                                                  -                The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan.
                                                                                                                                                                                                                                                                                                                                                                                  -                A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally
                                                                                                                                                                                                                                                                                                                                                                                  -                bred for hunting.
                                                                                                                                                                                                                                                                                                                                                                                  -              </p>
                                                                                                                                                                                                                                                                                                                                                                                  -            </mat-card-content>
                                                                                                                                                                                                                                                                                                                                                                                  -            <mat-card-actions align="end">
                                                                                                                                                                                                                                                                                                                                                                                  -              <button mat-button>LIKE</button>
                                                                                                                                                                                                                                                                                                                                                                                  -              <button mat-button>SHARE</button>
                                                                                                                                                                                                                                                                                                                                                                                  -            </mat-card-actions>
                                                                                                                                                                                                                                                                                                                                                                                  -          </mat-card>
                                                                                                                                                                                                                                                                                                                                                                                  -        </div>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <!--<ngx-market-widget></ngx-market-widget>-->
                                                                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    <div fxLayout="column" [fxLayoutGap]="gap" [fxFlex]="col(2)">
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-recent-sales-widget [options]="recentSalesOptions" [chartData]="recentSalesData$ | async"
                                                                                                                                                                                                                                                                                                                                                                                  -                                  [tableOptions]="recentSalesTableOptions"
                                                                                                                                                                                                                                                                                                                                                                                  -                                  [tableData]="recentSalesTableData$ | async"></ngx-recent-sales-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -      <div fxFlex="grow">
                                                                                                                                                                                                                                                                                                                                                                                  -        <ngx-market-widget></ngx-market-widget>
                                                                                                                                                                                                                                                                                                                                                                                  -        <!--<ngx-maps-widget></ngx-maps-widget>-->
                                                                                                                                                                                                                                                                                                                                                                                  -      </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -  </div>
                                                                                                                                                                                                                                                                                                                                                                                  -</ngx-scrollbar>
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  - ./wizdash.component.scss -

                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  @import '~@angular/material/theming';
                                                                                                                                                                                                                                                                                                                                                                                  -@import 'fu/var';
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -:host /deep/ {
                                                                                                                                                                                                                                                                                                                                                                                  -  @import 'fu/calendar';
                                                                                                                                                                                                                                                                                                                                                                                  -  @import 'fu/cards';
                                                                                                                                                                                                                                                                                                                                                                                  -  @import 'fu/inbox';
                                                                                                                                                                                                                                                                                                                                                                                  -  @import 'fu/misc';
                                                                                                                                                                                                                                                                                                                                                                                  -  @import 'fu/tables';
                                                                                                                                                                                                                                                                                                                                                                                  -  @import 'fu/tabs';
                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - Legend -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  Html element -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  Component -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  Html element with directive -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/contributing.html b/docs/contributing.html deleted file mode 100644 index 9b419398d..000000000 --- a/docs/contributing.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                                    Contributing to NX Starter Kit

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    We would love for you to contribute to starter project and help make it even better than it is -today! As a contributor, here are the guidelines we would like you to follow:

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    How can I help?

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Found an Issue?

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    If you find a bug in the source code or a mistake in the documentation, you can help us by -submitting an issue to our GitHub Repository. Even better, you can -submit a Pull Request with a fix.

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Submitting a Pull Request (PR)

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Before you submit your Pull Request (PR) consider the following guidelines:

                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                    • Search GitHubfor an open or closed PR -that relates to your submission. You don't want to duplicate effort.
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Make your changes in a new git branch:

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                         git checkout -b my-fix-branch master
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Create your patch, including appropriate test cases.

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Follow our Coding Rules.
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Run the full Angular CLI test suite, and ensure that all tests pass.
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Commit your changes using a descriptive commit message that follows our -commit message conventions. Adherence to these conventions -is necessary because release notes are automatically generated from these messages.

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                         # stage your changes 
                                                                                                                                                                                                                                                                                                                                                                                      -   git add .
                                                                                                                                                                                                                                                                                                                                                                                      -   # use git-cz interactive helper tool to commit
                                                                                                                                                                                                                                                                                                                                                                                      -   npm run commit
                                                                                                                                                                                                                                                                                                                                                                                      -   # or use following command if you install commitizen globally   
                                                                                                                                                                                                                                                                                                                                                                                      -   git cz

                                                                                                                                                                                                                                                                                                                                                                                      Note: the optional commit -a command line option will automatically "add" and "rm" edited files.

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Push your branch to GitHub:

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                        git push origin my-fix-branch
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • In GitHub, send a pull request to ngx-starter-kit:master.

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • If we suggest changes then:

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                      • Make the required updates.
                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                      • Re-run the Angular CLI test suites to ensure tests are still passing.
                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                      • Rebase your branch and force push to your GitHub repository (this will update your Pull Request):

                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        git rebase master -i
                                                                                                                                                                                                                                                                                                                                                                                        -git push -f
                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    That's it! Thank you for your contribution!

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    After your pull request is merged

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    After your pull request is merged, you can safely delete your branch and pull the changes -from the main (upstream) repository:

                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                    • Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                        git push origin --delete my-fix-branch
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Check out the master branch:

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                        git checkout master -f
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Delete the local branch:

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                        git branch -D my-fix-branch
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • Update your master with the latest upstream version:

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                        git pull --ff upstream master
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Commit Message Guidelines

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    We have very precise rules over how our git commit messages can be formatted. This leads to more -readable messages that are easy to follow when looking through the project history. But also, -we use the git commit messages to generate the Angular change log.

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Commit Message Format

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Each commit message consists of a header, a body and a footer. The header has a special -format that includes a type, a scope and a subject:

                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    <type>(<scope>): <subject>
                                                                                                                                                                                                                                                                                                                                                                                    -<BLANK LINE>
                                                                                                                                                                                                                                                                                                                                                                                    -<body>
                                                                                                                                                                                                                                                                                                                                                                                    -<BLANK LINE>
                                                                                                                                                                                                                                                                                                                                                                                    -<footer>

                                                                                                                                                                                                                                                                                                                                                                                    The header is mandatory and the scope of the header is optional.

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Any line of the commit message cannot be longer 100 characters! This allows the message to be easier -to read on GitHub as well as in various git tools.

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Type

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Must be one of the following:

                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                    • build: Changes that affect the build system or external dependencies
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • ci: Changes to our CI configuration files and scripts
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • docs: Documentation only changes
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • feat: A new feature
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • fix: A bug fix
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • perf: A code change that improves performance
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • refactor: A code change that neither fixes a bug nor adds a feature
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing -semi-colons, etc)
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • test: Adding missing tests or correcting existing tests
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Subject

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    The subject contains succinct description of the change:

                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                    • use the imperative, present tense: "change" not "changed" nor "changes"
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • don't capitalize first letter
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    • no dot (.) at the end
                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Body

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". -The body should include the motivation for the change and contrast this with previous behavior.

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Footer should contain a closing reference to an issue if any.

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Samples: (even more samples)

                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    docs(changelog): update change log to beta.5
                                                                                                                                                                                                                                                                                                                                                                                    fix(dependencies): need to depend on latest rxjs and zone.js
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    -The version in our package.json gets copied to the one we publish, and users need the latest of these.
                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/controllers/AppController.html b/docs/controllers/AppController.html deleted file mode 100644 index 44101eaa0..000000000 --- a/docs/controllers/AppController.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                      - apps/api/src/app.controller.ts -

                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                      - - - - root - - - -
                                                                                                                                                                                                                                                                                                                                                                                      -root() -
                                                                                                                                                                                                                                                                                                                                                                                      - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                      - - @ApiOperation({title: 'Welcome'})
                                                                                                                                                                                                                                                                                                                                                                                      @Allow()
                                                                                                                                                                                                                                                                                                                                                                                      @Get()
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                      - Returns : string - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      import { Get, Controller } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                      -import { ApiOperation } from '@nestjs/swagger';
                                                                                                                                                                                                                                                                                                                                                                                      -import { ConfigService } from './config';
                                                                                                                                                                                                                                                                                                                                                                                      -import { Allow } from './auth';
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -@Controller()
                                                                                                                                                                                                                                                                                                                                                                                      -export class AppController {
                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(private readonly config: ConfigService) {}
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -  @ApiOperation({ title: 'Welcome' })
                                                                                                                                                                                                                                                                                                                                                                                      -  @Allow()
                                                                                                                                                                                                                                                                                                                                                                                      -  @Get()
                                                                                                                                                                                                                                                                                                                                                                                      -  root(): string {
                                                                                                                                                                                                                                                                                                                                                                                      -    return `<h3>Welcome to Sumo API</h3>
                                                                                                                                                                                                                                                                                                                                                                                      -            <br/>Checkout <a href="docs">API Docs</a>
                                                                                                                                                                                                                                                                                                                                                                                      -            <br/><code>Version: ${this.config.getVersion()}</code>`;
                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/controllers/AuthController.html b/docs/controllers/AuthController.html deleted file mode 100644 index 88defd0c7..000000000 --- a/docs/controllers/AuthController.html +++ /dev/null @@ -1,383 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        - apps/api/src/auth/auth.controller.ts -

                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        - - - - Async - create - - - -
                                                                                                                                                                                                                                                                                                                                                                                        - - create(entity: CreateUserDto) -
                                                                                                                                                                                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                        - - @ApiOperation({title: 'Create new record'})
                                                                                                                                                                                                                                                                                                                                                                                        @ApiResponse({status: undefined, description: 'The record has been successfully created.', type: User})
                                                                                                                                                                                                                                                                                                                                                                                        @ApiResponse({status: undefined, description: 'Invalid input, The response body may contain clues as to what went wrong'})
                                                                                                                                                                                                                                                                                                                                                                                        @Post()
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                        entity - CreateUserDto - - No -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - Returns : Promise<User> - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        - - - - Async - update - - - -
                                                                                                                                                                                                                                                                                                                                                                                        - - update(id: string, entity: UpdateUserDto) -
                                                                                                                                                                                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                        - - @ApiOperation({title: 'Update an existing record'})
                                                                                                                                                                                                                                                                                                                                                                                        @ApiResponse({status: undefined, description: 'The record has been successfully edited.'})
                                                                                                                                                                                                                                                                                                                                                                                        @ApiResponse({status: undefined, description: 'Record not found'})
                                                                                                                                                                                                                                                                                                                                                                                        @ApiResponse({status: undefined, description: 'Invalid input, The response body may contain clues as to what went wrong'})
                                                                                                                                                                                                                                                                                                                                                                                        @Put(':id')
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                        id - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                        entity - UpdateUserDto - - No -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - Returns : Promise<any> - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        import { Body, Controller, HttpStatus, Param, Post, Put } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                        -import { ApiOAuth2Auth, ApiOperation, ApiResponse, ApiUseTags } from '@nestjs/swagger';
                                                                                                                                                                                                                                                                                                                                                                                        -import { User } from './user.entity';
                                                                                                                                                                                                                                                                                                                                                                                        -import { AuthService } from './auth.service';
                                                                                                                                                                                                                                                                                                                                                                                        -import { CrudController } from '../core';
                                                                                                                                                                                                                                                                                                                                                                                        -import { UpdateUserDto } from './dto/update-user.dto';
                                                                                                                                                                                                                                                                                                                                                                                        -import { CreateUserDto } from './dto/create-user.dto';
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -@ApiOAuth2Auth(['read'])
                                                                                                                                                                                                                                                                                                                                                                                        -@ApiUseTags('Sumo', 'Auth')
                                                                                                                                                                                                                                                                                                                                                                                        -@Controller()
                                                                                                                                                                                                                                                                                                                                                                                        -export class AuthController extends CrudController<User> {
                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(private readonly authService: AuthService) {
                                                                                                                                                                                                                                                                                                                                                                                        -    super(authService);
                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -  @ApiOperation({ title: 'Create new record' })
                                                                                                                                                                                                                                                                                                                                                                                        -  @ApiResponse({ status: HttpStatus.CREATED, description: 'The record has been successfully created.', type: User })
                                                                                                                                                                                                                                                                                                                                                                                        -  @ApiResponse({
                                                                                                                                                                                                                                                                                                                                                                                        -    status: HttpStatus.BAD_REQUEST,
                                                                                                                                                                                                                                                                                                                                                                                        -    description: 'Invalid input, The response body may contain clues as to what went wrong',
                                                                                                                                                                                                                                                                                                                                                                                        -  })
                                                                                                                                                                                                                                                                                                                                                                                        -  @Post()
                                                                                                                                                                                                                                                                                                                                                                                        -  async create(@Body() entity: CreateUserDto): Promise<User> {
                                                                                                                                                                                                                                                                                                                                                                                        -    return super.create(entity);
                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -  @ApiOperation({ title: 'Update an existing record' })
                                                                                                                                                                                                                                                                                                                                                                                        -  @ApiResponse({ status: HttpStatus.CREATED, description: 'The record has been successfully edited.' })
                                                                                                                                                                                                                                                                                                                                                                                        -  @ApiResponse({ status: HttpStatus.NOT_FOUND, description: 'Record not found' })
                                                                                                                                                                                                                                                                                                                                                                                        -  @ApiResponse({
                                                                                                                                                                                                                                                                                                                                                                                        -    status: HttpStatus.BAD_REQUEST,
                                                                                                                                                                                                                                                                                                                                                                                        -    description: 'Invalid input, The response body may contain clues as to what went wrong',
                                                                                                                                                                                                                                                                                                                                                                                        -  })
                                                                                                                                                                                                                                                                                                                                                                                        -  @Put(':id')
                                                                                                                                                                                                                                                                                                                                                                                        -  async update(@Param('id') id: string, @Body() entity: UpdateUserDto): Promise<any> {
                                                                                                                                                                                                                                                                                                                                                                                        -    return super.update(id, entity);
                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/controllers/ChatController.html b/docs/controllers/ChatController.html deleted file mode 100644 index ea91667f2..000000000 --- a/docs/controllers/ChatController.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          - apps/api/src/chat/chat.controller.ts -

                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          Prefix

                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          - chat -

                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          import { Controller } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -@Controller('chat')
                                                                                                                                                                                                                                                                                                                                                                                          -export class ChatController {}
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/controllers/EmailController.html b/docs/controllers/EmailController.html deleted file mode 100644 index fa01f9cfc..000000000 --- a/docs/controllers/EmailController.html +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            - apps/api/src/user/email/email.controller.ts -

                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            Prefix

                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            - email -

                                                                                                                                                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                            - - - - Async - sendEmail - - - -
                                                                                                                                                                                                                                                                                                                                                                                            - - sendEmail(email: EmailDto) -
                                                                                                                                                                                                                                                                                                                                                                                            - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                            - - @Post()
                                                                                                                                                                                                                                                                                                                                                                                            @HttpCode(HttpStatus.CREATED)
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                            email - EmailDto - - No -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - Returns : Promise<any> - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            import { Body, Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                            -import { EmailService } from '../../email';
                                                                                                                                                                                                                                                                                                                                                                                            -import { EmailDto } from './dto/email.dto';
                                                                                                                                                                                                                                                                                                                                                                                            -import { ApiOAuth2Auth, ApiUseTags } from '@nestjs/swagger';
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -@ApiOAuth2Auth(['read'])
                                                                                                                                                                                                                                                                                                                                                                                            -@ApiUseTags('Sumo', 'Email')
                                                                                                                                                                                                                                                                                                                                                                                            -@Controller('email')
                                                                                                                                                                                                                                                                                                                                                                                            -export class EmailController {
                                                                                                                                                                                                                                                                                                                                                                                            -  constructor(private readonly emailService: EmailService) {}
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -  @Post()
                                                                                                                                                                                                                                                                                                                                                                                            -  @HttpCode(HttpStatus.CREATED)
                                                                                                                                                                                                                                                                                                                                                                                            -  async sendEmail(@Body() email: EmailDto): Promise<any> {
                                                                                                                                                                                                                                                                                                                                                                                            -    return this.emailService.sendMail({
                                                                                                                                                                                                                                                                                                                                                                                            -      to: 'sumo@demo.com',
                                                                                                                                                                                                                                                                                                                                                                                            -      subject: email.title,
                                                                                                                                                                                                                                                                                                                                                                                            -      template: 'welcome', // The `.pug` extension is appended automatically.
                                                                                                                                                                                                                                                                                                                                                                                            -      context: {
                                                                                                                                                                                                                                                                                                                                                                                            -        // Data to be sent to PugJS template files.
                                                                                                                                                                                                                                                                                                                                                                                            -        title: email.title,
                                                                                                                                                                                                                                                                                                                                                                                            -        comments: email.comments,
                                                                                                                                                                                                                                                                                                                                                                                            -        name: email.name,
                                                                                                                                                                                                                                                                                                                                                                                            -      },
                                                                                                                                                                                                                                                                                                                                                                                            -    });
                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/controllers/NotificationsController.html b/docs/controllers/NotificationsController.html deleted file mode 100644 index f22716e70..000000000 --- a/docs/controllers/NotificationsController.html +++ /dev/null @@ -1,581 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                              - apps/api/src/notifications/notifications.controller.ts -

                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - Async - create - - - -
                                                                                                                                                                                                                                                                                                                                                                                              - - create(entity: CreateNotificationDto) -
                                                                                                                                                                                                                                                                                                                                                                                              - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                              - - @ApiOperation({title: 'Create new record'})
                                                                                                                                                                                                                                                                                                                                                                                              @ApiResponse({status: undefined, description: 'The record has been successfully created.', type: Notification})
                                                                                                                                                                                                                                                                                                                                                                                              @ApiResponse({status: undefined, description: 'Invalid input, The response body may contain clues as to what went wrong'})
                                                                                                                                                                                                                                                                                                                                                                                              @Post()
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                              entity - CreateNotificationDto - - No -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - Returns : Promise<Notification> - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - Async - findAll - - - -
                                                                                                                                                                                                                                                                                                                                                                                              - - findAll(user) -
                                                                                                                                                                                                                                                                                                                                                                                              - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                              - - @ApiOperation({title: 'find all user Notifications'})
                                                                                                                                                                                                                                                                                                                                                                                              @ApiResponse({status: undefined, description: 'All user Notifications', isArray: undefined})
                                                                                                                                                                                                                                                                                                                                                                                              @Get()
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              NameOptional
                                                                                                                                                                                                                                                                                                                                                                                              user - No -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - Returns : Promise<> - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - notify - - - -
                                                                                                                                                                                                                                                                                                                                                                                              -notify(notif: CreateNotificationDto, user) -
                                                                                                                                                                                                                                                                                                                                                                                              - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                              - - @ApiOperation({title: 'Notify User'})
                                                                                                                                                                                                                                                                                                                                                                                              @ApiResponse({status: undefined, description: 'Accepted'})
                                                                                                                                                                                                                                                                                                                                                                                              @Roles(RolesEnum.USER)
                                                                                                                                                                                                                                                                                                                                                                                              @Post('/notify')
                                                                                                                                                                                                                                                                                                                                                                                              @HttpCode(HttpStatus.ACCEPTED)
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                              notif - CreateNotificationDto - - No -
                                                                                                                                                                                                                                                                                                                                                                                              user - - No -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - notifyAll - - - -
                                                                                                                                                                                                                                                                                                                                                                                              -notifyAll(notif: CreateNotificationDto) -
                                                                                                                                                                                                                                                                                                                                                                                              - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                              - - @ApiOperation({title: 'Notify All'})
                                                                                                                                                                                                                                                                                                                                                                                              @ApiResponse({status: undefined, description: 'Accepted'})
                                                                                                                                                                                                                                                                                                                                                                                              @Roles(RolesEnum.ADMIN)
                                                                                                                                                                                                                                                                                                                                                                                              @Post('/notifyAll')
                                                                                                                                                                                                                                                                                                                                                                                              @HttpCode(HttpStatus.ACCEPTED)
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                              notif - CreateNotificationDto - - No -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              import { Body, Controller, Get, HttpCode, HttpStatus, Post } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                              -import { CrudController } from '../core';
                                                                                                                                                                                                                                                                                                                                                                                              -import { ApiOAuth2Auth, ApiOperation, ApiResponse, ApiUseTags } from '@nestjs/swagger';
                                                                                                                                                                                                                                                                                                                                                                                              -import { Notification } from './notification.entity';
                                                                                                                                                                                                                                                                                                                                                                                              -import { CreateNotificationDto } from './dto/create-notification.dto';
                                                                                                                                                                                                                                                                                                                                                                                              -import { NotificationsService } from './notifications.service';
                                                                                                                                                                                                                                                                                                                                                                                              -import { CurrentUser, Roles, RolesEnum } from '../auth';
                                                                                                                                                                                                                                                                                                                                                                                              -import { AddNotification } from './interfaces/notification.actions';
                                                                                                                                                                                                                                                                                                                                                                                              -import * as uuid from 'uuid';
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -@ApiOAuth2Auth(['read'])
                                                                                                                                                                                                                                                                                                                                                                                              -@ApiUseTags('Sumo', 'Notifications')
                                                                                                                                                                                                                                                                                                                                                                                              -@Controller()
                                                                                                                                                                                                                                                                                                                                                                                              -export class NotificationsController extends CrudController<Notification> {
                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(private readonly notificationsService: NotificationsService) {
                                                                                                                                                                                                                                                                                                                                                                                              -    super(notificationsService);
                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiOperation({ title: 'find all user Notifications' })
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiResponse({ status: HttpStatus.OK, description: 'All user Notifications', /* type: T, */ isArray: true })
                                                                                                                                                                                                                                                                                                                                                                                              -  @Get()
                                                                                                                                                                                                                                                                                                                                                                                              -  async findAll(@CurrentUser() user): Promise<[Notification[], number]> {
                                                                                                                                                                                                                                                                                                                                                                                              -    return this.notificationsService.getUserNotifications(user);
                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiOperation({ title: 'Create new record' })
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiResponse({
                                                                                                                                                                                                                                                                                                                                                                                              -    status: HttpStatus.CREATED,
                                                                                                                                                                                                                                                                                                                                                                                              -    description: 'The record has been successfully created.',
                                                                                                                                                                                                                                                                                                                                                                                              -    type: Notification,
                                                                                                                                                                                                                                                                                                                                                                                              -  })
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiResponse({
                                                                                                                                                                                                                                                                                                                                                                                              -    status: HttpStatus.BAD_REQUEST,
                                                                                                                                                                                                                                                                                                                                                                                              -    description: 'Invalid input, The response body may contain clues as to what went wrong',
                                                                                                                                                                                                                                                                                                                                                                                              -  })
                                                                                                                                                                                                                                                                                                                                                                                              -  @Post()
                                                                                                                                                                                                                                                                                                                                                                                              -  async create(@Body() entity: CreateNotificationDto): Promise<Notification> {
                                                                                                                                                                                                                                                                                                                                                                                              -    return super.create(entity);
                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -  // TODO: add to database for offline users and also show to active users
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiOperation({ title: 'Notify User' })
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiResponse({ status: HttpStatus.ACCEPTED, description: 'Accepted' })
                                                                                                                                                                                                                                                                                                                                                                                              -  @Roles(RolesEnum.USER)
                                                                                                                                                                                                                                                                                                                                                                                              -  @Post('/notify')
                                                                                                                                                                                                                                                                                                                                                                                              -  @HttpCode(HttpStatus.ACCEPTED)
                                                                                                                                                                                                                                                                                                                                                                                              -  notify(@Body() notif: CreateNotificationDto, @CurrentUser() user) {
                                                                                                                                                                                                                                                                                                                                                                                              -    this.notificationsService.notify(
                                                                                                                                                                                                                                                                                                                                                                                              -      user,
                                                                                                                                                                                                                                                                                                                                                                                              -      new AddNotification({
                                                                                                                                                                                                                                                                                                                                                                                              -        id: uuid(),
                                                                                                                                                                                                                                                                                                                                                                                              -        icon: notif.icon,
                                                                                                                                                                                                                                                                                                                                                                                              -        message: notif.message,
                                                                                                                                                                                                                                                                                                                                                                                              -        createdAt: new Date(),
                                                                                                                                                                                                                                                                                                                                                                                              -        read: notif.read,
                                                                                                                                                                                                                                                                                                                                                                                              -        color: notif.color,
                                                                                                                                                                                                                                                                                                                                                                                              -      }),
                                                                                                                                                                                                                                                                                                                                                                                              -    );
                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -  // TODO: add to database for offline users and also show to active users
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiOperation({ title: 'Notify All' })
                                                                                                                                                                                                                                                                                                                                                                                              -  @ApiResponse({ status: HttpStatus.ACCEPTED, description: 'Accepted' })
                                                                                                                                                                                                                                                                                                                                                                                              -  @Roles(RolesEnum.ADMIN)
                                                                                                                                                                                                                                                                                                                                                                                              -  @Post('/notifyAll')
                                                                                                                                                                                                                                                                                                                                                                                              -  @HttpCode(HttpStatus.ACCEPTED)
                                                                                                                                                                                                                                                                                                                                                                                              -  notifyAll(@Body() notif: CreateNotificationDto) {
                                                                                                                                                                                                                                                                                                                                                                                              -    const date = new Date();
                                                                                                                                                                                                                                                                                                                                                                                              -    this.notificationsService.notifyAll(
                                                                                                                                                                                                                                                                                                                                                                                              -      new AddNotification({
                                                                                                                                                                                                                                                                                                                                                                                              -        id: uuid(),
                                                                                                                                                                                                                                                                                                                                                                                              -        icon: notif.icon,
                                                                                                                                                                                                                                                                                                                                                                                              -        message: notif.message,
                                                                                                                                                                                                                                                                                                                                                                                              -        createdAt: date.setTime(date.getTime() - 2 * 86400000),
                                                                                                                                                                                                                                                                                                                                                                                              -        read: notif.read,
                                                                                                                                                                                                                                                                                                                                                                                              -        color: notif.color,
                                                                                                                                                                                                                                                                                                                                                                                              -      }),
                                                                                                                                                                                                                                                                                                                                                                                              -    );
                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/controllers/ProfileController.html b/docs/controllers/ProfileController.html deleted file mode 100644 index a3d82e60b..000000000 --- a/docs/controllers/ProfileController.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                - apps/api/src/user/profile/profile.controller.ts -

                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                Prefix

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                - profile -

                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                import { Controller } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -@Controller('profile')
                                                                                                                                                                                                                                                                                                                                                                                                -export class ProfileController {}
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/coverage.html b/docs/coverage.html deleted file mode 100644 index 4e52a16c2..000000000 --- a/docs/coverage.html +++ /dev/null @@ -1,7595 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                  FileTypeIdentifierStatements
                                                                                                                                                                                                                                                                                                                                                                                                  - - .deploy/postgres/kube.ts - - variable - - client - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - .deploy/postgres/kube.ts - - variable - - Client - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - .deploy/postgres/kube.ts - - variable - - config - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/auth.exception.ts - - class - - HttpAuthException - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/auth.exception.ts - - class - - WsAuthException - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/auth.exception.ts - - variable - - createExceptionBody - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/auth.service.ts - - injectable - - AuthService - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/decorators/allow.decorator.ts - - variable - - Allow - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/decorators/claims.decorator.ts - - variable - - Claims - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/decorators/current-user.decorator.ts - - variable - - CurrentUser - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/decorators/raw-token.decorator.ts - - variable - - extractor - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/decorators/raw-token.decorator.ts - - variable - - RawToken - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/decorators/roles.decorator.ts - - variable - - Roles - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/decorators/token.decorator.ts - - variable - - Token - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/dto/create-user.dto.ts - - class - - CreateUserDto - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/dto/update-user.dto.ts - - class - - UpdateUserDto - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/guards/auth.guard.ts - - variable - - createPassportContext - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/guards/auth.guard.ts - - variable - - defaultOptions - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/guards/role.guard.ts - - variable - - userId - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/guards/ws-auth.guard.ts - - variable - - createPassportContext - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/guards/ws-auth.guard.ts - - variable - - defaultWsOptions - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/interfaces/jwt-token.interface.ts - - interface - - JwtToken - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/passport/jwt.strategy.ts - - injectable - - JwtStrategy - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/passport/ws-jwt.strategy.ts - - injectable - - WsJwtStrategy - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/passport/ws-jwt.strategy.ts - - variable - - extractJwtFromWsQuery - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/auth/user.entity.ts - - class - - User - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/chat/chat.gateway.ts - - class - - ChatGateway - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/chat/chat.service.ts - - injectable - - ChatService - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/chat/interfaces/message.ts - - class - - Message - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/chat/interfaces/user.ts - - class - - User - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/config/config.service.ts - - injectable - - ConfigService - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/config/config.service.ts - - variable - - packageJson - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/context/request-context.middleware.ts - - injectable - - RequestContextMiddleware - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/context/request-context.ts - - class - - RequestContext - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/crud/crud.controller.ts - - class - - CrudController - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/crud/crud.service.ts - - class - - CrudService - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/crud/icube.service.ts - - interface - - ICrudService - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/entities/audit-base.entity.ts - - class - - AuditBase - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/entities/base.entity.ts - - class - - Base - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/entities/toHexString.ts - - function - - toHexString - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/filters/entity-not-found.filter.ts - - class - - EntityNotFoundFilter - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/interceptors/exception.interceptor.ts - - injectable - - ErrorsInterceptor - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/interceptors/logging.interceptor.ts - - injectable - - LoggingInterceptor - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/interceptors/timeout.interceptor.ts - - injectable - - TimeoutInterceptor - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/interceptors/transform.interceptor.ts - - injectable - - TransformInterceptor - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/interceptors/wrap.interceptor.ts - - injectable - - WrapInterceptor - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/repositories/base.repository.ts - - class - - BaseRepository - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/core/services/base-remote.service.ts - - class - - BaseRemoteService - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/email/email-core.module.ts - - variable - - defaultConfig - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/email/email.service.ts - - injectable - - EmailService - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/email/email.service.ts - - interface - - EmailTemplate - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/email/interfaces/email-options.interface.ts - - class - - EmailModuleOptions - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/environments/environment.prod.ts - - variable - - environment - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/environments/environment.ts - - variable - - environment - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/main.hmr.ts - - function - - bootstrap - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/main.hmr.ts - - variable - - module - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/main.ts - - function - - bootstrap - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/notifications/dto/create-notification.dto.ts - - class - - CreateNotificationDto - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/notifications/interfaces/notification.actions.ts - - class - - AddNotification - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/notifications/interfaces/notification.actions.ts - - class - - DeleteNotification - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/notifications/notification.entity.ts - - class - - Notification - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/notifications/notifications.service.ts - - injectable - - NotificationsService - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/shared/eventbus.gateway.ts - - class - - EventBusGateway - - 0 % - (0/16) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/shared/interfaces/socket.interface.ts - - interface - - ISocket - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/user/email/dto/email.dto.ts - - class - - EmailDto - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/user/profile/Image.entity.ts - - class - - Image - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/user/profile/profile.entity.ts - - class - - Profile - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/api/src/user/profile/profile.service.ts - - injectable - - ProfileService - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/environments/environment.prod.ts - - variable - - environment - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/environments/environment.ts - - variable - - environment - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/main.ts - - variable - - app - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/main.ts - - variable - - corsOptions - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/main.ts - - variable - - port - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/upload.ts - - function - - setupForm - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/upload.ts - - function - - upload - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/upload.ts - - variable - - fs - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/upload.ts - - variable - - path - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/backend/src/upload.ts - - variable - - uploadDir - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp-e2e/src/environment.ts - - variable - - BASE_URL - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp-e2e/src/po/app.po.ts - - class - - AppPage - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp-e2e/src/po/login.po.ts - - class - - LoginPage - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp-e2e/src/po/navbar.po.ts - - class - - NavbarPage - - 0 % - (0/12) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp-e2e/src/utils/browser.ts - - class - - Browser - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp-e2e/src/utils/index.ts - - variable - - browser - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp/src/app/app.component.ts - - component - - AppComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp/src/app/app.module.ts - - class - - MyHammerConfig - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp/src/app/preloading-strategy.ts - - class - - PreloadSelectedModulesList - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp/src/environments/base.ts - - variable - - packageJson - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp/src/environments/environment.mock.ts - - variable - - environment - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp/src/environments/environment.prod.ts - - variable - - environment - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp/src/environments/environment.ts - - variable - - environment - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - apps/webapp/src/test-setup.ts - - variable - - webStorageMock - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/animations.service.ts - - injectable - - AnimationsService - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/animations.ts - - class - - Animations - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/card.animation.ts - - variable - - cardAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/expand.animation.ts - - variable - - expandAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/fade.animation.ts - - variable - - fadeAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/fade.animation.ts - - variable - - fadeOutAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/keyframes.ts - - variable - - flipOutY - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/keyframes.ts - - variable - - jello - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/keyframes.ts - - variable - - rotateOutUpRight - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/keyframes.ts - - variable - - slideOutLeft - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/keyframes.ts - - variable - - swing - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/keyframes.ts - - variable - - wobble - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/keyframes.ts - - variable - - zoomOutRight - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/list.animation.ts - - variable - - listFadeAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/rotate.animation.ts - - variable - - rotateAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/route.animation.ts - - variable - - hierarchicalRouteAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/route.animation.ts - - variable - - routeAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - function - - isRouteAnimationsAll - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - function - - isRouteAnimationsElements - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - function - - isRouteAnimationsNone - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - function - - isRouteAnimationsPage - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - variable - - ROUTE_ANIMATIONS_ELEMENTS - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - variable - - routerTransition - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - variable - - STEPS_ALL - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - variable - - STEPS_ELEMENTS - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - variable - - STEPS_NONE - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/router.transition.ts - - variable - - STEPS_PAGE - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/scroll-fab.animation.ts - - variable - - scrollFabAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/scroll.animation.ts - - variable - - scrollAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/sidenav.animation.ts - - variable - - dropdownAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/animations/src/lib/sidenav.animation.ts - - variable - - sidenavAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/app-confirm/src/lib/app-confirm.component.ts - - component - - AppConfirmComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/app-confirm/src/lib/app-confirm.service.ts - - injectable - - AppConfirmService - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - AuthModeChanged - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - ChangeAuthMode - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - LoadProfile - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - Login - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - LoginCanceled - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - LoginSuccess - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - Logout - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - LogoutSuccess - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.actions.ts - - class - - ProfileLoaded - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.service.ts - - injectable - - AuthService - - 0 % - (0/11) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.state.ts - - class - - AuthState - - 0 % - (0/11) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/auth.state.ts - - interface - - AuthStateModel - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/components/login/login.component.ts - - component - - LoginComponent - - 0 % - (0/12) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/oauth.config.ts - - variable - - authConfig - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/oauth.config.ts - - variable - - authConfigImplicit - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/oauth.config.ts - - variable - - authConfigPassword - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/oauth.config.ts - - variable - - base - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/oauth.config.ts - - variable - - baseUrl - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/oauth.errors.ts - - interface - - AccessTokenErrorResponse - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/oauth.errors.ts - - interface - - AuthorizationErrorResponse - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/oauth.init.ts - - function - - initializeAuth - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/auth/src/lib/ropc.service.ts - - injectable - - ROPCService - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/breadcrumbs/src/lib/breadcrumbs.component.ts - - component - - BreadcrumbsComponent - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/breadcrumbs/src/lib/breadcrumbs.component.ts - - interface - - Crumb - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/chat-box.component.ts - - component - - ChatBoxComponent - - 0 % - (0/18) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/chat-box.module.ts - - interface - - DialogFlowTokenInterface - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/chat-message.model.ts - - class - - ChatMessage - - 0 % - (0/12) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/chat-message.model.ts - - class - - Conversation - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/chat-message.model.ts - - class - - Subject - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/chat-message.model.ts - - class - - UiAction - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/components/chat-card/chat-card.component.ts - - component - - ChatCardComponent - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/components/text-to-speech-preferences/text-to-speech-preferences.component.ts - - component - - TextToSpeechPreferencesComponent - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/components/typing-indicator/typing-indicator.component.ts - - component - - TypingIndicatorComponent - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/services/chat.service.ts - - injectable - - ChatService - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/services/inject-tokens.ts - - variable - - DIALOGFLOW_TOKEN - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/services/nlp.service.ts - - injectable - - NlpService - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/services/speech-to-text.service.ts - - injectable - - SpeechToTextService - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/services/speech-to-text.service.ts - - variable - - SpeechRecognition - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/services/text-to-speech.service.ts - - injectable - - TextToSpeechService - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - AddMessage - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - CloseConversation - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - CreateNewConversation - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - FetchConversations - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - MarkAsRead - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - SaveConversation - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - SendMessage - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - SendTyping - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - StartVoiceCommand - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - class - - SwitchConversation - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.actions.ts - - interface - - SynthesisVoice - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.store.ts - - class - - ChatBoxState - - 0 % - (0/19) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/chat-box/src/lib/state/chat-box.store.ts - - class - - ChatBoxStateModel - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/clap/src/lib/animations.ts - - variable - - pulseAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/clap/src/lib/animations.ts - - variable - - slideInAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/clap/src/lib/animations.ts - - variable - - slideOutAnimation - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/clap/src/lib/clap.component.ts - - component - - ClapComponent - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/clap/src/lib/components/counter-bubble.component.ts - - component - - CounterBubbleComponent - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/clap/src/lib/components/fab.component.ts - - component - - FabComponent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/clap/src/lib/components/total-counter.component.ts - - component - - TotalCounterComponent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/context-menu/src/lib/context-menu-trigger.directive.ts - - directive - - ContextMenuTriggerDirective - - 16 % - (1/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/context-menu/src/lib/context-menu.component.ts - - component - - ContextMenuComponent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/core.module.ts - - function - - noop - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/interceptors/jwt.interceptor.ts - - variable - - allowedUrls - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/menu-data.ts - - variable - - adminMenu - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/menu-data.ts - - variable - - defaultMenu - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/menu-data.ts - - variable - - demoMenu - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/services/deep-link.service.ts - - injectable - - DeepLinkService - - 50 % - (2/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/services/deep-link.service.ts - - interface - - QueryParams - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/services/in-memory-data.service.ts - - injectable - - InMemoryDataService - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/services/media-query.service.ts - - injectable - - MediaQueryService - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/services/page-title.service.ts - - injectable - - PageTitleService - - 33 % - (1/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/services/page-title.service.ts - - variable - - ga - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/services/service-worker.service.ts - - injectable - - ServiceWorkerService - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/state/custom-router-state.serializer.ts - - class - - CustomRouterStateSerializer - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/state/custom-router-state.serializer.ts - - interface - - RouterStateData - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/state/eventbus.ts - - injectable - - EventBus - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/state/preference.state.ts - - class - - PreferenceState - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/core/src/lib/state/preference.state.ts - - interface - - PreferenceStateModel - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/dashboard/src/lib/components/rainbow/rainbow.component.ts - - component - - RainbowComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.ts - - component - - DashboardLayoutComponent - - 0 % - (0/14) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/dashboard/src/lib/containers/overview/overview.component.ts - - component - - OverviewComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/draggable/draggable.directive.ts - - directive - - DraggableDirective - - 0 % - (0/13) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.actions.ts - - variable - - MOUSE_DOWN - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.actions.ts - - variable - - RESIZE - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.actions.ts - - variable - - RESIZE_STOP - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.component.ts - - component - - ResizableComponent - - 0 % - (0/26) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.reducer.ts - - variable - - resizeReducer - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.state.ts - - injectable - - ResizableState - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - class - - Store - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - interface - - IOptions - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - interface - - IPoint - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - interface - - IRectangle - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - interface - - IResizeEvent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - interface - - IResizeState - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - interface - - ISize - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - variable - - defaultBound - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.store.ts - - variable - - defaultGrid - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.utils.ts - - variable - - manageRatio - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.utils.ts - - variable - - resizeBottom - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.utils.ts - - variable - - resizeLeft - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.utils.ts - - variable - - resizeRight - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/draggable/src/lib/directives/resizable/resizable.utils.ts - - variable - - resizeTop - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/components/card/card.component.ts - - component - - CardComponent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/components/hammertime/hammertime.directive.ts - - directive - - HammertimeDirective - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/animations/animations.component.ts - - component - - AnimationsComponent - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/clap-button/clap-button.component.ts - - component - - ClapButtonComponent - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/context-menu/context-menu.component.ts - - component - - ContextMenuComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/file-upload/file-upload.component.ts - - component - - FileUploadComponent - - 0 % - (0/10) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/file-upload/file-upload.service.ts - - injectable - - FileUploadService - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/image-comp/image-comp.component.ts - - component - - ImageCompComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/knob-demo/knob-demo.component.ts - - component - - KnobDemoComponent - - 0 % - (0/28) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/layout/layout.component.ts - - component - - LayoutComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/led-demo/led-demo.component.ts - - component - - LedDemoComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/sticky-table/sticky-table.component.ts - - component - - StickyTableComponent - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/sticky-table/sticky-table.component.ts - - interface - - Element - - 0 % - (0/14) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/sticky-table/sticky-table.component.ts - - variable - - ELEMENT_DATA - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.ts - - component - - VirtualScrollComponent - - 0 % - (0/11) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.ts - - interface - - State - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/components/account-detail/account-detail.component.ts - - component - - AccountDetailComponent - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/components/account-edit/account-edit.component.ts - - component - - AccountEditComponent - - 0 % - (0/18) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/components/account-edit/states.ts - - variable - - states - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/containers/accounts-grid-list/accounts-grid-list.component.ts - - component - - AccountsGridListComponent - - 0 % - (0/12) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/containers/accounts-table/accounts-table.component.ts - - component - - AccountsTableComponent - - 15 % - (7/46) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/models/account.model.ts - - class - - Account - - 0 % - (0/10) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/models/account.model.ts - - class - - Address - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/account.service.ts - - injectable - - AccountService - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/random-account.service.ts - - injectable - - RandomAccountService - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/random-account.service.ts - - interface - - Id - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/random-account.service.ts - - interface - - Info - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/random-account.service.ts - - interface - - Location - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/random-account.service.ts - - interface - - Name - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/random-account.service.ts - - interface - - Picture - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/random-account.service.ts - - interface - - RandomAccount - - 0 % - (0/11) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/grid/src/lib/services/random-account.service.ts - - interface - - ResponseObject - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/components/footer/footer.component.ts - - component - - FooterComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/components/header/header.component.ts - - component - - HeaderComponent - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/components/header/sticky-header.directive.ts - - directive - - StickyHeaderDirective - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/containers/about/about.component.ts - - component - - AboutComponent - - 0 % - (0/10) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/containers/about/about.component.ts - - variable - - Trianglify - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/containers/blog/blog.component.ts - - component - - BlogComponent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/containers/features/features.component.ts - - component - - FeaturesComponent - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/containers/home-layout/home-layout.component.ts - - component - - HomeLayoutComponent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/home/src/lib/containers/landing/landing.component.ts - - component - - LandingComponent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/image-comparison/src/lib/image-comparison.component.ts - - component - - ImageComparisonComponent - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/json-diff/src/lib/json-diff-tree.component.ts - - component - - JsonDiffTreeComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/json-diff/src/lib/json-diff.component.ts - - component - - JsonDiffComponent - - 0 % - (0/18) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/json-diff/src/lib/json-diff.interfaces.ts - - interface - - JsonDiffNode - - 0 % - (0/10) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/led/src/lib/led.component.ts - - component - - LedComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/loading-overlay/src/lib/loading-overlay.component.ts - - component - - LoadingOverlayComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/material/src/lib/cdk.module.ts - - variable - - CDK_MODULES - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/material/src/lib/material-date.module.ts - - variable - - DATE_FORMATS - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/material/src/lib/material-date.module.ts - - variable - - MODULE_EXPORTS - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/material/src/lib/material.module.ts - - variable - - MATERIAL_MODULES - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/models/menu-item.model.ts - - interface - - MenuItem - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/services/menu.service.ts - - injectable - - MenuService - - 18 % - (3/16) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/state/menu.state.ts - - class - - MenuState - - 0 % - (0/10) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/state/menu.state.ts - - class - - NextCurrentlyOpened - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/state/menu.state.ts - - class - - SetIconMode - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/state/menu.state.ts - - class - - ToggleCurrentlyOpened - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/state/menu.state.ts - - class - - ToggleCurrentlyOpenedByRoute - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/state/menu.state.ts - - interface - - MenuStateModel - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/navigator/src/lib/symbols.ts - - variable - - MENU_ITEMS - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/directives/ng-let/ng-let.directive.ts - - directive - - NgLetDirective - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/directives/ng-let/ng-let.directive.ts - - class - - NgLetContext - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.ts - - directive - - RouterLinkMatchDirective - - 0 % - (0/10) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.ts - - interface - - MatchExp - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/pluck.ts - - function - - pluck - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/pluck.ts - - function - - pluck - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/pluck.ts - - function - - pluck - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/pluck.ts - - function - - pluck - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/pluck.ts - - function - - pluck - - 100 % - (1/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/pluck.ts - - function - - pluck - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/pluck.ts - - function - - pluck - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/pluck.ts - - function - - pluck - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/untilDestroy.ts - - function - - addDestroyObservableToComponent - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/untilDestroy.ts - - variable - - destroy$ - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/operators/untilDestroy.ts - - variable - - untilDestroy - - 100 % - (1/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/pipes/helper/filter.pipe.ts - - pipe - - FilterPipe - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/pipes/helper/group-by.pipe.ts - - pipe - - GroupByPipe - - 100 % - (1/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/pipes/helper/safe-html.pipe.ts - - pipe - - SafeHtmlPipe - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/pipes/truncate/characters.pipe.ts - - pipe - - CharactersPipe - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/ngx-utils/src/lib/pipes/truncate/words.pipe.ts - - pipe - - WordsPipe - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/not-found/src/lib/containers/not-found/not-found.component.ts - - component - - NotFoundComponent - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notification.model.ts - - class - - Notification - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notifications.actions.ts - - class - - AddNotification - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notifications.actions.ts - - class - - DeleteNotification - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notifications.actions.ts - - class - - FetchNotifications - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notifications.actions.ts - - class - - MarkAllAsRead - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notifications.actions.ts - - class - - MarkAsRead - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notifications.component.ts - - component - - NotificationsComponent - - 0 % - (0/11) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notifications.service.ts - - injectable - - NotificationsService - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/notifications/src/lib/notifications.state.ts - - class - - NotificationsState - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/quickpanel/src/lib/quickpanel.component.ts - - component - - QuickpanelComponent - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/scroll-to-top/src/lib/scroll-to-top.component.ts - - component - - ScrollToTopComponent - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/scrollbar/src/lib/scrollbar-options.ts - - variable - - scrollbarOptions - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/scrollbar/src/lib/scrollbar.component.ts - - component - - ScrollbarComponent - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/scrollbar/src/lib/scrollbar.directive.ts - - directive - - ScrollbarDirective - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/containers/entity/entity-form.component.ts - - class - - EntityFormComponent - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/containers/entity/entity.component.ts - - class - - EntitiesComponent - - 16 % - (6/36) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/containers/entity/entity.datasource.ts - - class - - EntityDataSource - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/containers/entity/entity.model.ts - - class - - Entity - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/containers/entity/entity.model.ts - - class - - EntityColumnDef - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/containers/entity/entity.service.ts - - class - - EntityService - - 0 % - (0/14) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/containers/entity/entity.service.ts - - interface - - Filter - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/directives/click-outside/click-outside.directive.ts - - directive - - ClickOutsideDirective - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/directives/min/min.directive.ts - - directive - - MinValidatorDirective - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/shared.module.ts - - variable - - DEFAULT_PERFECT_SCROLLBAR_CONFIG - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/shared/src/lib/shared.module.ts - - variable - - DIRECTIVES - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/sidenav/src/lib/components/icon-sidenav/icon-sidenav.directive.ts - - directive - - IconSidenavDirective - - 0 % - (0/11) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/sidenav/src/lib/components/menu-item/menu-item.component.ts - - component - - MenuItemComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/sidenav/src/lib/components/sidenav-item/sidenav-item.component.ts - - component - - SidenavItemComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/sidenav/src/lib/sidenav.component.ts - - component - - SidenavComponent - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/RxSocketioSubject.ts - - class - - RxSocketioSubject - - 0 % - (0/10) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/RxSocketioSubject.ts - - interface - - RxSocketioSubjectConfig - - 84 % - (11/13) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/RxSocketioSubject.ts - - variable - - DEFAULT_WEBSOCKET_CONFIG - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - class - - AuthenticateWebSocket - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - class - - ConnectWebSocket - - 25 % - (1/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - class - - DisconnectWebSocket - - 50 % - (1/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - class - - SendWebSocketAction - - 25 % - (1/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - class - - WebSocketConnected - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - class - - WebSocketDisconnected - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - class - - WebsocketMessageError - - 25 % - (1/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - interface - - NgxsWebsocketPluginOptions - - 66 % - (6/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - function - - noop - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/symbols.ts - - variable - - NGXS_WEBSOCKET_OPTIONS - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/websocket-handler.ts - - injectable - - WebSocketHandler - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/websocket-subject.ts - - injectable - - WebSocketSubject - - 55 % - (5/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/websocket-subject.ts - - interface - - SocketIOEvent - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/websocket.module.ts - - function - - websocketOptionsFactory - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/socketio-plugin/src/lib/websocket.module.ts - - variable - - USER_OPTIONS - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/svg-viewer/src/lib/svg-viewer.component.ts - - component - - SvgViewerComponent - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/svg-viewer/src/lib/svg-viewer.config.ts - - class - - SvgViewerConfig - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/svg-viewer/src/lib/svg-viewer.config.ts - - class - - SvgViewerDefaultConfig - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/svg-viewer/src/lib/svg-viewer.service.ts - - injectable - - SvgViewerService - - 0 % - (0/10) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/theme-picker/src/lib/style-manager.service.ts - - injectable - - StyleManagerService - - 100 % - (3/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/theme-picker/src/lib/style-manager.service.ts - - function - - createLinkElementWithKey - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/theme-picker/src/lib/style-manager.service.ts - - function - - getClassNameForKey - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/theme-picker/src/lib/style-manager.service.ts - - function - - getExistingLinkElementByKey - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/theme-picker/src/lib/style-manager.service.ts - - function - - getLinkElementForKey - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/theme-picker/src/lib/theme-picker.component.ts - - component - - ThemePickerComponent - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/theme-picker/src/lib/theme-storage.service.ts - - injectable - - ThemeStorageService - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/theme-picker/src/lib/theme-storage.service.ts - - interface - - DocsSiteTheme - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/toolbar/src/lib/components/click-outside/click-outside.directive.ts - - directive - - ClickOutsideDirective - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/toolbar/src/lib/components/fullscreen-toggle/fullscreen-toggle.component.ts - - component - - FullscreenToggleComponent - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/toolbar/src/lib/components/quickpanel-toggle/quickpanel-toggle.component.ts - - component - - QuickpanelToggleComponent - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/toolbar/src/lib/components/search-bar/search-bar.component.ts - - component - - SearchBarComponent - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/toolbar/src/lib/components/search/search.component.ts - - component - - SearchComponent - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/toolbar/src/lib/components/sidenav-toggle/sidenav-toggle.component.ts - - component - - SidenavToggleComponent - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/toolbar/src/lib/components/user-menu/user-menu.component.ts - - component - - UserMenuComponent - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/toolbar/src/lib/toolbar.component.ts - - component - - ToolbarComponent - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/tree/src/lib/find-insert-index.ts - - function - - findInsertIndex - - 100 % - (1/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/tree/src/lib/merge-sort.ts - - function - - merge - - 100 % - (1/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/tree/src/lib/merge-sort.ts - - function - - mergeSort - - 100 % - (1/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/tree/src/lib/tree.model.ts - - class - - Tree - - 0 % - (0/19) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/tree/src/lib/tree.model.ts - - interface - - TreeConfig - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/tree/src/lib/tree.model.ts - - interface - - TreeNode - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/utils/src/lib/ObjectLiteral.ts - - interface - - ObjectLiteral - - 100 % - (1/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/utils/src/lib/StateDef.ts - - class - - StateDef - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/utils/src/lib/utils.ts - - function - - waitUntil - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/advanced-pie-chart-widget/advanced-pie-chart-widget-options.interface.ts - - class - - AdvancedPieChartWidgetOptions - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/advanced-pie-chart-widget/advanced-pie-chart-widget.component.ts - - component - - AdvancedPieChartWidgetComponent - - 0 % - (0/15) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/aspect-ratio/aspect-ratio-content.directive.ts - - directive - - AspectRatioContentDirective - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/aspect-ratio/aspect-ratio.directive.ts - - directive - - AspectRatioDirective - - 4 % - (1/24) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/audience-overview-widget/audience-overview-widget-options.interface.ts - - class - - AudienceOverviewWidgetOptions - - 0 % - (0/5) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/audience-overview-widget/audience-overview-widget.component.ts - - component - - AudienceOverviewWidgetComponent - - 0 % - (0/13) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/bar-chart-widget/bar-chart-widget-options.interface.ts - - class - - BarChartWidgetOptions - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/bar-chart-widget/bar-chart-widget.component.ts - - component - - BarChartWidgetComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/card/card.component.ts - - component - - Card - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/card/card.component.ts - - component - - CardContent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/card/card.component.ts - - component - - CardHeader - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/card/card.component.ts - - directive - - CardActions - - 25 % - (1/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/card/card.component.ts - - directive - - CardHeaderActions - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/card/card.component.ts - - directive - - CardHeaderSubTitle - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/card/card.component.ts - - directive - - CardHeaderTitle - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/chart-widget/chart-widget-defaults.ts - - variable - - defaultChartOptions - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/chart-widget/chart-widget-options.interface.ts - - class - - ChartWidgetOptions - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts - - component - - ChartWidget - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts - - component - - ChartWidgetContent - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts - - component - - ChartWidgetHeader - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts - - directive - - ChartWidgetHeaderActions - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts - - directive - - ChartWidgetHeaderSubTitle - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts - - directive - - ChartWidgetHeaderTitle - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/donut-chart-widget/donut-chart-widget-options.interface.ts - - class - - DonutChartWidgetOptions - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/donut-chart-widget/donut-chart-widget.component.ts - - component - - DonutChartWidgetComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/line-chart-widget/line-chart-widget-options.interface.ts - - class - - LineChartWidgetOptions - - 0 % - (0/7) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/line-chart-widget/line-chart-widget.component.ts - - component - - LineChartWidgetComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/list/list-column.model.ts - - class - - ListColumn - - 0 % - (0/6) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/list/list.component.ts - - component - - ListComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/market-widget/market-widget.component.ts - - component - - MarketWidgetComponent - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/page/page-padding.directive.ts - - directive - - PagePaddingDirective - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/page/page.directive.ts - - directive - - PageDirective - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/quick-info-widget/quick-info-widget.component.ts - - component - - QuickInfoWidgetComponent - - 0 % - (0/8) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/realtime-users-widget/realtime-users-widget.component.ts - - component - - RealtimeUsersWidgetComponent - - 0 % - (0/11) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/realtime-users-widget/realtime-users-widget.interface.ts - - class - - RealtimeUsersWidgetOptions - - 0 % - (0/2) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/realtime-users-widget/realtime-users-widget.interface.ts - - interface - - RealtimeUsersWidgetData - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/realtime-users-widget/realtime-users-widget.interface.ts - - interface - - RealtimeUsersWidgetPages - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/recent-sales-widget/recent-sales-widget-options.interface.ts - - interface - - RecentSalesWidgetOptions - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/recent-sales-widget/recent-sales-widget-table/recent-sales-widget-table.component.ts - - component - - RecentSalesWidgetTableComponent - - 8 % - (1/12) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/recent-sales-widget/recent-sales-widget.component.ts - - component - - RecentSalesWidgetComponent - - 0 % - (0/12) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/sales-summary-widget/sales-summary-widget-options.interface.ts - - interface - - SalesSummaryWidgetOptions - - 0 % - (0/4) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/components/sales-summary-widget/sales-summary-widget.component.ts - - component - - SalesSummaryWidgetComponent - - 0 % - (0/9) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/containers/wizdash/wizdash.component.ts - - component - - WizdashComponent - - 6 % - (2/30) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/containers/wizdash/wizdash.service.ts - - injectable - - WizdashService - - 3 % - (1/27) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/color.interface.ts - - class - - Color - - 0 % - (0/3) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/inbox-demo-data.ts - - variable - - inboxMails - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/inbox-demo-data.ts - - variable - - labelColors - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/mail.interface.ts - - class - - Mail - - 0 % - (0/13) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - advancedPieChartDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - advancedPieChartDemoValues - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewBounceRateDemoData - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewBounceRateDemoDataLastWeek - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewBounceRateDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewSessionDurationDemoData - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewSessionDurationDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewSessionDurationDemoLastWeek - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewSessionsDemoData - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewSessionsDemoDataLastWeek - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewSessionsDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewUsersDemoData - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewUsersDemoDataLastWeek - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - audienceOverviewUsersDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - clicksChartDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - clicksChartDemoValues - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - conversionsChartDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - conversionsChartDemoValues - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - now - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - recentSalesChartDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - recentSalesChartDemoValues - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - recentSalesTableDemoData - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - salesChartDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - salesChartDemoValues - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - salesSummaryDemoData - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - salesSummaryDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - today - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - top5CategoriesDemoData - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - visitsChartDemoLabels - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/demo-data/widget-demo-data.ts - - variable - - visitsChartDemoValues - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/widgets.module.ts - - variable - - cardComponents - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/widgets.module.ts - - variable - - chartWidgetComponents - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/widgets.module.ts - - variable - - pageComponents - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - libs/widgets/src/lib/widgets.module.ts - - variable - - WIDGETS - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - tools/schematics/store/index.ts - - function - - store - - 0 % - (0/1) -
                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dependencies.html b/docs/dependencies.html deleted file mode 100644 index 95cf0d19d..000000000 --- a/docs/dependencies.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/animations : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/cdk : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/common : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/compiler : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/core : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/flex-layout : ^7.0.0-beta.19
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/forms : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/material : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/material-moment-adapter : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/platform-browser : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/platform-browser-dynamic : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/pwa : 0.10.3
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/router : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @angular/service-worker : ^7.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @fortawesome/angular-fontawesome : ^0.3.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @fortawesome/fontawesome-svg-core : ^1.2.7
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @fortawesome/free-brands-svg-icons : ^5.4.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @fortawesome/free-solid-svg-icons : ^5.4.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nestjs/common : ^5.4.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nestjs/core : ^5.4.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nestjs/elasticsearch : ^0.1.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nestjs/microservices : ^5.4.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nestjs/passport : ^5.1.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nestjs/swagger : ^2.5.1
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nestjs/typeorm : ^5.2.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nestjs/websockets : ^5.4.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @ngx-formly/core : ^5.0.0-beta.13
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @ngx-formly/material : ^5.0.0-beta.13
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @ngxs/devtools-plugin : ^3.2.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @ngxs/form-plugin : ^3.2.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @ngxs/router-plugin : ^3.2.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @ngxs/store : ^3.2.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @nrwl/nx : ^7.0.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @trademe/ng-defer-load : ^2.0.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @xmlking/api-ai-javascript : ^2.0.0-beta.22
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @xmlking/jwks-rsa : ^1.4.3
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - @xmlking/ngx-knob : 0.0.8
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - angular-in-memory-web-api : ^0.7.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - angular-oauth2-oidc : ^5.0.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - chart.js : ^2.7.3
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - chart.piecelabel.js : ^0.15.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - class-transformer : ^0.1.10
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - class-validator : ^0.9.1
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - cls-hooked : ^4.2.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - core-js : ^2.5.7
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - d3 : ^4.13.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - d3-selection-multi : ^1.0.1
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - dotenv : ^6.1.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - filepond-plugin-file-encode : ^2.0.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - filepond-plugin-file-validate-size : ^2.0.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - filepond-plugin-file-validate-type : ^1.2.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - filepond-plugin-image-crop : ^2.0.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - filepond-plugin-image-preview : ^3.1.3
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - formidable : ^1.2.1
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - hammerjs : ^2.0.8
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - helmet : ^3.14.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - nest-router : ^1.0.7
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - ngx-filepond : ^4.0.1
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - ngx-moment : ^3.2.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - ngx-page-scroll : ^5.0.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - ngx-perfect-scrollbar : ^7.0.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - nodemailer : ^4.6.8
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - passport : ^0.4.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - passport-jwt : ^4.0.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - pg : ^7.6.0
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - pug : ^2.0.3
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - rxjs : ^6.3.3
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - screenfull : ^3.3.3
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - smooth-scrollbar : ^8.3.1
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - socket.io-client : ^2.1.1
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - typeorm : ^0.2.8
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - typescript : ^3.1.5
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - uuid : ^3.3.2
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    • - zone.js : ^0.8.26
                                                                                                                                                                                                                                                                                                                                                                                                    • -
                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/AspectRatioContentDirective.html b/docs/directives/AspectRatioContentDirective.html deleted file mode 100644 index b9031e1da..000000000 --- a/docs/directives/AspectRatioContentDirective.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      - libs/widgets/src/lib/components/aspect-ratio/aspect-ratio-content.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      Selector[ngxAspectRatioContent]
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      - - - - class.ngx-aspect-ratio-content-element - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      - class.ngx-aspect-ratio-content-element: - -
                                                                                                                                                                                                                                                                                                                                                                                                      - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      import { Directive, HostBinding } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                      -  selector: '[ngxAspectRatioContent]',
                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                      -export class AspectRatioContentDirective {
                                                                                                                                                                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-aspect-ratio-content-element')
                                                                                                                                                                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/AspectRatioDirective.html b/docs/directives/AspectRatioDirective.html deleted file mode 100644 index 062891bf2..000000000 --- a/docs/directives/AspectRatioDirective.html +++ /dev/null @@ -1,2096 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        - libs/widgets/src/lib/components/aspect-ratio/aspect-ratio.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                        - - -

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        Implements

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        - OnInit - AfterContentInit - OnChanges - OnDestroy -

                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        Selector - [ngxAspectRatio], - [ngxAspectRatio.xs], [ngxAspectRatio.sm], [ngxAspectRatio.md], [ngxAspectRatio.lg], [ngxAspectRatio.xl], - [ngxAspectRatio.lt-sm], [ngxAspectRatio.lt-md], [ngxAspectRatio.lt-lg], [ngxAspectRatio.lt-xl], - [ngxAspectRatio.gt-xs], [ngxAspectRatio.gt-sm], [ngxAspectRatio.gt-md], [ngxAspectRatio.gt-lg], -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        Inputs
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        Accessors
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -constructor(monitor: MediaMonitor, styleUtils: StyleUtils, renderer: Renderer2, hostElement: ElementRef, cd: ChangeDetectorRef) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                        monitor - MediaMonitor - - No -
                                                                                                                                                                                                                                                                                                                                                                                                        styleUtils - StyleUtils - - No -
                                                                                                                                                                                                                                                                                                                                                                                                        renderer - Renderer2 - - No -
                                                                                                                                                                                                                                                                                                                                                                                                        hostElement - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                        cd - ChangeDetectorRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        Inputs

                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.gt-lg - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.gt-md - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.gt-sm - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.gt-xs - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.lg - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.lt-lg - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.lt-md - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.lt-sm - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.lt-xl - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.md - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.sm - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.xl - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxAspectRatio.xs - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Protected - _updateStyle - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - _updateStyle(value?: string | number) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                        value - string | number - - Yes -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - calculatePadding - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -calculatePadding(ratio: string) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                        ratio - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : number - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - ngAfterContentInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -ngAfterContentInit() -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - ngOnChanges - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -ngOnChanges(changes: SimpleChanges) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        For @Input changes on the current mq activation property, see onMediaQueryChanges()

                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                        changes - SimpleChanges - - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - renderPadding - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -renderPadding(paddingInPercent: number, compensation?: string) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                        paddingInPercent - number - - No -
                                                                                                                                                                                                                                                                                                                                                                                                        compensation - string - - Yes -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - contentElement - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - contentElement: ElementRef - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Type : ElementRef - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Decorators : -
                                                                                                                                                                                                                                                                                                                                                                                                        - - @ContentChild(AspectRatioContentDirective, {read: ElementRef})
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - pseudoElement - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - pseudoElement: any - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Type : any - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        - Accessors -

                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatio -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatio(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioXs -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioXs(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioSm -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioSm(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioMd -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioMd(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioLg -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioLg(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioXl -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioXl(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioGtXs -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioGtXs(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioGtSm -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioGtSm(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioGtMd -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioGtMd(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioGtLg -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioGtLg(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioLtSm -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioLtSm(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioLtMd -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioLtMd(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioLtLg -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioLtLg(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - aspectRatioLtXl -
                                                                                                                                                                                                                                                                                                                                                                                                        - setaspectRatioLtXl(val) -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                        val - No -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        import {
                                                                                                                                                                                                                                                                                                                                                                                                        -  AfterContentInit,
                                                                                                                                                                                                                                                                                                                                                                                                        -  ChangeDetectorRef,
                                                                                                                                                                                                                                                                                                                                                                                                        -  ContentChild,
                                                                                                                                                                                                                                                                                                                                                                                                        -  Directive,
                                                                                                                                                                                                                                                                                                                                                                                                        -  ElementRef,
                                                                                                                                                                                                                                                                                                                                                                                                        -  Input,
                                                                                                                                                                                                                                                                                                                                                                                                        -  OnChanges,
                                                                                                                                                                                                                                                                                                                                                                                                        -  OnDestroy,
                                                                                                                                                                                                                                                                                                                                                                                                        -  OnInit,
                                                                                                                                                                                                                                                                                                                                                                                                        -  Renderer2,
                                                                                                                                                                                                                                                                                                                                                                                                        -  SimpleChanges,
                                                                                                                                                                                                                                                                                                                                                                                                        -} from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                        -import { BaseDirective, MediaChange, MediaMonitor, StyleUtils } from '@angular/flex-layout';
                                                                                                                                                                                                                                                                                                                                                                                                        -import { AspectRatioContentDirective } from './aspect-ratio-content.directive';
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                        -  selector: `
                                                                                                                                                                                                                                                                                                                                                                                                        -  [ngxAspectRatio],
                                                                                                                                                                                                                                                                                                                                                                                                        -  [ngxAspectRatio.xs], [ngxAspectRatio.sm], [ngxAspectRatio.md], [ngxAspectRatio.lg], [ngxAspectRatio.xl],
                                                                                                                                                                                                                                                                                                                                                                                                        -  [ngxAspectRatio.lt-sm], [ngxAspectRatio.lt-md], [ngxAspectRatio.lt-lg], [ngxAspectRatio.lt-xl],
                                                                                                                                                                                                                                                                                                                                                                                                        -  [ngxAspectRatio.gt-xs], [ngxAspectRatio.gt-sm], [ngxAspectRatio.gt-md], [ngxAspectRatio.gt-lg],
                                                                                                                                                                                                                                                                                                                                                                                                        -  `,
                                                                                                                                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                                                                                                                                        -export class AspectRatioDirective extends BaseDirective implements OnInit, AfterContentInit, OnChanges, OnDestroy {
                                                                                                                                                                                                                                                                                                                                                                                                        -  @ContentChild(AspectRatioContentDirective, { read: ElementRef })
                                                                                                                                                                                                                                                                                                                                                                                                        -  contentElement: ElementRef;
                                                                                                                                                                                                                                                                                                                                                                                                        -  pseudoElement: any;
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(
                                                                                                                                                                                                                                                                                                                                                                                                        -    monitor: MediaMonitor,
                                                                                                                                                                                                                                                                                                                                                                                                        -    private styleUtils: StyleUtils,
                                                                                                                                                                                                                                                                                                                                                                                                        -    private renderer: Renderer2,
                                                                                                                                                                                                                                                                                                                                                                                                        -    private hostElement: ElementRef,
                                                                                                                                                                                                                                                                                                                                                                                                        -    private cd: ChangeDetectorRef,
                                                                                                                                                                                                                                                                                                                                                                                                        -  ) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    super(monitor, hostElement, styleUtils);
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -    this.pseudoElement = this.renderer.createElement('div');
                                                                                                                                                                                                                                                                                                                                                                                                        -    this.renderer.addClass(this.pseudoElement, 'ngx-aspect-ratio-pseudo-element');
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatio', '');
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  /* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatio(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatio', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.xs')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioXs(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioXs', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.sm')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioSm(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioSm', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.md')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioMd(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioMd', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.lg')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioLg(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioLg', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.xl')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioXl(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioXl', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.gt-xs')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioGtXs(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioGtXs', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.gt-sm')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioGtSm(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioGtSm', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.gt-md')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioGtMd(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioGtMd', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.gt-lg')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioGtLg(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioGtLg', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.lt-sm')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioLtSm(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioLtSm', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  /* tslint:enable */
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.lt-md')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioLtMd(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioLtMd', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.lt-lg')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioLtLg(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioLtLg', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  @Input('ngxAspectRatio.lt-xl')
                                                                                                                                                                                                                                                                                                                                                                                                        -  set aspectRatioLtXl(val) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._cacheInput('aspectRatioLtXl', val);
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                        -   * For @Input changes on the current mq activation property, see onMediaQueryChanges()
                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                        -  ngOnChanges(changes: SimpleChanges) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    if (changes['aspectRatio'] != null || this._mqActivation) {
                                                                                                                                                                                                                                                                                                                                                                                                        -      this._updateStyle();
                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                                                                        -    super.ngOnInit();
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._listenForMediaQueryChanges('aspectRatio', '', (changes: MediaChange) => {
                                                                                                                                                                                                                                                                                                                                                                                                        -      this._updateStyle(changes.value);
                                                                                                                                                                                                                                                                                                                                                                                                        -    });
                                                                                                                                                                                                                                                                                                                                                                                                        -    this._updateStyle();
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  ngAfterContentInit() {
                                                                                                                                                                                                                                                                                                                                                                                                        -    if (this.hostElement && this.pseudoElement && this.contentElement) {
                                                                                                                                                                                                                                                                                                                                                                                                        -      this.renderer.addClass(this.hostElement.nativeElement, 'ngx-aspect-ratio-host-element');
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -      this.renderer.insertBefore(this.hostElement.nativeElement, this.pseudoElement, this.contentElement.nativeElement);
                                                                                                                                                                                                                                                                                                                                                                                                        -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                        -      if (!this.hostElement) {
                                                                                                                                                                                                                                                                                                                                                                                                        -        console.error('ngxAspectRatio: Host Element is not defined.');
                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                        -      if (!this.pseudoElement) {
                                                                                                                                                                                                                                                                                                                                                                                                        -        console.error('ngxAspectRatio: Pseudo Element is not defined.');
                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                        -      if (!this.contentElement) {
                                                                                                                                                                                                                                                                                                                                                                                                        -        console.error('ngxAspectRatio: AspectRatioContent Element is not defined.');
                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  calculatePadding(ratio: string) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    const ratios = ratio.split(':');
                                                                                                                                                                                                                                                                                                                                                                                                        -    return (+ratios[1] / +ratios[0]) * 100;
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  renderPadding(paddingInPercent: number, compensation?: string) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    if (compensation) {
                                                                                                                                                                                                                                                                                                                                                                                                        -      this.renderer.setStyle(this.pseudoElement, 'padding-top', `calc(${paddingInPercent}% ${compensation})`);
                                                                                                                                                                                                                                                                                                                                                                                                        -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                        -      this.renderer.setStyle(this.pseudoElement, 'padding-top', `${paddingInPercent}%`);
                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                        -    this.cd.markForCheck();
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -  protected _updateStyle(value?: string | number) {
                                                                                                                                                                                                                                                                                                                                                                                                        -    let compensation: string;
                                                                                                                                                                                                                                                                                                                                                                                                        -    let aspectRatio = value || this._queryInput('aspectRatio') || '';
                                                                                                                                                                                                                                                                                                                                                                                                        -    if (this._mqActivation) {
                                                                                                                                                                                                                                                                                                                                                                                                        -      aspectRatio = this._mqActivation.activatedInput;
                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -    if (aspectRatio) {
                                                                                                                                                                                                                                                                                                                                                                                                        -      if (aspectRatio.split('-').length > 1) {
                                                                                                                                                                                                                                                                                                                                                                                                        -        const ratioAndCompensation = aspectRatio.split('-');
                                                                                                                                                                                                                                                                                                                                                                                                        -        aspectRatio = ratioAndCompensation[0];
                                                                                                                                                                                                                                                                                                                                                                                                        -        compensation = `- ${ratioAndCompensation[1]}`;
                                                                                                                                                                                                                                                                                                                                                                                                        -      } else if (aspectRatio.split('+').length > 1) {
                                                                                                                                                                                                                                                                                                                                                                                                        -        const ratioAndCompensation = aspectRatio.split('+');
                                                                                                                                                                                                                                                                                                                                                                                                        -        aspectRatio = ratioAndCompensation[0];
                                                                                                                                                                                                                                                                                                                                                                                                        -        compensation = `+ ${ratioAndCompensation[1]}`;
                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -    if (compensation) {
                                                                                                                                                                                                                                                                                                                                                                                                        -      this.renderPadding(this.calculatePadding(aspectRatio), compensation);
                                                                                                                                                                                                                                                                                                                                                                                                        -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                        -      this.renderPadding(this.calculatePadding(aspectRatio));
                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/CardActions.html b/docs/directives/CardActions.html deleted file mode 100644 index f3da054f0..000000000 --- a/docs/directives/CardActions.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          - libs/widgets/src/lib/components/card/card.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                          - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          Selectorngx-card-actions
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          Inputs
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          Inputs

                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          - - align - -

                                                                                                                                                                                                                                                                                                                                                                                                          Position of the actions inside the card.

                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          - Type : "start" | "end" - -

                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          - Default value : 'start' -

                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          - - - - class.ngx-card-actions - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          - class.ngx-card-actions: - -
                                                                                                                                                                                                                                                                                                                                                                                                          - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          - - - - class.ngx-card-actions-align-end - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          - class.ngx-card-actions-align-end: - -
                                                                                                                                                                                                                                                                                                                                                                                                          - Default value : this.align === 'end' -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          import { ChangeDetectionStrategy, Component, Directive, HostBinding, Input, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -/* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-card',
                                                                                                                                                                                                                                                                                                                                                                                                          -  templateUrl: './card.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                          -  styleUrls: ['./card.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                          -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                          -export class Card {
                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-card')
                                                                                                                                                                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-card-header',
                                                                                                                                                                                                                                                                                                                                                                                                          -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                          -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                          -    <div class="ngx-card-header-title-group">
                                                                                                                                                                                                                                                                                                                                                                                                          -      <ng-content select="ngx-card-header-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                          -      <ng-content select="ngx-card-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                          -    </div>
                                                                                                                                                                                                                                                                                                                                                                                                          -    <ng-content></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                          -    <ng-content select="ngx-card-header-actions"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                          -  `,
                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                          -export class CardHeader {
                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-card-header')
                                                                                                                                                                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-card-content',
                                                                                                                                                                                                                                                                                                                                                                                                          -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                          -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                          -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                          -export class CardContent {
                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-card-content')
                                                                                                                                                                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-card-header-title',
                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                          -export class CardHeaderTitle {
                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-card-header-title')
                                                                                                                                                                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-card-header-sub-title',
                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                          -export class CardHeaderSubTitle {
                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-card-header-sub-title')
                                                                                                                                                                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-card-header-actions',
                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                          -export class CardHeaderActions {
                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-card-header-actions')
                                                                                                                                                                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-card-actions',
                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                          -export class CardActions {
                                                                                                                                                                                                                                                                                                                                                                                                          -  /** Position of the actions inside the card. */
                                                                                                                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                          -  align: 'start' | 'end' = 'start';
                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-card-actions')
                                                                                                                                                                                                                                                                                                                                                                                                          -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class.ngx-card-actions-align-end')
                                                                                                                                                                                                                                                                                                                                                                                                          -  isEnd2 = this.align === 'end';
                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/CardHeaderActions.html b/docs/directives/CardHeaderActions.html deleted file mode 100644 index 3a4515c70..000000000 --- a/docs/directives/CardHeaderActions.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            - libs/widgets/src/lib/components/card/card.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                            - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            Selectorngx-card-header-actions
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            - - - - class.ngx-card-header-actions - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            - class.ngx-card-header-actions: - -
                                                                                                                                                                                                                                                                                                                                                                                                            - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            import { ChangeDetectionStrategy, Component, Directive, HostBinding, Input, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -/* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-card',
                                                                                                                                                                                                                                                                                                                                                                                                            -  templateUrl: './card.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                            -  styleUrls: ['./card.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                            -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                            -export class Card {
                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.ngx-card')
                                                                                                                                                                                                                                                                                                                                                                                                            -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-card-header',
                                                                                                                                                                                                                                                                                                                                                                                                            -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                            -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                            -    <div class="ngx-card-header-title-group">
                                                                                                                                                                                                                                                                                                                                                                                                            -      <ng-content select="ngx-card-header-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                            -      <ng-content select="ngx-card-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                            -    </div>
                                                                                                                                                                                                                                                                                                                                                                                                            -    <ng-content></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                            -    <ng-content select="ngx-card-header-actions"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                            -  `,
                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                            -export class CardHeader {
                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.ngx-card-header')
                                                                                                                                                                                                                                                                                                                                                                                                            -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-card-content',
                                                                                                                                                                                                                                                                                                                                                                                                            -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                            -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                            -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                            -export class CardContent {
                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.ngx-card-content')
                                                                                                                                                                                                                                                                                                                                                                                                            -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-card-header-title',
                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                            -export class CardHeaderTitle {
                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.ngx-card-header-title')
                                                                                                                                                                                                                                                                                                                                                                                                            -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-card-header-sub-title',
                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                            -export class CardHeaderSubTitle {
                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.ngx-card-header-sub-title')
                                                                                                                                                                                                                                                                                                                                                                                                            -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-card-header-actions',
                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                            -export class CardHeaderActions {
                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.ngx-card-header-actions')
                                                                                                                                                                                                                                                                                                                                                                                                            -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: 'ngx-card-actions',
                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                            -export class CardActions {
                                                                                                                                                                                                                                                                                                                                                                                                            -  /** Position of the actions inside the card. */
                                                                                                                                                                                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                            -  align: 'start' | 'end' = 'start';
                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.ngx-card-actions')
                                                                                                                                                                                                                                                                                                                                                                                                            -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('class.ngx-card-actions-align-end')
                                                                                                                                                                                                                                                                                                                                                                                                            -  isEnd2 = this.align === 'end';
                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/CardHeaderSubTitle.html b/docs/directives/CardHeaderSubTitle.html deleted file mode 100644 index 5b7273b4a..000000000 --- a/docs/directives/CardHeaderSubTitle.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              - libs/widgets/src/lib/components/card/card.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                              - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              Selectorngx-card-header-sub-title
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              - - - - class.ngx-card-header-sub-title - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              - class.ngx-card-header-sub-title: - -
                                                                                                                                                                                                                                                                                                                                                                                                              - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              import { ChangeDetectionStrategy, Component, Directive, HostBinding, Input, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -/* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-card',
                                                                                                                                                                                                                                                                                                                                                                                                              -  templateUrl: './card.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                              -  styleUrls: ['./card.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                              -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                              -export class Card {
                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card')
                                                                                                                                                                                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-card-header',
                                                                                                                                                                                                                                                                                                                                                                                                              -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                              -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                              -    <div class="ngx-card-header-title-group">
                                                                                                                                                                                                                                                                                                                                                                                                              -      <ng-content select="ngx-card-header-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                              -      <ng-content select="ngx-card-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                              -    </div>
                                                                                                                                                                                                                                                                                                                                                                                                              -    <ng-content></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                              -    <ng-content select="ngx-card-header-actions"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                              -  `,
                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                              -export class CardHeader {
                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-header')
                                                                                                                                                                                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-card-content',
                                                                                                                                                                                                                                                                                                                                                                                                              -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                              -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                              -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                              -export class CardContent {
                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-content')
                                                                                                                                                                                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-card-header-title',
                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                              -export class CardHeaderTitle {
                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-header-title')
                                                                                                                                                                                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-card-header-sub-title',
                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                              -export class CardHeaderSubTitle {
                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-header-sub-title')
                                                                                                                                                                                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-card-header-actions',
                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                              -export class CardHeaderActions {
                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-header-actions')
                                                                                                                                                                                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: 'ngx-card-actions',
                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                              -export class CardActions {
                                                                                                                                                                                                                                                                                                                                                                                                              -  /** Position of the actions inside the card. */
                                                                                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                              -  align: 'start' | 'end' = 'start';
                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-actions')
                                                                                                                                                                                                                                                                                                                                                                                                              -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('class.ngx-card-actions-align-end')
                                                                                                                                                                                                                                                                                                                                                                                                              -  isEnd2 = this.align === 'end';
                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/CardHeaderTitle.html b/docs/directives/CardHeaderTitle.html deleted file mode 100644 index 1657fd17f..000000000 --- a/docs/directives/CardHeaderTitle.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                - libs/widgets/src/lib/components/card/card.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                Selectorngx-card-header-title
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                - - - - class.ngx-card-header-title - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                - class.ngx-card-header-title: - -
                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                import { ChangeDetectionStrategy, Component, Directive, HostBinding, Input, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -/* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-card',
                                                                                                                                                                                                                                                                                                                                                                                                                -  templateUrl: './card.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                                -  styleUrls: ['./card.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                                -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                -export class Card {
                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostBinding('class.ngx-card')
                                                                                                                                                                                                                                                                                                                                                                                                                -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-card-header',
                                                                                                                                                                                                                                                                                                                                                                                                                -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                                -    <div class="ngx-card-header-title-group">
                                                                                                                                                                                                                                                                                                                                                                                                                -      <ng-content select="ngx-card-header-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                -      <ng-content select="ngx-card-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                -    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                -    <ng-content></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                -    <ng-content select="ngx-card-header-actions"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                -  `,
                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                -export class CardHeader {
                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostBinding('class.ngx-card-header')
                                                                                                                                                                                                                                                                                                                                                                                                                -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-card-content',
                                                                                                                                                                                                                                                                                                                                                                                                                -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                                -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                -export class CardContent {
                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostBinding('class.ngx-card-content')
                                                                                                                                                                                                                                                                                                                                                                                                                -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-card-header-title',
                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                -export class CardHeaderTitle {
                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostBinding('class.ngx-card-header-title')
                                                                                                                                                                                                                                                                                                                                                                                                                -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-card-header-sub-title',
                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                -export class CardHeaderSubTitle {
                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostBinding('class.ngx-card-header-sub-title')
                                                                                                                                                                                                                                                                                                                                                                                                                -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-card-header-actions',
                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                -export class CardHeaderActions {
                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostBinding('class.ngx-card-header-actions')
                                                                                                                                                                                                                                                                                                                                                                                                                -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-card-actions',
                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                -export class CardActions {
                                                                                                                                                                                                                                                                                                                                                                                                                -  /** Position of the actions inside the card. */
                                                                                                                                                                                                                                                                                                                                                                                                                -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                -  align: 'start' | 'end' = 'start';
                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostBinding('class.ngx-card-actions')
                                                                                                                                                                                                                                                                                                                                                                                                                -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostBinding('class.ngx-card-actions-align-end')
                                                                                                                                                                                                                                                                                                                                                                                                                -  isEnd2 = this.align === 'end';
                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/ChartWidgetHeaderActions.html b/docs/directives/ChartWidgetHeaderActions.html deleted file mode 100644 index c377f51c3..000000000 --- a/docs/directives/ChartWidgetHeaderActions.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  Selectorngx-chart-widget-header-actions
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - class.ngx-chart-widget-header-actions - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  - class.ngx-chart-widget-header-actions: - -
                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  import { ChangeDetectionStrategy, Component, Directive, HostBinding, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                  -/* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-chart-widget',
                                                                                                                                                                                                                                                                                                                                                                                                                  -  templateUrl: './chart-widget.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                                  -  styleUrls: ['./chart-widget.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                                  -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                                                                  -export class ChartWidget {
                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-chart-widget')
                                                                                                                                                                                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-chart-widget-header',
                                                                                                                                                                                                                                                                                                                                                                                                                  -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                  -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                                  -    <div class="ngx-chart-widget-header-title-group">
                                                                                                                                                                                                                                                                                                                                                                                                                  -      <ng-content select="ngx-chart-widget-header-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                  -      <ng-content select="ngx-chart-widget-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                  -    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                  -    <ng-content select="ngx-chart-widget-header-actions"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                  -  `,
                                                                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                                                                  -export class ChartWidgetHeader {
                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-chart-widget-header')
                                                                                                                                                                                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-chart-widget-header-title',
                                                                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                                                                  -export class ChartWidgetHeaderTitle {
                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-chart-widget-header-title')
                                                                                                                                                                                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-chart-widget-header-sub-title',
                                                                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                                                                  -export class ChartWidgetHeaderSubTitle {
                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-chart-widget-header-sub-title')
                                                                                                                                                                                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-chart-widget-header-actions',
                                                                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                                                                  -export class ChartWidgetHeaderActions {
                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-chart-widget-header-actions')
                                                                                                                                                                                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                  -  selector: 'ngx-chart-widget-content',
                                                                                                                                                                                                                                                                                                                                                                                                                  -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                  -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                                  -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                                                                  -export class ChartWidgetContent {
                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostBinding('class.ngx-chart-widget-content')
                                                                                                                                                                                                                                                                                                                                                                                                                  -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/ChartWidgetHeaderSubTitle.html b/docs/directives/ChartWidgetHeaderSubTitle.html deleted file mode 100644 index 326012cb7..000000000 --- a/docs/directives/ChartWidgetHeaderSubTitle.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    Selectorngx-chart-widget-header-sub-title
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - class.ngx-chart-widget-header-sub-title - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    - class.ngx-chart-widget-header-sub-title: - -
                                                                                                                                                                                                                                                                                                                                                                                                                    - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    import { ChangeDetectionStrategy, Component, Directive, HostBinding, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                    -/* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-chart-widget',
                                                                                                                                                                                                                                                                                                                                                                                                                    -  templateUrl: './chart-widget.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                                    -  styleUrls: ['./chart-widget.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                                    -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ChartWidget {
                                                                                                                                                                                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-chart-widget')
                                                                                                                                                                                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-chart-widget-header',
                                                                                                                                                                                                                                                                                                                                                                                                                    -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                    -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                                    -    <div class="ngx-chart-widget-header-title-group">
                                                                                                                                                                                                                                                                                                                                                                                                                    -      <ng-content select="ngx-chart-widget-header-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                    -      <ng-content select="ngx-chart-widget-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                    -    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                    -    <ng-content select="ngx-chart-widget-header-actions"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                    -  `,
                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ChartWidgetHeader {
                                                                                                                                                                                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-chart-widget-header')
                                                                                                                                                                                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-chart-widget-header-title',
                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ChartWidgetHeaderTitle {
                                                                                                                                                                                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-chart-widget-header-title')
                                                                                                                                                                                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-chart-widget-header-sub-title',
                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ChartWidgetHeaderSubTitle {
                                                                                                                                                                                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-chart-widget-header-sub-title')
                                                                                                                                                                                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-chart-widget-header-actions',
                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ChartWidgetHeaderActions {
                                                                                                                                                                                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-chart-widget-header-actions')
                                                                                                                                                                                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-chart-widget-content',
                                                                                                                                                                                                                                                                                                                                                                                                                    -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                    -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                                    -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ChartWidgetContent {
                                                                                                                                                                                                                                                                                                                                                                                                                    -  @HostBinding('class.ngx-chart-widget-content')
                                                                                                                                                                                                                                                                                                                                                                                                                    -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/ChartWidgetHeaderTitle.html b/docs/directives/ChartWidgetHeaderTitle.html deleted file mode 100644 index db181d034..000000000 --- a/docs/directives/ChartWidgetHeaderTitle.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/widgets/src/lib/components/chart-widget/chart-widget.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      Selectorngx-chart-widget-header-title
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - class.ngx-chart-widget-header-title - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      - class.ngx-chart-widget-header-title: - -
                                                                                                                                                                                                                                                                                                                                                                                                                      - Default value : true -
                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      import { ChangeDetectionStrategy, Component, Directive, HostBinding, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                      -/* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget',
                                                                                                                                                                                                                                                                                                                                                                                                                      -  templateUrl: './chart-widget.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                                      -  styleUrls: ['./chart-widget.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                                      -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                      -export class ChartWidget {
                                                                                                                                                                                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget')
                                                                                                                                                                                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-header',
                                                                                                                                                                                                                                                                                                                                                                                                                      -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                      -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                                      -    <div class="ngx-chart-widget-header-title-group">
                                                                                                                                                                                                                                                                                                                                                                                                                      -      <ng-content select="ngx-chart-widget-header-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                      -      <ng-content select="ngx-chart-widget-header-sub-title"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                      -    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                      -    <ng-content select="ngx-chart-widget-header-actions"></ng-content>
                                                                                                                                                                                                                                                                                                                                                                                                                      -  `,
                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                      -export class ChartWidgetHeader {
                                                                                                                                                                                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-header')
                                                                                                                                                                                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-header-title',
                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                      -export class ChartWidgetHeaderTitle {
                                                                                                                                                                                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-header-title')
                                                                                                                                                                                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-header-sub-title',
                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                      -export class ChartWidgetHeaderSubTitle {
                                                                                                                                                                                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-header-sub-title')
                                                                                                                                                                                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-header-actions',
                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                      -export class ChartWidgetHeaderActions {
                                                                                                                                                                                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-header-actions')
                                                                                                                                                                                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                      -  selector: 'ngx-chart-widget-content',
                                                                                                                                                                                                                                                                                                                                                                                                                      -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                      -  template: `
                                                                                                                                                                                                                                                                                                                                                                                                                      -    <ng-content></ng-content>`,
                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                      -export class ChartWidgetContent {
                                                                                                                                                                                                                                                                                                                                                                                                                      -  @HostBinding('class.ngx-chart-widget-content')
                                                                                                                                                                                                                                                                                                                                                                                                                      -  bodyClass = true;
                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/ClickOutsideDirective-1.html b/docs/directives/ClickOutsideDirective-1.html deleted file mode 100644 index 043128666..000000000 --- a/docs/directives/ClickOutsideDirective-1.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/toolbar/src/lib/components/click-outside/click-outside.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        Selector[ngxClickOutside]
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        Outputs
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        HostListeners
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -constructor(_elementRef: ElementRef) -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                        _elementRef - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        Outputs

                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - ngxClickOutside - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        HostListeners

                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - document:click - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        - Arguments : '$event' '$event.target' -
                                                                                                                                                                                                                                                                                                                                                                                                                        -document:click(event: MouseEvent, targetElement: HTMLElement) -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        import { Directive, ElementRef, EventEmitter, HostListener, Output } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                        -  selector: '[ngxClickOutside]',
                                                                                                                                                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                                                                                                                                                        -export class ClickOutsideDirective {
                                                                                                                                                                                                                                                                                                                                                                                                                        -  @Output()
                                                                                                                                                                                                                                                                                                                                                                                                                        -  public ngxClickOutside = new EventEmitter<MouseEvent>();
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(private _elementRef: ElementRef) {}
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -  @HostListener('document:click', ['$event', '$event.target'])
                                                                                                                                                                                                                                                                                                                                                                                                                        -  public onClick(event: MouseEvent, targetElement: HTMLElement): void {
                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (!targetElement) {
                                                                                                                                                                                                                                                                                                                                                                                                                        -      return;
                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -    const clickedInside = this._elementRef.nativeElement.contains(targetElement);
                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (!clickedInside) {
                                                                                                                                                                                                                                                                                                                                                                                                                        -      this.ngxClickOutside.emit(event);
                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/ClickOutsideDirective.html b/docs/directives/ClickOutsideDirective.html deleted file mode 100644 index 8cb3d4142..000000000 --- a/docs/directives/ClickOutsideDirective.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/shared/src/lib/directives/click-outside/click-outside.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          Selector[ngxClickOutside]
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          Outputs
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          HostListeners
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -constructor(_elementRef: ElementRef) -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                          _elementRef - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          Outputs

                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - ngxClickOutside - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          HostListeners

                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - document:click - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          - Arguments : '$event' '$event.target' -
                                                                                                                                                                                                                                                                                                                                                                                                                          -document:click(event: MouseEvent, targetElement: HTMLElement) -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          import { Directive, ElementRef, EventEmitter, HostListener, Output } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: '[ngxClickOutside]',
                                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                                          -export class ClickOutsideDirective {
                                                                                                                                                                                                                                                                                                                                                                                                                          -  @Output()
                                                                                                                                                                                                                                                                                                                                                                                                                          -  public ngxClickOutside = new EventEmitter<MouseEvent>();
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor(private _elementRef: ElementRef) {}
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostListener('document:click', ['$event', '$event.target'])
                                                                                                                                                                                                                                                                                                                                                                                                                          -  public onClick(event: MouseEvent, targetElement: HTMLElement): void {
                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (!targetElement) {
                                                                                                                                                                                                                                                                                                                                                                                                                          -      return;
                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -    const clickedInside = this._elementRef.nativeElement.contains(targetElement);
                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (!clickedInside) {
                                                                                                                                                                                                                                                                                                                                                                                                                          -      this.ngxClickOutside.emit(event);
                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/ContextMenuTriggerDirective.html b/docs/directives/ContextMenuTriggerDirective.html deleted file mode 100644 index 91ccdab36..000000000 --- a/docs/directives/ContextMenuTriggerDirective.html +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            - libs/context-menu/src/lib/context-menu-trigger.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                            - - -

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            - OnDestroy -

                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            Selector[contextMenu]
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            Inputs
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            HostListeners
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -constructor(_overlay: Overlay, _elementRef: ElementRef, _vcr: ViewContainerRef) -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                            _overlay - Overlay - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                            _elementRef - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                            _vcr - ViewContainerRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Inputs

                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - contextMenu - -

                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : TemplateRef<any> - -

                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - style.cursor - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - style.cursor: - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - Default value : 'context-menu' -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            HostListeners

                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - contextmenu - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - Arguments : '$event' -
                                                                                                                                                                                                                                                                                                                                                                                                                            -contextmenu(event: MouseEvent) -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -ngOnDestroy() -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Must have

                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            import {
                                                                                                                                                                                                                                                                                                                                                                                                                            -  Directive,
                                                                                                                                                                                                                                                                                                                                                                                                                            -  HostListener,
                                                                                                                                                                                                                                                                                                                                                                                                                            -  TemplateRef,
                                                                                                                                                                                                                                                                                                                                                                                                                            -  Input,
                                                                                                                                                                                                                                                                                                                                                                                                                            -  ViewContainerRef,
                                                                                                                                                                                                                                                                                                                                                                                                                            -  ElementRef,
                                                                                                                                                                                                                                                                                                                                                                                                                            -  OnDestroy,
                                                                                                                                                                                                                                                                                                                                                                                                                            -  HostBinding,
                                                                                                                                                                                                                                                                                                                                                                                                                            -} from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                            -import { Overlay } from '@angular/cdk/overlay';
                                                                                                                                                                                                                                                                                                                                                                                                                            -import { TemplatePortal } from '@angular/cdk/portal';
                                                                                                                                                                                                                                                                                                                                                                                                                            -import { Subject, fromEvent } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                            -import { untilDestroy } from '@ngx-starter-kit/ngx-utils';
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: '[contextMenu]',
                                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                                            -export class ContextMenuTriggerDirective implements OnDestroy {
                                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostBinding('style.cursor')
                                                                                                                                                                                                                                                                                                                                                                                                                            -  cursor = 'context-menu';
                                                                                                                                                                                                                                                                                                                                                                                                                            -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                            -  contextMenu: TemplateRef<any>;
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -  constructor(private _overlay: Overlay, private _elementRef: ElementRef, private _vcr: ViewContainerRef) {}
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -  @HostListener('contextmenu', ['$event'])
                                                                                                                                                                                                                                                                                                                                                                                                                            -  onContextMenu(event: MouseEvent) {
                                                                                                                                                                                                                                                                                                                                                                                                                            -    event.preventDefault();
                                                                                                                                                                                                                                                                                                                                                                                                                            -    event.stopPropagation();
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -    const positionStrategy = this._overlay
                                                                                                                                                                                                                                                                                                                                                                                                                            -      .position()
                                                                                                                                                                                                                                                                                                                                                                                                                            -      .flexibleConnectedTo(this._elementRef)
                                                                                                                                                                                                                                                                                                                                                                                                                            -      .withPositions([
                                                                                                                                                                                                                                                                                                                                                                                                                            -        {
                                                                                                                                                                                                                                                                                                                                                                                                                            -          overlayX: 'start',
                                                                                                                                                                                                                                                                                                                                                                                                                            -          overlayY: 'top',
                                                                                                                                                                                                                                                                                                                                                                                                                            -          originX: 'start',
                                                                                                                                                                                                                                                                                                                                                                                                                            -          originY: 'bottom',
                                                                                                                                                                                                                                                                                                                                                                                                                            -        },
                                                                                                                                                                                                                                                                                                                                                                                                                            -      ]);
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -    const overlayRef = this._overlay.create({ positionStrategy });
                                                                                                                                                                                                                                                                                                                                                                                                                            -    const templatePortal = new TemplatePortal(this.contextMenu, this._vcr);
                                                                                                                                                                                                                                                                                                                                                                                                                            -    overlayRef.attach(templatePortal);
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -    fromEvent(document, 'click')
                                                                                                                                                                                                                                                                                                                                                                                                                            -      /** Automatically unsubscribe on destroy */
                                                                                                                                                                                                                                                                                                                                                                                                                            -      .pipe(untilDestroy(this))
                                                                                                                                                                                                                                                                                                                                                                                                                            -      .subscribe(() => overlayRef.detach());
                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -  /** Must have */
                                                                                                                                                                                                                                                                                                                                                                                                                            -  ngOnDestroy() {}
                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/DraggableDirective.html b/docs/directives/DraggableDirective.html deleted file mode 100644 index 6ce29097b..000000000 --- a/docs/directives/DraggableDirective.html +++ /dev/null @@ -1,825 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/draggable/src/lib/directives/draggable/draggable.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                              - - -

                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              - AfterViewInit - OnDestroy -

                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              Selector[draggable]
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              Inputs
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -constructor(elementRef: ElementRef, zone: NgZone) -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                              elementRef - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                              zone - NgZone - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              Inputs

                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - dragHandle - -

                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -

                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - dragTarget - -

                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -

                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - style.cursor - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - style.cursor: - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Default value : 'move' -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -ngOnDestroy() -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - setupEvents - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - setupEvents() -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - translate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - translate() -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - delta - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - delta: object - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : object - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Default value : { x: 0, y: 0 } -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - handle - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - handle: HTMLElement - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : HTMLElement - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - offset - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - offset: object - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : object - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Default value : { x: 0, y: 0 } -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - target - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - target: HTMLElement - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : HTMLElement - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              import { AfterViewInit, Directive, ElementRef, HostBinding, Input, NgZone, OnDestroy } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                              -import { fromEvent, merge } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                              -import { map, switchMap, takeUntil } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                              -import { untilDestroy } from '@ngx-starter-kit/ngx-utils';
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: '[draggable]',
                                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                                              -export class DraggableDirective implements AfterViewInit, OnDestroy {
                                                                                                                                                                                                                                                                                                                                                                                                                              -  @HostBinding('style.cursor')
                                                                                                                                                                                                                                                                                                                                                                                                                              -  cursor = 'move';
                                                                                                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                              -  dragHandle: string;
                                                                                                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                              -  dragTarget: string;
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -  // Element to be dragged
                                                                                                                                                                                                                                                                                                                                                                                                                              -  private target: HTMLElement;
                                                                                                                                                                                                                                                                                                                                                                                                                              -  // Drag handle
                                                                                                                                                                                                                                                                                                                                                                                                                              -  private handle: HTMLElement;
                                                                                                                                                                                                                                                                                                                                                                                                                              -  private delta = { x: 0, y: 0 };
                                                                                                                                                                                                                                                                                                                                                                                                                              -  private offset = { x: 0, y: 0 };
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(private elementRef: ElementRef, private zone: NgZone) {}
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -  public ngAfterViewInit(): void {
                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.handle = this.dragHandle
                                                                                                                                                                                                                                                                                                                                                                                                                              -      ? (document.querySelector(this.dragHandle) as HTMLElement)
                                                                                                                                                                                                                                                                                                                                                                                                                              -      : this.elementRef.nativeElement;
                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.target = document.querySelector(this.dragTarget) as HTMLElement;
                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.setupEvents();
                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -  ngOnDestroy() {}
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -  private setupEvents() {
                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.zone.runOutsideAngular(() => {
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const mouseEvents = (e: MouseEvent) => {
                                                                                                                                                                                                                                                                                                                                                                                                                              -        e.preventDefault();
                                                                                                                                                                                                                                                                                                                                                                                                                              -        return {
                                                                                                                                                                                                                                                                                                                                                                                                                              -          x: e.clientX,
                                                                                                                                                                                                                                                                                                                                                                                                                              -          y: e.clientY,
                                                                                                                                                                                                                                                                                                                                                                                                                              -        };
                                                                                                                                                                                                                                                                                                                                                                                                                              -      };
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const touchEvents = (e: TouchEvent) => {
                                                                                                                                                                                                                                                                                                                                                                                                                              -        return {
                                                                                                                                                                                                                                                                                                                                                                                                                              -          x: e.changedTouches[0].clientX,
                                                                                                                                                                                                                                                                                                                                                                                                                              -          y: e.changedTouches[0].clientY,
                                                                                                                                                                                                                                                                                                                                                                                                                              -        };
                                                                                                                                                                                                                                                                                                                                                                                                                              -      };
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const mousedown$ = fromEvent(this.handle, 'mousedown').pipe(map(mouseEvents));
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const mousemove$ = fromEvent(document, 'mousemove').pipe(map(mouseEvents));
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const mouseup$ = fromEvent(document, 'mouseup').pipe(map(mouseEvents));
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const touchstart$ = fromEvent(this.handle, 'touchstart').pipe(map(touchEvents));
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const touchmove$ = fromEvent(document, 'touchmove').pipe(map(touchEvents));
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const touchend$ = fromEvent(document, 'touchend').pipe(map(touchEvents));
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const start$ = merge(mousedown$, touchstart$);
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const move$ = merge(mousemove$, touchmove$);
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const end$ = merge(mouseup$, touchend$);
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -      const drag$ = start$.pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                              -        switchMap(start => {
                                                                                                                                                                                                                                                                                                                                                                                                                              -          const startX = start.x;
                                                                                                                                                                                                                                                                                                                                                                                                                              -          const startY = start.y;
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -          return move$.pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                              -            map(move => {
                                                                                                                                                                                                                                                                                                                                                                                                                              -              this.delta = {
                                                                                                                                                                                                                                                                                                                                                                                                                              -                x: move.x - startX,
                                                                                                                                                                                                                                                                                                                                                                                                                              -                y: move.y - startY,
                                                                                                                                                                                                                                                                                                                                                                                                                              -              };
                                                                                                                                                                                                                                                                                                                                                                                                                              -            }),
                                                                                                                                                                                                                                                                                                                                                                                                                              -            takeUntil(end$),
                                                                                                                                                                                                                                                                                                                                                                                                                              -          );
                                                                                                                                                                                                                                                                                                                                                                                                                              -        }),
                                                                                                                                                                                                                                                                                                                                                                                                                              -        untilDestroy(this),
                                                                                                                                                                                                                                                                                                                                                                                                                              -      );
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -      drag$.subscribe(() => {
                                                                                                                                                                                                                                                                                                                                                                                                                              -        if (this.delta.x === 0 && this.delta.y === 0) {
                                                                                                                                                                                                                                                                                                                                                                                                                              -          return;
                                                                                                                                                                                                                                                                                                                                                                                                                              -        }
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -        this.translate();
                                                                                                                                                                                                                                                                                                                                                                                                                              -      });
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -      end$.pipe(untilDestroy(this)).subscribe(() => {
                                                                                                                                                                                                                                                                                                                                                                                                                              -        this.offset.x += this.delta.x;
                                                                                                                                                                                                                                                                                                                                                                                                                              -        this.offset.y += this.delta.y;
                                                                                                                                                                                                                                                                                                                                                                                                                              -        this.delta = { x: 0, y: 0 };
                                                                                                                                                                                                                                                                                                                                                                                                                              -      });
                                                                                                                                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -  private translate() {
                                                                                                                                                                                                                                                                                                                                                                                                                              -    requestAnimationFrame(() => {
                                                                                                                                                                                                                                                                                                                                                                                                                              -      this.target.style.transform = `
                                                                                                                                                                                                                                                                                                                                                                                                                              -        translate(${this.offset.x + this.delta.x}px,
                                                                                                                                                                                                                                                                                                                                                                                                                              -                  ${this.offset.y + this.delta.y}px)
                                                                                                                                                                                                                                                                                                                                                                                                                              -      `;
                                                                                                                                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/HammertimeDirective.html b/docs/directives/HammertimeDirective.html deleted file mode 100644 index 45b7c5eb7..000000000 --- a/docs/directives/HammertimeDirective.html +++ /dev/null @@ -1,317 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/experiments/src/lib/components/hammertime/hammertime.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                Selector[hammertime]
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                Outputs
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                HostListeners
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                Outputs

                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - doubleTap - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - tripleTap - - $event Type: EventEmitter - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                HostListeners

                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - tap - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - Arguments : '$event' -
                                                                                                                                                                                                                                                                                                                                                                                                                                -tap(e) -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                import { Directive, HostListener, Output, EventEmitter } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: '[hammertime]',
                                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                                -export class HammertimeDirective {
                                                                                                                                                                                                                                                                                                                                                                                                                                -  @Output()
                                                                                                                                                                                                                                                                                                                                                                                                                                -  doubleTap = new EventEmitter();
                                                                                                                                                                                                                                                                                                                                                                                                                                -  @Output()
                                                                                                                                                                                                                                                                                                                                                                                                                                -  tripleTap = new EventEmitter();
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -  @HostListener('tap', ['$event'])
                                                                                                                                                                                                                                                                                                                                                                                                                                -  onTap(e) {
                                                                                                                                                                                                                                                                                                                                                                                                                                -    if (e.tapCount === 2) {
                                                                                                                                                                                                                                                                                                                                                                                                                                -      this.doubleTap.emit(e);
                                                                                                                                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -    if (e.tapCount === 3) {
                                                                                                                                                                                                                                                                                                                                                                                                                                -      this.tripleTap.emit(e);
                                                                                                                                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/IconSidenavDirective.html b/docs/directives/IconSidenavDirective.html deleted file mode 100644 index d0e189692..000000000 --- a/docs/directives/IconSidenavDirective.html +++ /dev/null @@ -1,697 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/sidenav/src/lib/components/icon-sidenav/icon-sidenav.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  Implements

                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  - OnInit - OnDestroy -

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  Selector[ngxIconSidenav]
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  HostListeners
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -constructor(store: Store, menuService: MenuService, media: ObservableMedia) -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                  store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                  menuService - MenuService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                  media - ObservableMedia - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - class.collapsed - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - class.collapsed: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - class.icon-sidenav - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - class.icon-sidenav: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  HostListeners

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - mouseenter - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -mouseenter() -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - mouseleave - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -mouseleave() -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -ngOnDestroy() -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _mediaSubscription - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - _mediaSubscription: Subscription - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : Subscription - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - currentlyOpen - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - currentlyOpen: MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - isMobile - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - isMobile: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : false -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  import { Directive, HostBinding, HostListener, Inject, OnInit, OnDestroy } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { MediaChange, ObservableMedia } from '@angular/flex-layout';
                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Subscription } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { MenuItem, MenuService } from '@ngx-starter-kit/navigator';
                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  selector: '[ngxIconSidenav]',
                                                                                                                                                                                                                                                                                                                                                                                                                                  -})
                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class IconSidenavDirective implements OnInit, OnDestroy {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private _mediaSubscription: Subscription;
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  isMobile = false;
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostBinding('class.icon-sidenav')
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  get isIconSidenav(): boolean {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this.menuService.isIconSidenav;
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostBinding('class.collapsed')
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  collapsed: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  currentlyOpen: MenuItem[];
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostListener('mouseenter')
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  onMouseEnter() {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (this.isIconSidenav && !this.isMobile) {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      this.collapsed = false;
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      this.menuService.currentlyOpen = this.currentlyOpen;
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      // this.store.dispatch(new NextCurrentlyOpened(this.currentlyOpen));
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      // this.store.dispatch(new SetIconMode(false));
                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  @HostListener('mouseleave')
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  onMouseLeave() {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (this.isIconSidenav && !this.isMobile) {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      this.collapsed = true;
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      this.currentlyOpen = this.menuService.currentlyOpen;
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      this.menuService.currentlyOpen = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      // this.store.dispatch(new NextCurrentlyOpened([]));
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      // this.store.dispatch(new SetIconMode(true));
                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(private store: Store, private menuService: MenuService, private media: ObservableMedia) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._mediaSubscription = this.media.subscribe((change: MediaChange) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -      this.isMobile = change.mqAlias === 'xs' || change.mqAlias === 'sm';
                                                                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  ngOnDestroy() {
                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._mediaSubscription.unsubscribe();
                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/MinValidatorDirective.html b/docs/directives/MinValidatorDirective.html deleted file mode 100644 index 0a0bb8d41..000000000 --- a/docs/directives/MinValidatorDirective.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/shared/src/lib/directives/min/min.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    Implements

                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    - Validator -

                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    Providers - - { provide: NG_VALIDATORS, useExisting: MinValidatorDirective, multi: true } - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    Selector[appMin],[formControlName],[formControl],[ngModel]
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    Inputs
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    Inputs

                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - min - -

                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : number - -

                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - validate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -validate(control: AbstractControl) -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                    control - AbstractControl - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - Returns : literal type - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    import { Directive, Input } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { NG_VALIDATORS, AbstractControl, Validator, Validators } from '@angular/forms';
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                    -  selector: '[appMin],[formControlName],[formControl],[ngModel]',
                                                                                                                                                                                                                                                                                                                                                                                                                                    -  providers: [{ provide: NG_VALIDATORS, useExisting: MinValidatorDirective, multi: true }],
                                                                                                                                                                                                                                                                                                                                                                                                                                    -  exportAs: 'min',
                                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class MinValidatorDirective implements Validator {
                                                                                                                                                                                                                                                                                                                                                                                                                                    -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                                    -  min: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -  validate(control: AbstractControl): { [key: string]: any } {
                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return this.min ? Validators.min(this.min)(control) : null;
                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/NgLetDirective.html b/docs/directives/NgLetDirective.html deleted file mode 100644 index 659d7744f..000000000 --- a/docs/directives/NgLetDirective.html +++ /dev/null @@ -1,486 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/ngx-utils/src/lib/directives/ng-let/ng-let.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      Implements

                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - OnInit -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      Selector[ngLet]
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      Inputs
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      Accessors
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -constructor(_vcr: ViewContainerRef, _templateRef: TemplateRef) -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                      _vcr - ViewContainerRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                      _templateRef - TemplateRef<NgLetContext> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      Inputs

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - ngLet - -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : any - -

                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - ngOnInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -ngOnInit() -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - Private - _context - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - _context: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - Default value : new NgLetContext() -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - Accessors -

                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - ngLet -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - setngLet(value: any) -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                      value - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      import { NgModule, Directive, Input, TemplateRef, ViewContainerRef, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class NgLetContext {
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  $implicit: any = null;
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  ngLet: any = null;
                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  selector: '[ngLet]',
                                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class NgLetDirective implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  private _context = new NgLetContext();
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  set ngLet(value: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this._context.$implicit = this._context.ngLet = value;
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(private _vcr: ViewContainerRef, private _templateRef: TemplateRef<NgLetContext>) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  ngOnInit() {
                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this._vcr.createEmbeddedView(this._templateRef, this._context);
                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/PageDirective.html b/docs/directives/PageDirective.html deleted file mode 100644 index 9e93f3408..000000000 --- a/docs/directives/PageDirective.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/widgets/src/lib/components/page/page.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        Selector[ngxPage]
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - class - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - class: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - Default value : 'ngx-page' -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        import { Directive, HostBinding } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                        -  selector: '[ngxPage]',
                                                                                                                                                                                                                                                                                                                                                                                                                                        -})
                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class PageDirective {
                                                                                                                                                                                                                                                                                                                                                                                                                                        -  @HostBinding('class')
                                                                                                                                                                                                                                                                                                                                                                                                                                        -  classes = 'ngx-page';
                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/PagePaddingDirective.html b/docs/directives/PagePaddingDirective.html deleted file mode 100644 index cd1298a97..000000000 --- a/docs/directives/PagePaddingDirective.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/widgets/src/lib/components/page/page-padding.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          Selector[ngxPagePadding]
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          HostBindings
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          HostBindings

                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - class - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - class: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - Default value : 'ngx-page-padding' -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          import { Directive, HostBinding } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: '[ngxPagePadding]',
                                                                                                                                                                                                                                                                                                                                                                                                                                          -  // host: { 'class': 'ngx-page-padding' }
                                                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class PagePaddingDirective {
                                                                                                                                                                                                                                                                                                                                                                                                                                          -  @HostBinding('class')
                                                                                                                                                                                                                                                                                                                                                                                                                                          -  classes = 'ngx-page-padding';
                                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/RouterLinkMatchDirective.html b/docs/directives/RouterLinkMatchDirective.html deleted file mode 100644 index f9d3b0dde..000000000 --- a/docs/directives/RouterLinkMatchDirective.html +++ /dev/null @@ -1,862 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            Implements

                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - OnDestroy - OnChanges -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            Selector[routerLinkMatch]
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            Inputs
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            Accessors
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -constructor(router: Router, _renderer: Renderer2, _ngEl: ElementRef) -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                            router - Router - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                            _renderer - Renderer2 - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                            _ngEl - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            Inputs

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - routerLinkMatch - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - _toggleClass - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - _toggleClass(classes: string, enabled: boolean) -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                            classes - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                            enabled - boolean - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - _updateClass - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - _updateClass(v: MatchExp) -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                            v - MatchExp - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - ngOnChanges - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -ngOnChanges(changes: SimpleChanges) -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                            changes - SimpleChanges - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -ngOnDestroy() -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - _curRoute - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - _curRoute: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - _matchExp - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - _matchExp: MatchExp - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : MatchExp - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - _onChangesHook - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - _onChangesHook: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Default value : new Subject<MatchExp>() -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - Accessors -

                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - routerLinkMatch -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - setrouterLinkMatch(v) -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                            v - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            import { Directive, ElementRef, Input, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { NavigationEnd, Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { combineLatest, Subject } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { filter, map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { untilDestroy } from '../../operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface MatchExp {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  [classes: string]: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  selector: '[routerLinkMatch]',
                                                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class RouterLinkMatchDirective implements OnDestroy, OnChanges {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private _curRoute: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private _matchExp: MatchExp;
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private _onChangesHook = new Subject<MatchExp>();
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  @Input('routerLinkMatch')
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  set routerLinkMatch(v: MatchExp) {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (v && typeof v === 'object') {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      this._matchExp = v;
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      throw new TypeError(
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        `Unexpected type '${typeof v}' of value for ` + `input of routerLinkMatch directive, expected 'object'`,
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      );
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  constructor(router: Router, private _renderer: Renderer2, private _ngEl: ElementRef) {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    combineLatest(router.events, this._onChangesHook)
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      .pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        map(([e]) => e),
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        filter(e => e instanceof NavigationEnd),
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        untilDestroy(this),
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      )
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      .subscribe(e => {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        this._curRoute = (e as NavigationEnd).urlAfterRedirects;
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        this._updateClass(this._matchExp);
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      });
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  ngOnChanges(changes: SimpleChanges) {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (changes['routerLinkMatch']) {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      this._onChangesHook.next(changes['routerLinkMatch'].currentValue);
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private _updateClass(v: MatchExp): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    Object.keys(v).forEach(cls => {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      if (v[cls] && typeof v[cls] === 'string') {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        const regexp = new RegExp(v[cls]);
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        if (this._curRoute.match(regexp)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -          this._toggleClass(cls, true);
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -          this._toggleClass(cls, false);
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        throw new TypeError(
                                                                                                                                                                                                                                                                                                                                                                                                                                            -          `Could not convert match value to Regular Expression. ` +
                                                                                                                                                                                                                                                                                                                                                                                                                                            -            `Unexpected type '${typeof v[cls]}' for value of key '${cls}' ` +
                                                                                                                                                                                                                                                                                                                                                                                                                                            -            `in routerLinkMatch directive match expression, expected 'non-empty string'`,
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        );
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private _toggleClass(classes: string, enabled: boolean): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    classes = classes.trim();
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    classes.split(/\s+/g).forEach(cls => {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      if (enabled) {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        this._renderer.addClass(this._ngEl.nativeElement, cls);
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                            -        this._renderer.removeClass(this._ngEl.nativeElement, cls);
                                                                                                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -  ngOnDestroy() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/ScrollbarDirective.html b/docs/directives/ScrollbarDirective.html deleted file mode 100644 index 4de94b2e7..000000000 --- a/docs/directives/ScrollbarDirective.html +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/scrollbar/src/lib/scrollbar.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              Implements

                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - AfterContentInit -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              Selector[ngxScrollbar]
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              Inputs
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -constructor(_element: ElementRef, zone: NgZone) -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                              _element - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                              zone - NgZone - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              Inputs

                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - options - -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : Partial<ScrollbarOptions> - -

                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - ngAfterContentInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -ngAfterContentInit() -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - scrollbarRef - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - scrollbarRef: Scrollbar - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : Scrollbar - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              import { AfterContentInit, Directive, ElementRef, Input, NgZone } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                              -import Scrollbar from 'smooth-scrollbar';
                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { ScrollbarOptions } from 'smooth-scrollbar/interfaces';
                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { scrollbarOptions } from './scrollbar-options';
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                              -  selector: '[ngxScrollbar]',
                                                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class ScrollbarDirective implements AfterContentInit {
                                                                                                                                                                                                                                                                                                                                                                                                                                              -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                                              -  options: Partial<ScrollbarOptions>;
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -  scrollbarRef: Scrollbar;
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(private _element: ElementRef, private zone: NgZone) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -  ngAfterContentInit() {
                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // const options = defaultsDeep(this.options, scrollbarOptions);
                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const options = Object.assign(this.options, scrollbarOptions);
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.zone.runOutsideAngular(() => {
                                                                                                                                                                                                                                                                                                                                                                                                                                              -      this.scrollbarRef = Scrollbar.init(this._element.nativeElement, options);
                                                                                                                                                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/directives/StickyHeaderDirective.html b/docs/directives/StickyHeaderDirective.html deleted file mode 100644 index c9168c96d..000000000 --- a/docs/directives/StickyHeaderDirective.html +++ /dev/null @@ -1,713 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/home/src/lib/components/header/sticky-header.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                Implements

                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - AfterViewInit - OnDestroy -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                Selector[stickyHeader]
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                Accessors
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -constructor(builder: AnimationBuilder, el: ElementRef) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                builder - AnimationBuilder - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                el - ElementRef - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Private - fadeDown - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - fadeDown() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : AnimationMetadata[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Private - fadeIn - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - fadeIn() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : AnimationMetadata[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Private - fadeOut - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - fadeOut() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : AnimationMetadata[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Private - fadeUp - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - fadeUp() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : AnimationMetadata[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - ngAfterViewInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -ngAfterViewInit() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - ngOnDestroy - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -ngOnDestroy() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - player - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - player: AnimationPlayer - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : AnimationPlayer - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - Accessors -

                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - show -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - setshow(show: boolean) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                show - boolean - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                import { animate, AnimationBuilder, AnimationMetadata, AnimationPlayer, style } from '@angular/animations';
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { AfterViewInit, Directive, ElementRef, OnDestroy } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { fromEvent } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { distinctUntilChanged, filter, map, pairwise, share, throttleTime } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { untilDestroy } from '@ngx-starter-kit/ngx-utils';
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -enum Direction {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  Up = 'Up',
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  Down = 'Down',
                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: '[stickyHeader]',
                                                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class StickyHeaderDirective implements AfterViewInit, OnDestroy {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  player: AnimationPlayer;
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  set show(show: boolean) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    if (this.player) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -      this.player.destroy();
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const metadata = show ? this.fadeIn() : this.fadeOut();
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const factory = this.builder.build(metadata);
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const player = factory.create(this.el.nativeElement);
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    player.play();
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor(private builder: AnimationBuilder, private el: ElementRef) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private fadeIn(): AnimationMetadata[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return [style({ opacity: 0 }), animate('400ms ease-in', style({ opacity: 1 }))];
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private fadeOut(): AnimationMetadata[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return [style({ opacity: '*' }), animate('400ms ease-in', style({ opacity: 0 }))];
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private fadeUp(): AnimationMetadata[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return [style({ opacity: 0 }), animate('200ms ease-in', style({ opacity: 1, transform: 'translateY(0)' }))];
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private fadeDown(): AnimationMetadata[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return [style({ opacity: '*' }), animate('200ms ease-in', style({ opacity: 0, transform: 'translateY(-100%)' }))];
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const scroll$ = fromEvent(window, 'scroll').pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                -      throttleTime(10),
                                                                                                                                                                                                                                                                                                                                                                                                                                                -      map(() => window.pageYOffset),
                                                                                                                                                                                                                                                                                                                                                                                                                                                -      pairwise(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                -      map(([y1, y2]): Direction => (y2 < y1 ? Direction.Up : Direction.Down)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                -      distinctUntilChanged(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                -      share(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                -      untilDestroy(this),
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const goingUp$ = scroll$.pipe(filter(direction => direction === Direction.Up));
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const goingDown$ = scroll$.pipe(filter(direction => direction === Direction.Down));
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    goingUp$.subscribe(() => (this.show = true));
                                                                                                                                                                                                                                                                                                                                                                                                                                                -    goingDown$.subscribe(() => (this.show = false));
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -  ngOnDestroy() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/fonts/ionicons.eot b/docs/fonts/ionicons.eot deleted file mode 100644 index 4b1fd0f48..000000000 Binary files a/docs/fonts/ionicons.eot and /dev/null differ diff --git a/docs/fonts/ionicons.svg b/docs/fonts/ionicons.svg deleted file mode 100644 index ba35c41f6..000000000 --- a/docs/fonts/ionicons.svg +++ /dev/null @@ -1,2090 +0,0 @@ - - - - - -Created by FontForge 20160407 at Thu Jun 14 08:50:34 2018 - By Adam Bradley -Copyright (c) 2018, Adam Bradley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/fonts/ionicons.ttf b/docs/fonts/ionicons.ttf deleted file mode 100644 index 67bd84202..000000000 Binary files a/docs/fonts/ionicons.ttf and /dev/null differ diff --git a/docs/fonts/ionicons.woff b/docs/fonts/ionicons.woff deleted file mode 100644 index ec1c1f879..000000000 Binary files a/docs/fonts/ionicons.woff and /dev/null differ diff --git a/docs/fonts/ionicons.woff2 b/docs/fonts/ionicons.woff2 deleted file mode 100644 index 4233951c9..000000000 Binary files a/docs/fonts/ionicons.woff2 and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-300.eot b/docs/fonts/roboto-v15-latin-300.eot deleted file mode 100644 index 826acfda9..000000000 Binary files a/docs/fonts/roboto-v15-latin-300.eot and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-300.svg b/docs/fonts/roboto-v15-latin-300.svg deleted file mode 100644 index 52b283279..000000000 --- a/docs/fonts/roboto-v15-latin-300.svg +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/fonts/roboto-v15-latin-300.ttf b/docs/fonts/roboto-v15-latin-300.ttf deleted file mode 100644 index 66bc5ab8e..000000000 Binary files a/docs/fonts/roboto-v15-latin-300.ttf and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-300.woff b/docs/fonts/roboto-v15-latin-300.woff deleted file mode 100644 index 7e6c479f2..000000000 Binary files a/docs/fonts/roboto-v15-latin-300.woff and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-300.woff2 b/docs/fonts/roboto-v15-latin-300.woff2 deleted file mode 100644 index c34c12806..000000000 Binary files a/docs/fonts/roboto-v15-latin-300.woff2 and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-700.eot b/docs/fonts/roboto-v15-latin-700.eot deleted file mode 100644 index f89cad7b7..000000000 Binary files a/docs/fonts/roboto-v15-latin-700.eot and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-700.svg b/docs/fonts/roboto-v15-latin-700.svg deleted file mode 100644 index fc8d42f92..000000000 --- a/docs/fonts/roboto-v15-latin-700.svg +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/fonts/roboto-v15-latin-700.ttf b/docs/fonts/roboto-v15-latin-700.ttf deleted file mode 100644 index 19090afb1..000000000 Binary files a/docs/fonts/roboto-v15-latin-700.ttf and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-700.woff b/docs/fonts/roboto-v15-latin-700.woff deleted file mode 100644 index bf737c1c3..000000000 Binary files a/docs/fonts/roboto-v15-latin-700.woff and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-700.woff2 b/docs/fonts/roboto-v15-latin-700.woff2 deleted file mode 100644 index 11cde5d04..000000000 Binary files a/docs/fonts/roboto-v15-latin-700.woff2 and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-regular.eot b/docs/fonts/roboto-v15-latin-regular.eot deleted file mode 100644 index d26bc8f51..000000000 Binary files a/docs/fonts/roboto-v15-latin-regular.eot and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-regular.svg b/docs/fonts/roboto-v15-latin-regular.svg deleted file mode 100644 index ed55c105d..000000000 --- a/docs/fonts/roboto-v15-latin-regular.svg +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/fonts/roboto-v15-latin-regular.ttf b/docs/fonts/roboto-v15-latin-regular.ttf deleted file mode 100644 index 7b25f3ce9..000000000 Binary files a/docs/fonts/roboto-v15-latin-regular.ttf and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-regular.woff b/docs/fonts/roboto-v15-latin-regular.woff deleted file mode 100644 index 941dfa4ba..000000000 Binary files a/docs/fonts/roboto-v15-latin-regular.woff and /dev/null differ diff --git a/docs/fonts/roboto-v15-latin-regular.woff2 b/docs/fonts/roboto-v15-latin-regular.woff2 deleted file mode 100644 index 120796bb7..000000000 Binary files a/docs/fonts/roboto-v15-latin-regular.woff2 and /dev/null differ diff --git a/docs/graph/dependencies.svg b/docs/graph/dependencies.svg deleted file mode 100644 index 882f9536f..000000000 --- a/docs/graph/dependencies.svg +++ /dev/null @@ -1,2966 +0,0 @@ - - - - - - -dependencies - -Legend - -  Declarations - -  Module - -  Bootstrap - -  Providers - -  Exports - -cluster_AppConfirmModule - - - -cluster_AppConfirmModule_declarations - - - -cluster_AppConfirmModule_providers - - - -cluster_AppModule - - - -cluster_AppModule_declarations - - - -cluster_AppModule_imports - - - -cluster_AppModule_bootstrap - - - -cluster_AuthModule - - - -cluster_AuthModule_declarations - - - -cluster_AuthModule_exports - - - -cluster_AuthModule_providers - - - -cluster_BreadcrumbsModule - - - -cluster_BreadcrumbsModule_declarations - - - -cluster_BreadcrumbsModule_exports - - - -cluster_ChatBoxModule - - - -cluster_ChatBoxModule_declarations - - - -cluster_ChatBoxModule_imports - - - -cluster_ChatBoxModule_exports - - - -cluster_ChatBoxModule_providers - - - -cluster_ChatModule - - - -cluster_ClapModule - - - -cluster_ClapModule_declarations - - - -cluster_ClapModule_exports - - - -cluster_ContextMenuModule - - - -cluster_ContextMenuModule_declarations - - - -cluster_ContextMenuModule_exports - - - -cluster_CoreModule - - - -cluster_CoreModule_imports - - - -cluster_CoreModule_providers - - - -cluster_DashboardModule - - - -cluster_DashboardModule_declarations - - - -cluster_DashboardModule_imports - - - -cluster_DraggableModule - - - -cluster_DraggableModule_declarations - - - -cluster_DraggableModule_exports - - - -cluster_DraggableModule_providers - - - -cluster_ExperimentsModule - - - -cluster_ExperimentsModule_declarations - - - -cluster_ExperimentsModule_imports - - - -cluster_GridModule - - - -cluster_GridModule_declarations - - - -cluster_GridModule_imports - - - -cluster_GridModule_providers - - - -cluster_HelperModule - - - -cluster_HelperModule_declarations - - - -cluster_HelperModule_exports - - - -cluster_HomeModule - - - -cluster_HomeModule_declarations - - - -cluster_HomeModule_imports - - - -cluster_ImageComparisonModule - - - -cluster_ImageComparisonModule_declarations - - - -cluster_ImageComparisonModule_exports - - - -cluster_JsonDiffModule - - - -cluster_JsonDiffModule_declarations - - - -cluster_JsonDiffModule_exports - - - -cluster_LedModule - - - -cluster_LedModule_declarations - - - -cluster_LedModule_exports - - - -cluster_LoadingOverlayModule - - - -cluster_LoadingOverlayModule_declarations - - - -cluster_LoadingOverlayModule_exports - - - -cluster_MaterialModule - - - -cluster_MaterialModule_exports - - - -cluster_NgLetModule - - - -cluster_NgLetModule_declarations - - - -cluster_NgLetModule_exports - - - -cluster_NotFoundModule - - - -cluster_NotFoundModule_declarations - - - -cluster_NotificationsModule - - - -cluster_NotificationsModule_declarations - - - -cluster_NotificationsModule_exports - - - -cluster_NotificationsModule_providers - - - -cluster_QuickpanelModule - - - -cluster_QuickpanelModule_declarations - - - -cluster_QuickpanelModule_imports - - - -cluster_QuickpanelModule_exports - - - -cluster_RouterLinkMatchModule - - - -cluster_RouterLinkMatchModule_declarations - - - -cluster_RouterLinkMatchModule_exports - - - -cluster_ScrollbarModule - - - -cluster_ScrollbarModule_declarations - - - -cluster_ScrollbarModule_exports - - - -cluster_ScrollToTopModule - - - -cluster_ScrollToTopModule_declarations - - - -cluster_ScrollToTopModule_exports - - - -cluster_SharedModule - - - -cluster_SharedModule_declarations - - - -cluster_SharedModule_exports - - - -cluster_SidenavModule - - - -cluster_SidenavModule_declarations - - - -cluster_SidenavModule_exports - - - -cluster_SvgViewerModule - - - -cluster_SvgViewerModule_declarations - - - -cluster_SvgViewerModule_SvgViewerComponent_providers - - - -cluster_SvgViewerModule_exports - - - -cluster_ThemePickerModule - - - -cluster_ThemePickerModule_declarations - - - -cluster_ThemePickerModule_exports - - - -cluster_ThemePickerModule_providers - - - -cluster_ToolbarModule - - - -cluster_ToolbarModule_declarations - - - -cluster_ToolbarModule_exports - - - -cluster_TruncateModule - - - -cluster_TruncateModule_declarations - - - -cluster_TruncateModule_exports - - - -cluster_UserModule - - - -cluster_UserModule_providers - - - -cluster_WidgetsModule - - - -cluster_WidgetsModule_declarations - - - -cluster_WidgetsModule_providers - - - - -AppConfirmComponent - -AppConfirmComponent - - - -AppConfirmModule - -AppConfirmModule - - - -AppConfirmComponent->AppConfirmModule - - - - - -GridModule - -GridModule - - - -AppConfirmModule->GridModule - - - - - -AppConfirmService - -AppConfirmService - - - -AppConfirmService->AppConfirmModule - - - - - -AuthModule - -AuthModule - - - -CoreModule - -CoreModule - - - -AuthModule->CoreModule - - - - - -AppModule - -AppModule - - - -AuthModule->AppModule - - - - - -AuthGuard - -AuthGuard - - - -AuthModule->AuthGuard - - - - - -AuthService - -AuthService - - - -AuthModule->AuthService - - - - - -WsAuthGuard - -WsAuthGuard - - - -AuthModule->WsAuthGuard - - - - - -SharedModule - -SharedModule - - - -AuthModule->SharedModule - - - - - -CoreModule->AppModule - - - - - -CoreModule->AppModule - - - - - -NotificationsModule - -NotificationsModule - - - -NotificationsModule->AppModule - - - - - -ToolbarModule - -ToolbarModule - - - -NotificationsModule->ToolbarModule - - - - - -NotificationsComponent - -NotificationsComponent - - - -NotificationsModule->NotificationsComponent - - - - - -UserModule - -UserModule - - - -UserModule->AppModule - - - - - -AppComponent - -AppComponent - - - -AppModule->AppComponent - - - - - -AppComponent - -AppComponent - - - -AppComponent->AppModule - - - - - -AuthService - -AuthService - - - -AuthService->AuthModule - - - - - -AuthService->AuthModule - - - - - -JwtStrategy - -JwtStrategy - - - -JwtStrategy->AuthModule - - - - - -WsJwtStrategy - -WsJwtStrategy - - - -WsJwtStrategy->AuthModule - - - - - -LoginComponent - -LoginComponent - - - -LoginComponent->AuthModule - - - - - -ROPCService - -ROPCService - - - -ROPCService->AuthModule - - - - - -BreadcrumbsComponent - -BreadcrumbsComponent - - - -BreadcrumbsModule - -BreadcrumbsModule - - - -BreadcrumbsComponent->BreadcrumbsModule - - - - - -BreadcrumbsComponent - -BreadcrumbsComponent - - - -BreadcrumbsModule->BreadcrumbsComponent - - - - - -ChatBoxComponent - -ChatBoxComponent - - - -ChatBoxModule - -ChatBoxModule - - - -ChatBoxComponent->ChatBoxModule - - - - - -ChatCardComponent - -ChatCardComponent - - - -ChatCardComponent->ChatBoxModule - - - - - -TextToSpeechPreferencesComponent - -TextToSpeechPreferencesComponent - - - -TextToSpeechPreferencesComponent->ChatBoxModule - - - - - -TypingIndicatorComponent - -TypingIndicatorComponent - - - -TypingIndicatorComponent->ChatBoxModule - - - - - -ChatBoxComponent - -ChatBoxComponent - - - -ChatBoxModule->ChatBoxComponent - - - - - -DashboardModule - -DashboardModule - - - -ChatBoxModule->DashboardModule - - - - - -DraggableModule - -DraggableModule - - - -DraggableModule->ChatBoxModule - - - - - -DraggableDirective - -DraggableDirective - - - -DraggableModule->DraggableDirective - - - - - -ResizableComponent - -ResizableComponent - - - -DraggableModule->ResizableComponent - - - - - -LedModule - -LedModule - - - -LedModule->ChatBoxModule - - - - - -ExperimentsModule - -ExperimentsModule - - - -LedModule->ExperimentsModule - - - - - -LedComponent - -LedComponent - - - -LedModule->LedComponent - - - - - -ChatService - -ChatService - - - -ChatService->ChatBoxModule - - - - - -ChatModule - -ChatModule - - - -ChatService->ChatModule - - - - - -NlpService - -NlpService - - - -NlpService->ChatBoxModule - - - - - -SpeechToTextService - -SpeechToTextService - - - -SpeechToTextService->ChatBoxModule - - - - - -TextToSpeechService - -TextToSpeechService - - - -TextToSpeechService->ChatBoxModule - - - - - -ClapComponent - -ClapComponent - - - -ClapModule - -ClapModule - - - -ClapComponent->ClapModule - - - - - -CounterBubbleComponent - -CounterBubbleComponent - - - -CounterBubbleComponent->ClapModule - - - - - -FabComponent - -FabComponent - - - -FabComponent->ClapModule - - - - - -TotalCounterComponent - -TotalCounterComponent - - - -TotalCounterComponent->ClapModule - - - - - -ClapComponent - -ClapComponent - - - -ClapModule->ClapComponent - - - - - -ClapModule->ExperimentsModule - - - - - -ContextMenuComponent - -ContextMenuComponent - - - -ContextMenuModule - -ContextMenuModule - - - -ContextMenuComponent->ContextMenuModule - - - - - -ContextMenuComponent->ExperimentsModule - - - - - -ContextMenuTriggerDirective - -ContextMenuTriggerDirective - - - -ContextMenuTriggerDirective->ContextMenuModule - - - - - -ContextMenuComponent - -ContextMenuComponent - - - -ContextMenuModule->ContextMenuComponent - - - - - -ContextMenuTriggerDirective - -ContextMenuTriggerDirective - - - -ContextMenuModule->ContextMenuTriggerDirective - - - - - -ContextMenuModule->ExperimentsModule - - - - - -ConfigModule - -ConfigModule - - - -ConfigModule->CoreModule - - - - - -EmailModule - -EmailModule - - - -EmailModule->CoreModule - - - - - -NavigatorModule - -NavigatorModule - - - -NavigatorModule->CoreModule - - - - - -NgxsWebsocketPluginModule - -NgxsWebsocketPluginModule - - - -NgxsWebsocketPluginModule->CoreModule - - - - - -ErrorInterceptor - -ErrorInterceptor - - - -ErrorInterceptor->CoreModule - - - - - -DashboardLayoutComponent - -DashboardLayoutComponent - - - -DashboardLayoutComponent->DashboardModule - - - - - -OverviewComponent - -OverviewComponent - - - -OverviewComponent->DashboardModule - - - - - -RainbowComponent - -RainbowComponent - - - -RainbowComponent->DashboardModule - - - - - -QuickpanelModule - -QuickpanelModule - - - -QuickpanelModule->DashboardModule - - - - - -QuickpanelComponent - -QuickpanelComponent - - - -QuickpanelModule->QuickpanelComponent - - - - - -SharedModule->NotificationsModule - - - - - -SharedModule->NotificationsModule - - - - - -SharedModule->UserModule - - - - - -SharedModule->DashboardModule - - - - - -SharedModule->ToolbarModule - - - - - -SharedModule->ExperimentsModule - - - - - -SharedModule->GridModule - - - - - -HomeModule - -HomeModule - - - -SharedModule->HomeModule - - - - - -EventBusGateway - -EventBusGateway - - - -SharedModule->EventBusGateway - - - - - -BreadcrumbsModule - -BreadcrumbsModule - - - -SharedModule->BreadcrumbsModule - - - - - -ClickOutsideDirective - -ClickOutsideDirective - - - -SharedModule->ClickOutsideDirective - - - - - -MaterialDateModule - -MaterialDateModule - - - -SharedModule->MaterialDateModule - - - - - -MaterialModule - -MaterialModule - - - -SharedModule->MaterialModule - - - - - -MinValidatorDirective - -MinValidatorDirective - - - -SharedModule->MinValidatorDirective - - - - - -NgLetModule - -NgLetModule - - - -SharedModule->NgLetModule - - - - - -RouterLinkMatchModule - -RouterLinkMatchModule - - - -SharedModule->RouterLinkMatchModule - - - - - -WidgetsModule - -WidgetsModule - - - -SharedModule->WidgetsModule - - - - - -SidenavModule - -SidenavModule - - - -SidenavModule->DashboardModule - - - - - -IconSidenavDirective - -IconSidenavDirective - - - -SidenavModule->IconSidenavDirective - - - - - -SidenavComponent - -SidenavComponent - - - -SidenavModule->SidenavComponent - - - - - -ToolbarModule->DashboardModule - - - - - -ToolbarComponent - -ToolbarComponent - - - -ToolbarModule->ToolbarComponent - - - - - -DraggableDirective - -DraggableDirective - - - -DraggableDirective->DraggableModule - - - - - -ResizableComponent - -ResizableComponent - - - -ResizableComponent->DraggableModule - - - - - -ResizableState - -ResizableState - - - -ResizableState->DraggableModule - - - - - -AnimationsComponent - -AnimationsComponent - - - -AnimationsComponent->ExperimentsModule - - - - - -CardComponent - -CardComponent - - - -CardComponent->ExperimentsModule - - - - - -ClapButtonComponent - -ClapButtonComponent - - - -ClapButtonComponent->ExperimentsModule - - - - - -FileUploadComponent - -FileUploadComponent - - - -FileUploadComponent->ExperimentsModule - - - - - -HammertimeDirective - -HammertimeDirective - - - -HammertimeDirective->ExperimentsModule - - - - - -ImageCompComponent - -ImageCompComponent - - - -ImageCompComponent->ExperimentsModule - - - - - -KnobDemoComponent - -KnobDemoComponent - - - -KnobDemoComponent->ExperimentsModule - - - - - -LayoutComponent - -LayoutComponent - - - -LayoutComponent->ExperimentsModule - - - - - -LedDemoComponent - -LedDemoComponent - - - -LedDemoComponent->ExperimentsModule - - - - - -StickyTableComponent - -StickyTableComponent - - - -StickyTableComponent->ExperimentsModule - - - - - -VirtualScrollComponent - -VirtualScrollComponent - - - -VirtualScrollComponent->ExperimentsModule - - - - - -ImageComparisonModule - -ImageComparisonModule - - - -ImageComparisonModule->ExperimentsModule - - - - - -ImageComparisonComponent - -ImageComparisonComponent - - - -ImageComparisonModule->ImageComparisonComponent - - - - - -AccountDetailComponent - -AccountDetailComponent - - - -AccountDetailComponent->GridModule - - - - - -AccountEditComponent - -AccountEditComponent - - - -AccountEditComponent->GridModule - - - - - -AccountsGridListComponent - -AccountsGridListComponent - - - -AccountsGridListComponent->GridModule - - - - - -AccountsTableComponent - -AccountsTableComponent - - - -AccountsTableComponent->GridModule - - - - - -HelperModule - -HelperModule - - - -HelperModule->GridModule - - - - - -FilterPipe - -FilterPipe - - - -HelperModule->FilterPipe - - - - - -GroupByPipe - -GroupByPipe - - - -HelperModule->GroupByPipe - - - - - -SafeHtmlPipe - -SafeHtmlPipe - - - -HelperModule->SafeHtmlPipe - - - - - -TruncateModule - -TruncateModule - - - -TruncateModule->GridModule - - - - - -CharactersPipe - -CharactersPipe - - - -TruncateModule->CharactersPipe - - - - - -WordsPipe - -WordsPipe - - - -TruncateModule->WordsPipe - - - - - -AccountService - -AccountService - - - -AccountService->GridModule - - - - - -RandomAccountService - -RandomAccountService - - - -RandomAccountService->GridModule - - - - - -FilterPipe - -FilterPipe - - - -FilterPipe->HelperModule - - - - - -GroupByPipe - -GroupByPipe - - - -GroupByPipe->HelperModule - - - - - -SafeHtmlPipe - -SafeHtmlPipe - - - -SafeHtmlPipe->HelperModule - - - - - -AboutComponent - -AboutComponent - - - -AboutComponent->HomeModule - - - - - -BlogComponent - -BlogComponent - - - -BlogComponent->HomeModule - - - - - -FeaturesComponent - -FeaturesComponent - - - -FeaturesComponent->HomeModule - - - - - -FooterComponent - -FooterComponent - - - -FooterComponent->HomeModule - - - - - -HeaderComponent - -HeaderComponent - - - -HeaderComponent->HomeModule - - - - - -HomeLayoutComponent - -HomeLayoutComponent - - - -HomeLayoutComponent->HomeModule - - - - - -LandingComponent - -LandingComponent - - - -LandingComponent->HomeModule - - - - - -StickyHeaderDirective - -StickyHeaderDirective - - - -StickyHeaderDirective->HomeModule - - - - - -ScrollToTopModule - -ScrollToTopModule - - - -ScrollToTopModule->HomeModule - - - - - -ScrollToTopComponent - -ScrollToTopComponent - - - -ScrollToTopModule->ScrollToTopComponent - - - - - -SvgViewerModule - -SvgViewerModule - - - -SvgViewerModule->HomeModule - - - - - -SvgViewerComponent - -SvgViewerComponent - - - -SvgViewerModule->SvgViewerComponent - - - - - -ThemePickerModule - -ThemePickerModule - - - -ThemePickerModule->ToolbarModule - - - - - -ThemePickerModule->HomeModule - - - - - -ThemePickerComponent - -ThemePickerComponent - - - -ThemePickerModule->ThemePickerComponent - - - - - -ImageComparisonComponent - -ImageComparisonComponent - - - -ImageComparisonComponent->ImageComparisonModule - - - - - -JsonDiffComponent - -JsonDiffComponent - - - -JsonDiffModule - -JsonDiffModule - - - -JsonDiffComponent->JsonDiffModule - - - - - -JsonDiffTreeComponent - -JsonDiffTreeComponent - - - -JsonDiffTreeComponent->JsonDiffModule - - - - - -JsonDiffComponent - -JsonDiffComponent - - - -JsonDiffModule->JsonDiffComponent - - - - - -LedComponent - -LedComponent - - - -LedComponent->LedModule - - - - - -LoadingOverlayComponent - -LoadingOverlayComponent - - - -LoadingOverlayModule - -LoadingOverlayModule - - - -LoadingOverlayComponent->LoadingOverlayModule - - - - - -LoadingOverlayComponent - -LoadingOverlayComponent - - - -LoadingOverlayModule->LoadingOverlayComponent - - - - - -LoadingOverlayModule->WidgetsModule - - - - - -MatCardModule - -MatCardModule - - - -MaterialModule - -MaterialModule - - - -MaterialModule->QuickpanelModule - - - - - -MaterialModule->MatCardModule - - - - - -NgLetDirective - -NgLetDirective - - - -NgLetModule - -NgLetModule - - - -NgLetDirective->NgLetModule - - - - - -NgLetDirective - -NgLetDirective - - - -NgLetModule->NgLetDirective - - - - - -NotFoundComponent - -NotFoundComponent - - - -NotFoundModule - -NotFoundModule - - - -NotFoundComponent->NotFoundModule - - - - - -NotificationsService - -NotificationsService - - - -NotificationsService->NotificationsModule - - - - - -NotificationsService->NotificationsModule - - - - - -NotificationsComponent - -NotificationsComponent - - - -NotificationsComponent->NotificationsModule - - - - - -QuickpanelComponent - -QuickpanelComponent - - - -QuickpanelComponent->QuickpanelModule - - - - - -ScrollbarModule - -ScrollbarModule - - - -ScrollbarModule->QuickpanelModule - - - - - -ScrollbarModule->SidenavModule - - - - - -ScrollbarComponent - -ScrollbarComponent - - - -ScrollbarModule->ScrollbarComponent - - - - - -ScrollbarDirective - -ScrollbarDirective - - - -ScrollbarModule->ScrollbarDirective - - - - - -ScrollbarModule->WidgetsModule - - - - - -RouterLinkMatchDirective - -RouterLinkMatchDirective - - - -RouterLinkMatchModule - -RouterLinkMatchModule - - - -RouterLinkMatchDirective->RouterLinkMatchModule - - - - - -RouterLinkMatchDirective - -RouterLinkMatchDirective - - - -RouterLinkMatchModule->RouterLinkMatchDirective - - - - - -ScrollbarComponent - -ScrollbarComponent - - - -ScrollbarComponent->ScrollbarModule - - - - - -ScrollbarDirective - -ScrollbarDirective - - - -ScrollbarDirective->ScrollbarModule - - - - - -ScrollToTopComponent - -ScrollToTopComponent - - - -ScrollToTopComponent->ScrollToTopModule - - - - - -ClickOutsideDirective - -ClickOutsideDirective - - - -ClickOutsideDirective->SharedModule - - - - - -MinValidatorDirective - -MinValidatorDirective - - - -MinValidatorDirective->SharedModule - - - - - -IconSidenavDirective - -IconSidenavDirective - - - -IconSidenavDirective->SidenavModule - - - - - -MenuItemComponent - -MenuItemComponent - - - -MenuItemComponent->SidenavModule - - - - - -SidenavComponent - -SidenavComponent - - - -SidenavComponent->SidenavModule - - - - - -SidenavItemComponent - -SidenavItemComponent - - - -SidenavItemComponent->SidenavModule - - - - - -SvgViewerComponent - -SvgViewerComponent - - - -SvgViewerComponent->SvgViewerModule - - - - - -SvgViewerService - -SvgViewerService - - - -SvgViewerService->SvgViewerModule - - - - - -SvgViewerService->SvgViewerComponent - - - - - -ThemePickerComponent - -ThemePickerComponent - - - -ThemePickerComponent->ThemePickerModule - - - - - -StyleManagerService - -StyleManagerService - - - -StyleManagerService->ThemePickerModule - - - - - -ThemeStorageService - -ThemeStorageService - - - -ThemeStorageService->ThemePickerModule - - - - - -FullscreenToggleComponent - -FullscreenToggleComponent - - - -FullscreenToggleComponent->ToolbarModule - - - - - -QuickpanelToggleComponent - -QuickpanelToggleComponent - - - -QuickpanelToggleComponent->ToolbarModule - - - - - -SearchBarComponent - -SearchBarComponent - - - -SearchBarComponent->ToolbarModule - - - - - -SearchComponent - -SearchComponent - - - -SearchComponent->ToolbarModule - - - - - -SidenavToggleComponent - -SidenavToggleComponent - - - -SidenavToggleComponent->ToolbarModule - - - - - -ToolbarComponent - -ToolbarComponent - - - -ToolbarComponent->ToolbarModule - - - - - -UserMenuComponent - -UserMenuComponent - - - -UserMenuComponent->ToolbarModule - - - - - -CharactersPipe - -CharactersPipe - - - -CharactersPipe->TruncateModule - - - - - -WordsPipe - -WordsPipe - - - -WordsPipe->TruncateModule - - - - - -ProfileService - -ProfileService - - - -ProfileService->UserModule - - - - - -AdvancedPieChartWidgetComponent - -AdvancedPieChartWidgetComponent - - - -AdvancedPieChartWidgetComponent->WidgetsModule - - - - - -AspectRatioContentDirective - -AspectRatioContentDirective - - - -AspectRatioContentDirective->WidgetsModule - - - - - -AspectRatioDirective - -AspectRatioDirective - - - -AspectRatioDirective->WidgetsModule - - - - - -AudienceOverviewWidgetComponent - -AudienceOverviewWidgetComponent - - - -AudienceOverviewWidgetComponent->WidgetsModule - - - - - -BarChartWidgetComponent - -BarChartWidgetComponent - - - -BarChartWidgetComponent->WidgetsModule - - - - - -Card - -Card - - - -Card->WidgetsModule - - - - - -CardActions - -CardActions - - - -CardActions->WidgetsModule - - - - - -CardContent - -CardContent - - - -CardContent->WidgetsModule - - - - - -CardHeader - -CardHeader - - - -CardHeader->WidgetsModule - - - - - -CardHeaderActions - -CardHeaderActions - - - -CardHeaderActions->WidgetsModule - - - - - -CardHeaderSubTitle - -CardHeaderSubTitle - - - -CardHeaderSubTitle->WidgetsModule - - - - - -CardHeaderTitle - -CardHeaderTitle - - - -CardHeaderTitle->WidgetsModule - - - - - -ChartWidget - -ChartWidget - - - -ChartWidget->WidgetsModule - - - - - -ChartWidgetContent - -ChartWidgetContent - - - -ChartWidgetContent->WidgetsModule - - - - - -ChartWidgetHeader - -ChartWidgetHeader - - - -ChartWidgetHeader->WidgetsModule - - - - - -ChartWidgetHeaderActions - -ChartWidgetHeaderActions - - - -ChartWidgetHeaderActions->WidgetsModule - - - - - -ChartWidgetHeaderSubTitle - -ChartWidgetHeaderSubTitle - - - -ChartWidgetHeaderSubTitle->WidgetsModule - - - - - -ChartWidgetHeaderTitle - -ChartWidgetHeaderTitle - - - -ChartWidgetHeaderTitle->WidgetsModule - - - - - -DonutChartWidgetComponent - -DonutChartWidgetComponent - - - -DonutChartWidgetComponent->WidgetsModule - - - - - -LineChartWidgetComponent - -LineChartWidgetComponent - - - -LineChartWidgetComponent->WidgetsModule - - - - - -ListComponent - -ListComponent - - - -ListComponent->WidgetsModule - - - - - -MarketWidgetComponent - -MarketWidgetComponent - - - -MarketWidgetComponent->WidgetsModule - - - - - -PageDirective - -PageDirective - - - -PageDirective->WidgetsModule - - - - - -PagePaddingDirective - -PagePaddingDirective - - - -PagePaddingDirective->WidgetsModule - - - - - -QuickInfoWidgetComponent - -QuickInfoWidgetComponent - - - -QuickInfoWidgetComponent->WidgetsModule - - - - - -RealtimeUsersWidgetComponent - -RealtimeUsersWidgetComponent - - - -RealtimeUsersWidgetComponent->WidgetsModule - - - - - -RecentSalesWidgetComponent - -RecentSalesWidgetComponent - - - -RecentSalesWidgetComponent->WidgetsModule - - - - - -RecentSalesWidgetTableComponent - -RecentSalesWidgetTableComponent - - - -RecentSalesWidgetTableComponent->WidgetsModule - - - - - -SalesSummaryWidgetComponent - -SalesSummaryWidgetComponent - - - -SalesSummaryWidgetComponent->WidgetsModule - - - - - -WizdashComponent - -WizdashComponent - - - -WizdashComponent->WidgetsModule - - - - - -WizdashService - -WizdashService - - - -WizdashService->WidgetsModule - - - - - diff --git a/docs/guards/AllowGuard.html b/docs/guards/AllowGuard.html deleted file mode 100644 index a7ddd5dd8..000000000 --- a/docs/guards/AllowGuard.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  - apps/api/src/auth/guards/allow.guard.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -constructor(reflector: Reflector, config: ConfigService) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                  reflector - Reflector - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  config - ConfigService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Async - canActivate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - canActivate(context: ExecutionContext) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                  context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : Promise<boolean> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { CanActivate, ExecutionContext, Injectable, UnauthorizedException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Reflector } from '@nestjs/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { AllowEnum } from '../decorators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { ConfigService } from '../../config';
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class AllowGuard implements CanActivate {
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(private reflector: Reflector, private config: ConfigService) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  async canActivate(context: ExecutionContext): Promise<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    const endpointAllow = this.reflector.get<string[]>('allow', context.getHandler());
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    // const classEndpointAllow = this.reflector.get<string[]>('allow', context.getClass());
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    // const endpointAllows = [...endpointAllow, ...classEndpointAllow];
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (endpointAllow) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      // skip for public
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (endpointAllow.length === 0 || endpointAllow.includes(AllowEnum.PUBLIC)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      // skip for known hosts
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      const request = context.switchToHttp().getRequest();
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (endpointAllow.includes(AllowEnum.WHITELIST)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        if (this.config.getAllowWhitelist().includes(request.connection.remoteAddress)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/guards/AuthGuard-1.html b/docs/guards/AuthGuard-1.html deleted file mode 100644 index c178ade72..000000000 --- a/docs/guards/AuthGuard-1.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    - apps/api/src/auth/guards/auth.guard.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - Async - canActivate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - canActivate(context: ExecutionContext) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                    context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Returns : Promise<boolean> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { CanActivate, ExecutionContext, Injectable, UnauthorizedException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import * as passport from 'passport';
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { HttpAuthException } from '../auth.exception';
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export const defaultOptions = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  session: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  property: 'user',
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  infoProperty: 'authInfo',
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  callback: (err, user, info) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    if (err || !user) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      // When Error occur, info is the error.
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      throw new HttpAuthException(info.message, info.name);
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return { user, info };
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -// TODO like https://github.com/nestjs/nest/blob/master/sample/19-auth/src/auth/guards/jwt-auth.guard.ts
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class AuthGuard implements CanActivate {
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  async canActivate(context: ExecutionContext): Promise<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const httpContext = context.switchToHttp();
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const [request, response] = [httpContext.getRequest(), httpContext.getResponse()];
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const passportFn = createPassportContext(request, response);
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const userAndInfo = await passportFn('jwt', defaultOptions);
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    request[defaultOptions.property] = (userAndInfo as any).user;
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    request[defaultOptions.infoProperty] = (userAndInfo as any).info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -const createPassportContext = (request, response) => (type, options) =>
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  new Promise((resolve, reject) =>
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    passport.authenticate(type, options, (err, user, info) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      try {
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        return resolve(options.callback(err, user, info));
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      } catch (err) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        reject(err);
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    })(request, response, resolve),
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  );
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/guards/AuthGuard.html b/docs/guards/AuthGuard.html deleted file mode 100644 index d2a079ed7..000000000 --- a/docs/guards/AuthGuard.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/auth/src/lib/auth.guard.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -constructor(oauthService: OAuthService, store: Store) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                      oauthService - OAuthService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - Async - canActivate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                      route - ActivatedRouteSnapshot - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      state - RouterStateSnapshot - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : Promise<boolean> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { OAuthService } from 'angular-oauth2-oidc';
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Login } from './auth.actions';
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -// import { waitUntil } from '@ngx-starter-kit/utils';
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class AuthGuard implements CanActivate {
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(private oauthService: OAuthService, private store: Store) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    if (this.oauthService.hasValidIdToken() || this.oauthService.hasValidAccessToken()) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      // await waitUntil(_ => (<any>window).loginTryed === true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      if (this.oauthService.hasValidIdToken() || this.oauthService.hasValidAccessToken()) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        this.store.dispatch(new Login({ infoMsg: 'Please login to Enter' }));
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        return false;
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/guards/ComposeGuard.html b/docs/guards/ComposeGuard.html deleted file mode 100644 index d51724300..000000000 --- a/docs/guards/ComposeGuard.html +++ /dev/null @@ -1,328 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        - apps/api/src/auth/guards/compose.guard.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -constructor(allowGuard: AllowGuard, authGuard: AuthGuard, roleGuard: RoleGuard) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                        allowGuard - AllowGuard - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        authGuard - AuthGuard - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        roleGuard - RoleGuard - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Async - canActivate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - canActivate(context: ExecutionContext) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                        context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : Promise<boolean> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { CanActivate, ExecutionContext, Injectable, UnauthorizedException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { AllowGuard } from './allow.guard';
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { AuthGuard } from './auth.guard';
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { RoleGuard } from './role.guard';
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class ComposeGuard implements CanActivate {
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(private allowGuard: AllowGuard, private authGuard: AuthGuard, private roleGuard: RoleGuard) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  async canActivate(context: ExecutionContext): Promise<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return (
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      (await this.allowGuard.canActivate(context)) ||
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      ((await this.authGuard.canActivate(context)) && (await this.roleGuard.canActivate(context)))
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/guards/RoleGuard.html b/docs/guards/RoleGuard.html deleted file mode 100644 index 59b76c3e6..000000000 --- a/docs/guards/RoleGuard.html +++ /dev/null @@ -1,514 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          - apps/api/src/auth/guards/role.guard.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -constructor(reflector: Reflector) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                          reflector - Reflector - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - Async - canActivate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - canActivate(context: ExecutionContext) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                          context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : Promise<boolean> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - Private - isRoleOverlay - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - isRoleOverlay(userRoles, authRoles) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                          userRoles - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          authRoles - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - Private - resolveUserId - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - resolveUserId(request: any) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                          request - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          import { CanActivate, ExecutionContext, Injectable, UnauthorizedException, ForbiddenException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { Reflector } from '@nestjs/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { RolesEnum } from '../decorators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -const userId = 'msId';
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class RoleGuard implements CanActivate {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor(private reflector: Reflector) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  async canActivate(context: ExecutionContext): Promise<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const endpointRoles = this.reflector.get<string[]>('roles', context.getHandler());
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (!endpointRoles || endpointRoles.length === 0) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const httpContext = context.switchToHttp();
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const [request, response] = [httpContext.getRequest(), httpContext.getResponse()];
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const token = request.authInfo.token;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const userRoles = token.realm_access.roles;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (!token || !userRoles) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      throw new UnauthorizedException('RoleGuard should have been executed after AuthGuard');
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (endpointRoles.includes(RolesEnum.SELF)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (token.preferred_username === this.resolveUserId(request)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        throw new ForbiddenException(`SELF use only`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (endpointRoles.includes(RolesEnum.ADMIN)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (this.isRoleOverlay(token.realm_access.roles, [RolesEnum.ADMIN])) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        throw new ForbiddenException(`SumoApp admin users only`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (endpointRoles.includes(RolesEnum.USER)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (this.isRoleOverlay(token.realm_access.roles, [RolesEnum.USER])) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        throw new ForbiddenException(`SumoApp users only`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (this.isRoleOverlay(userRoles, endpointRoles)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      throw new ForbiddenException(`${endpointRoles} roles only allowed`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  private isRoleOverlay(userRoles, authRoles) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return authRoles.every(val => userRoles.includes(val));
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  private resolveUserId(request: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (request.method === 'GET' || request.method === 'DELETE') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      return request.params[userId] || request.query[userId];
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (request.method === 'POST' || request.method === 'PATCH' || request.method === 'PUT') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      return request.params[userId] || request.body[userId];
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/guards/WsAuthGuard.html b/docs/guards/WsAuthGuard.html deleted file mode 100644 index c77a24acb..000000000 --- a/docs/guards/WsAuthGuard.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            - apps/api/src/auth/guards/ws-auth.guard.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Async - canActivate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - canActivate(context: ExecutionContext) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                            context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : Promise<boolean> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { CanActivate, ExecutionContext, Injectable, UnauthorizedException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import * as passport from 'passport';
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { WsAuthException } from '../auth.exception';
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export const defaultWsOptions = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  session: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  property: 'user',
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  infoProperty: 'authInfo',
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  callback: (err, user, info) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (err || !user) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      // When Error occur, info is the error.
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      throw new WsAuthException(info.message, info.name);
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return { user, info };
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class WsAuthGuard implements CanActivate {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  async canActivate(context: ExecutionContext): Promise<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const httpContext = context.switchToWs();
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const request = httpContext.getClient();
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const passportFn = createPassportContext(request, {});
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    try {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      const userAndInfo = await passportFn('ws-jwt', defaultWsOptions);
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      request[defaultWsOptions.property] = (userAndInfo as any).user;
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      request[defaultWsOptions.infoProperty] = (userAndInfo as any).info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      return true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    } catch (err) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      request.disconnect();
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      throw err;
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -const createPassportContext = (request, response) => (type, options) =>
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  new Promise((resolve, reject) =>
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    passport.authenticate(type, options, (err, user, info) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      try {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        return resolve(options.callback(err, user, info));
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      } catch (err) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        reject(err);
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    })(request, response, resolve),
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  );
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/images/compodoc-vectorise-inverted.png b/docs/images/compodoc-vectorise-inverted.png deleted file mode 100644 index e95ccfb06..000000000 Binary files a/docs/images/compodoc-vectorise-inverted.png and /dev/null differ diff --git a/docs/images/compodoc-vectorise-inverted.svg b/docs/images/compodoc-vectorise-inverted.svg deleted file mode 100644 index d1479a564..000000000 --- a/docs/images/compodoc-vectorise-inverted.svg +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/images/compodoc-vectorise.png b/docs/images/compodoc-vectorise.png deleted file mode 100644 index 813740354..000000000 Binary files a/docs/images/compodoc-vectorise.png and /dev/null differ diff --git a/docs/images/compodoc-vectorise.svg b/docs/images/compodoc-vectorise.svg deleted file mode 100644 index 5e21f1e3f..000000000 --- a/docs/images/compodoc-vectorise.svg +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/images/coverage-badge-documentation.svg b/docs/images/coverage-badge-documentation.svg deleted file mode 100644 index 17ff78f6f..000000000 --- a/docs/images/coverage-badge-documentation.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - documentation - 2% - - diff --git a/docs/images/favicon.ico b/docs/images/favicon.ico deleted file mode 100644 index 4144ee461..000000000 Binary files a/docs/images/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 59d2f0668..000000000 --- a/docs/index.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Ngx Starter Kit

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Build Status -Commitizen friendly -semantic-release

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              This project was generated with Angular CLI using Nrwl Nx.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              live Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              PANT (PostgreSQL - Angular - NestJS - TypeScript) Stack

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Install

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              git clone https://github.com/xmlking/ngx-starter-kit.git my-project
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -cd my-project
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -npm install

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Development server

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Run npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Run npm run start:mock for a mock server.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Run npm run start -- --proxy-config proxy.conf.js to start with proxy

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Build

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Run npm run build:prod to build the project. The build artifacts will be stored in the dist/ directory.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Running unit tests

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Run ng test <module> to execute the unit tests via Jest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Running end-to-end tests

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Run npm run e2e to execute the end-to-end tests via TestCafe. -Before running the tests make sure you are serving the app via ng serve.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Docs

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Run npm run doc:build to build docs. -Run npm run doc:serve to serve docs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deploy

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Run npm run deploy:mock to deploy demo app to gp-pages.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Analyzing bundle size npm run bundle-report

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Analyzing and Visualizing the Dependency Graph (affected modules by uncommitted changes)

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              npm run affected:dep-graph -- --uncommitted

                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/AccountService.html b/docs/injectables/AccountService.html deleted file mode 100644 index 5f3db21da..000000000 --- a/docs/injectables/AccountService.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/grid/src/lib/services/account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -constructor(httpClient: HttpClient) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                httpClient - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Public - baseUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - baseUrl: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : environment.API_BASE_URL -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Readonly - entityPath - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - entityPath: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : 'accounts' -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { HttpClient } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { EntityService } from '@ngx-starter-kit/shared';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { Account } from '../models/account.model';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class AccountService extends EntityService<Account> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  // Optionally overwrite baseUrl
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  public baseUrl = environment.API_BASE_URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  readonly entityPath = 'accounts';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor(httpClient: HttpClient) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    super(httpClient);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/AnimationsService.html b/docs/injectables/AnimationsService.html deleted file mode 100644 index 395d6e74a..000000000 --- a/docs/injectables/AnimationsService.html +++ /dev/null @@ -1,424 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/animations/src/lib/animations.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Static - isRouteAnimationsType - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - isRouteAnimationsType(type: RouteAnimationType) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type - RouteAnimationType - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - updateRouteAnimationType - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -updateRouteAnimationType(pageAnimations: boolean, elementsAnimations: boolean) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  pageAnimations - boolean - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  elementsAnimations - boolean - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - Static - routeAnimationType - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - routeAnimationType: RouteAnimationType - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : RouteAnimationType - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : 'ELEMENTS' -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable({ providedIn: 'root' })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class AnimationsService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private static routeAnimationType: RouteAnimationType = 'ELEMENTS'; // 'NONE';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  static isRouteAnimationsType(type: RouteAnimationType) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return AnimationsService.routeAnimationType === type;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  updateRouteAnimationType(pageAnimations: boolean, elementsAnimations: boolean) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    AnimationsService.routeAnimationType =
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      pageAnimations && elementsAnimations ? 'ALL' : pageAnimations ? 'PAGE' : elementsAnimations ? 'ELEMENTS' : 'NONE';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export type RouteAnimationType = 'ALL' | 'PAGE' | 'ELEMENTS' | 'NONE';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/AppConfirmService.html b/docs/injectables/AppConfirmService.html deleted file mode 100644 index e887aaf02..000000000 --- a/docs/injectables/AppConfirmService.html +++ /dev/null @@ -1,320 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/app-confirm/src/lib/app-confirm.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -constructor(dialog: MatDialog) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    dialog - MatDialog - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - Public - confirm - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - confirm(title: string, message: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    title - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    message - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Returns : Observable<boolean> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { AppConfirmComponent } from './app-confirm.component';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class AppConfirmService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor(private dialog: MatDialog) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  public confirm(title: string, message: string): Observable<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    let dialogRef: MatDialogRef<AppConfirmComponent>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    dialogRef = this.dialog.open(AppConfirmComponent, {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      width: '380px',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      disableClose: true,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      data: { title, message },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return <Observable<boolean>>dialogRef.afterClosed();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/AuthService-1.html b/docs/injectables/AuthService-1.html deleted file mode 100644 index 0d0f17809..000000000 --- a/docs/injectables/AuthService-1.html +++ /dev/null @@ -1,810 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/auth/src/lib/auth.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -constructor(store: Store, httpClient: HttpClient, router: Router, dialog: MatDialog, ropcService: ROPCService, oauthService: OAuthService) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      httpClient - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      router - Router - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      dialog - MatDialog - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ropcService - ROPCService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      oauthService - OAuthService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - login - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -login(payload?: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      payload - literal type - - Yes -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - logout - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -logout() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - Private - monitorSessionActivities - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - monitorSessionActivities() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - startAutoRefreshToken - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -startAutoRefreshToken() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - stopAutoRefreshToken - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -stopAutoRefreshToken() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - Private - _monitorer - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - _monitorer: Subscription - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : Subscription - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - Private - _refresher - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - _refresher: Subscription - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : Subscription - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - authMode - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - authMode: AuthMode - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : AuthMode - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - Static - loginDefaultConf - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - loginDefaultConf: object - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : object - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Default value : { width: '380px', disableClose: true, panelClass: 'mylogin-no-padding-dialog' } -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { OAuthService } from 'angular-oauth2-oidc';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { HttpClient, HttpErrorResponse } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Observable, Subscription, throwError } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { catchError, filter, mergeMap, tap } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { AuthMode, Logout, LogoutSuccess } from './auth.actions';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Store, Select } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { ROPCService } from './ropc.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { LoginComponent } from './components/login/login.component';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { MatDialog } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { AuthState, AuthStateModel } from './auth.state';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { fromPromise } from 'rxjs/internal/observable/fromPromise';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { OAuthEvent } from 'angular-oauth2-oidc/events';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class AuthService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static loginDefaultConf = { width: '380px', disableClose: true, panelClass: 'mylogin-no-padding-dialog' };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  private _refresher: Subscription;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  private _monitorer: Subscription;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  // @Select('auth.authMode') authMode$: Observable<AuthMode>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  authMode: AuthMode;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    private store: Store,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    private httpClient: HttpClient,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    private router: Router,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    private dialog: MatDialog,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    private ropcService: ROPCService,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    private oauthService: OAuthService,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  ) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    // this.authMode$.subscribe(authMode => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.store.select(AuthState.authMode).subscribe(authMode => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      console.log(`Auth Mode Changed: ${this.authMode} => ${authMode}`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this.authMode = authMode;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  private monitorSessionActivities() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this._monitorer = this.oauthService.events.subscribe(e => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      switch (e.type) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        case 'logout':
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        case 'session_terminated':
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          console.log('Your session has been terminated!', e);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          this.store.dispatch(new LogoutSuccess());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        case 'token_received':
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          console.log('received token_received event', e);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          // this.store.dispatch(new LoadProfile());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          // this.oauthService.loadUserProfile();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        case 'token_expires':
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          console.log('received token_expires event', e);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        case 'user_profile_loaded':
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          console.log('received user_profile_loaded event', e);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        case 'session_changed':
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          console.log('received session_changed event', e);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        default:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          console.log('default: session event', e);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  login(payload?: { infoMsg?: string }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    const loginDialogConf = Object.is(payload, undefined)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      ? AuthService.loginDefaultConf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      : { ...AuthService.loginDefaultConf, ...{ data: payload } };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    const dialogRef = this.dialog.open(LoginComponent, loginDialogConf);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return dialogRef.afterClosed();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  logout() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    if (this.authMode === AuthMode.PasswordFlow) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      // For Password Flow
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      return this.ropcService.logOut();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      // For ImplicitFlow
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this.oauthService.logOut();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  stopAutoRefreshToken() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    if (this._refresher && !this._refresher.closed) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this._refresher.unsubscribe();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  startAutoRefreshToken() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    if (this._refresher && !this._refresher.closed) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this._refresher.unsubscribe();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    if (this._monitorer && !this._monitorer.closed) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this._monitorer.unsubscribe();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    if (this.authMode === AuthMode.PasswordFlow) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      // for Password Flow
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this._refresher = this.oauthService.events
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        .pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          tap(e => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -            console.log(`sumo: type: $e.type, `, e);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          }),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          filter((e: OAuthEvent) => e.type === 'token_expires'),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          mergeMap(_ => fromPromise(this.oauthService.refreshToken())),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          catchError((error: HttpErrorResponse) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -            console.log('Auto token refresh failed. Logging Out...', error.error);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -            this.store.dispatch(new Logout());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -            return throwError(error.error);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          }),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        .subscribe();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      // for Implicit flow
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this.oauthService.setupAutomaticSilentRefresh();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.monitorSessionActivities();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/AuthService.html b/docs/injectables/AuthService.html deleted file mode 100644 index 79d36b16c..000000000 --- a/docs/injectables/AuthService.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - apps/api/src/auth/auth.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -constructor(userRepository: Repository) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        userRepository - Repository<User> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Async - getLoggedUserOrCreate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - getLoggedUserOrCreate(token: JwtToken) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        token - JwtToken - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : Promise<User> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { Injectable } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { InjectRepository } from '@nestjs/typeorm';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { Repository } from 'typeorm';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { CrudService } from '../core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { User } from './user.entity';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { JwtToken } from './interfaces/jwt-token.interface';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class AuthService extends CrudService<User> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(@InjectRepository(User) private readonly userRepository: Repository<User>) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    super(userRepository);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  async getLoggedUserOrCreate(token: JwtToken): Promise<User> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const { email, preferred_username } = token;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    // const user = await this.userRepository.findOne({email});
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const user = await this.userRepository.findOne({ userId: preferred_username });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (user) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      return user;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      const newUser = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        firstName: token.given_name,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        lastName: token.family_name,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        email: token.email,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        userId: token.preferred_username,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      return super.create(newUser);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  // TODO
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  // async login(credentials: LoginDto): Promise<any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  // }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  // async register({ firstName, lastName, email, password }: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  // }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ChatService-1.html b/docs/injectables/ChatService-1.html deleted file mode 100644 index e4918f23e..000000000 --- a/docs/injectables/ChatService-1.html +++ /dev/null @@ -1,399 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/chat-box/src/lib/services/chat.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -constructor(httpClient: HttpClient) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          httpClient - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - saveConversation - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -saveConversation(conversation: Conversation) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          conversation - Conversation - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - Public - apiBaseUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - apiBaseUrl: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Default value : environment.API_BASE_URL -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - Readonly - entityPath - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - entityPath: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Default value : 'conversations' -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { HttpClient } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { Conversation } from '../chat-message.model';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class ChatService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  public apiBaseUrl = environment.API_BASE_URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  readonly entityPath = 'conversations';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  saveConversation(conversation: Conversation) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ChatService.html b/docs/injectables/ChatService.html deleted file mode 100644 index 5f2c13edd..000000000 --- a/docs/injectables/ChatService.html +++ /dev/null @@ -1,430 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - apps/api/src/chat/chat.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - addConnectedUser - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -addConnectedUser(user: User) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            user - User - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - removeConnectedUser - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -removeConnectedUser(user: User) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            user - User - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Public - connectedUsers - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - connectedUsers: User[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : User[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Default value : [] -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Public - rooms - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - rooms: string[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Default value : [] -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { Injectable } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { User } from './interfaces/user';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class ChatService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  public rooms: string[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  public connectedUsers: User[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  addConnectedUser(user: User): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    this.connectedUsers.push(user);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  removeConnectedUser(user: User): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    this.connectedUsers = this.connectedUsers.filter(obj => obj !== user);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ConfigService.html b/docs/injectables/ConfigService.html deleted file mode 100644 index 7044e39a7..000000000 --- a/docs/injectables/ConfigService.html +++ /dev/null @@ -1,681 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - apps/api/src/config/config.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -constructor(filePath: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              filePath - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - get - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -get(key: string, defaultVal?: any) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              key - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              defaultVal - any - - Yes -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - getAllowWhitelist - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - getAllowWhitelist() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : string[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - getNumber - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - getNumber(key: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              key - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - getVersion - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - getVersion() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - has - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -has(key: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              key - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - isProd - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - isProd() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - Readonly - envConfig - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - envConfig: literal type - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : literal type - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { parse, config } from 'dotenv';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import * as fs from 'fs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { Injectable } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -// tslint:disable-next-line
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -const packageJson = require('../../../../package.json');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class ConfigService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  private readonly envConfig: { [prop: string]: string };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(filePath: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.envConfig = parse(fs.readFileSync(filePath));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    config({ path: filePath });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  get(key: string, defaultVal?: any): string {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return process.env[key] || this.envConfig[key] || defaultVal;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  has(key: string): boolean {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return this.get(key) !== undefined;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public getNumber(key: string): number {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return parseInt(this.get(key), 10);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public getVersion(): string {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    if (!process.env.APP_VERSION) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      process.env.APP_VERSION = packageJson.version;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return process.env.APP_VERSION;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public isProd(): boolean {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return process.env.NODE_ENV && process.env.NODE_ENV === 'production';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public getAllowWhitelist(): string[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const allowWhitelist = this.get('ALLOW_WHITE_LIST');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    if (allowWhitelist) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      return allowWhitelist.split(',');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      return [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/DeepLinkService.html b/docs/injectables/DeepLinkService.html deleted file mode 100644 index d32848679..000000000 --- a/docs/injectables/DeepLinkService.html +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/core/src/lib/services/deep-link.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -constructor(router: Router, route: ActivatedRoute) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                router - Router - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                route - ActivatedRoute - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - registerFormGroup - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -registerFormGroup(form: FormGroup) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Register a given FormGroup instance with the current "q" queryParams Observbale. Every time the -"q" queryParams changes, the "query" FormControl (of the given FormGroup instance) will be updated, reflecting the same value.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptionalDescription
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                form - FormGroup - - No - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                The given FormGroup to register.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - syncUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -syncUrl(queryParams: Params) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                This method is used to update the current URL queryParams. -It is used to keep both the URL and the formControl in sync.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptionalDescription
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                queryParams - Params - - No - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                A given Params object containing the queryParams to set.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { FormGroup } from '@angular/forms';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { ActivatedRoute, Router, Params } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface QueryParams {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  q: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  providedIn: 'root',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class DeepLinkService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor(private router: Router, private route: ActivatedRoute) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * Register a given FormGroup instance with the current "q" queryParams Observbale. Every time the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * "q" queryParams changes, the "query" FormControl (of the given FormGroup instance) will be updated, reflecting the same value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * @param form The given FormGroup to register.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  registerFormGroup(form: FormGroup) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this.route.queryParams.subscribe((query: QueryParams) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      if (query.q) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        form.setValue({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -          query: query.q,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * This method is used to update the current URL queryParams.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * It is used to keep both the URL and the formControl in sync.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * @param queryParams A given Params object containing the queryParams to set.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  syncUrl(queryParams: Params) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this.router.navigate([], {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      relativeTo: this.route,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      queryParams,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/EmailService.html b/docs/injectables/EmailService.html deleted file mode 100644 index 00cc0b18c..000000000 --- a/docs/injectables/EmailService.html +++ /dev/null @@ -1,568 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - apps/api/src/email/email.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -constructor(mailerConfig: EmailModuleOptions) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  mailerConfig - EmailModuleOptions - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - renderTemplate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - renderTemplate(templateDir) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  templateDir - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Public - Async - sendMail - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - sendMail(sendMailOptions) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  sendMailOptions - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : Promise<SentMessageInfo> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - setupTransporter - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - setupTransporter(transport: any, defaults?: any, templateDir?: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  transport - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  defaults - any - - Yes -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  templateDir - string - - Yes -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - transporter - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - transporter: Transporter - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : Transporter - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { join } from 'path';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { renderFile } from 'pug';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Inject, Injectable } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { createTransport, SentMessageInfo, Transporter, SendMailOptions } from 'nodemailer';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { EmailModuleOptions } from './interfaces/email-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -interface EmailTemplate {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  template?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  context?: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class EmailService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private transporter: Transporter;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(@Inject('EMAIL_CONFIG') private readonly mailerConfig: EmailModuleOptions) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (!mailerConfig.transport || Object.keys(mailerConfig.transport).length < 1) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      throw new Error(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        'Make sure to provide a nodemailer transport configuration object, connection url or a transport plugin instance',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.setupTransporter(mailerConfig.transport, mailerConfig.defaults, mailerConfig.templateDir);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private setupTransporter(transport: any, defaults?: any, templateDir?: string): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.transporter = createTransport(transport, defaults);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.transporter.use('compile', this.renderTemplate(templateDir));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  public async sendMail(sendMailOptions: SendMailOptions & EmailTemplate): Promise<SentMessageInfo> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return await this.transporter.sendMail(sendMailOptions);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private renderTemplate(templateDir): (mail, callback) => void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return (mail, callback) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (mail.data.html) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        return callback();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      renderFile(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        join(process.cwd(), templateDir || './public/templates', mail.data.template + '.pug'),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        mail.data.context,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        (err, body) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          if (err) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -            return callback(err);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          mail.data.html = body;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          return callback();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ErrorsInterceptor.html b/docs/injectables/ErrorsInterceptor.html deleted file mode 100644 index 9271e8bbc..000000000 --- a/docs/injectables/ErrorsInterceptor.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - apps/api/src/core/interceptors/exception.interceptor.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - intercept - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -intercept(context: ExecutionContext, call$: Observable) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    call$ - Observable<any> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Returns : Observable<any> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { Injectable, NestInterceptor, ExecutionContext, HttpStatus } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { HttpException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Observable, throwError } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { catchError } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ErrorsInterceptor implements NestInterceptor {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  intercept(context: ExecutionContext, call$: Observable<any>): Observable<any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return call$.pipe(catchError(err => throwError(new HttpException('Message', HttpStatus.BAD_GATEWAY))));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/EventBus.html b/docs/injectables/EventBus.html deleted file mode 100644 index 470565245..000000000 --- a/docs/injectables/EventBus.html +++ /dev/null @@ -1,229 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/core/src/lib/state/eventbus.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -constructor(actions$: Actions, store: Store) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      actions$ - Actions - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { Actions, ofActionSuccessful, ofActionErrored, ofActionDispatched, Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Login } from '@ngx-starter-kit/auth';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  ConnectWebSocket,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  DisconnectWebSocket,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  WebSocketDisconnected,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  WebSocketConnected,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  AuthenticateWebSocket,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -} from '@ngx-starter-kit/socketio-plugin';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  providedIn: 'root',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class EventBus {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(private actions$: Actions, private store: Store) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.actions$.pipe(ofActionDispatched(Login)).subscribe(action => console.log('Login.......Action Dispatched'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.actions$.pipe(ofActionSuccessful(Login)).subscribe(action => console.log('Login........Action Successful'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.actions$.pipe(ofActionErrored(Login)).subscribe(action => console.log('Login........Action Errored'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.actions$
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .pipe(ofActionSuccessful(ConnectWebSocket))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .subscribe(action => console.log('ConnectWebSocket........Action Successful'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.actions$
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .pipe(ofActionSuccessful(DisconnectWebSocket))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .subscribe(action => console.log('DisconnectWebSocket........Action Successful'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.actions$.pipe(ofActionSuccessful(WebSocketConnected)).subscribe(action => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      console.log('WebSocketConnected........Action Successful');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this.store.dispatch(new AuthenticateWebSocket());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.actions$
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .pipe(ofActionSuccessful(WebSocketDisconnected))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .subscribe(action => console.log('WebSocketDisconnected........Action Successful'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/FileUploadService.html b/docs/injectables/FileUploadService.html deleted file mode 100644 index 8240cdd0d..000000000 --- a/docs/injectables/FileUploadService.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/experiments/src/lib/containers/file-upload/file-upload.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -constructor(httpClient: HttpClient) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        httpClient - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - uploadFile - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -uploadFile(file, user, tenantId) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        file - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        user - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        tenantId - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - baseUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - baseUrl: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Default value : environment.DOCS_BASE_URL -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { HttpClient, HttpHeaders } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class FileUploadService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  baseUrl = environment.DOCS_BASE_URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  uploadFile(file, user, tenantId) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const formData = new FormData();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    formData.append('file', file);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    formData.append('tenant', tenantId);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    formData.append('user', user);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const headers = new HttpHeaders();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return this.httpClient.post(`${this.baseUrl}/upload`, formData, { headers, responseType: 'text' });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/InMemoryDataService.html b/docs/injectables/InMemoryDataService.html deleted file mode 100644 index ff6024b79..000000000 --- a/docs/injectables/InMemoryDataService.html +++ /dev/null @@ -1,348 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/core/src/lib/services/in-memory-data.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - Async - createDb - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - createDb() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : {} - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - parseRequestUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -parseRequestUrl(url: string, utils: RequestInfoUtilities) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          url - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          utils - RequestInfoUtilities - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : ParsedRequestUrl - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          import {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  InMemoryDbService,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  ParsedRequestUrl,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  RequestInfo,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  RequestInfoUtilities,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  ResponseOptions,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -} from 'angular-in-memory-web-api';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -// /api/accounts/1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -// /api/symbols/1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -// https://github.com/angular/in-memory-web-api/blob/master/src/app/hero-in-mem-data.service.ts
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -// https://github.com/angular/in-memory-web-api/blob/master/src/app/hero-in-mem-data-override.service.ts
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class InMemoryDataService implements InMemoryDbService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  async createDb() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const response = await fetch('assets/data/accounts.json');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const accounts = await response.json();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const notificationsResponse = await fetch('assets/data/notifications.json');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const notifications = await notificationsResponse.json();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const symbols = [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        id: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        code: 'MSFT',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        entity: 'Microsoft',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        id: 2,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        code: 'AAPL',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        entity: 'Apple',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        id: 3,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        code: 'GOOG',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        entity: 'Google',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    ];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return { accounts, symbols, notifications };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  parseRequestUrl(url: string, utils: RequestInfoUtilities): ParsedRequestUrl {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const newUrl = url
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      .replace(/\/datapower\/serviceproxy/, '/serviceproxy')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      .replace(/\/nas\/cluster/, '/cluster')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      .replace(/\/layer7\/my.cnf/, '/mycnf');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const parsed = utils.parseRequestUrl(newUrl);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // console.log(`parseRequestUrl override of '${url}':`, parsed);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // console.log(`parseRequestUrl override of '${url}':`, `new: ${newUrl}`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return parsed;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/JwtStrategy.html b/docs/injectables/JwtStrategy.html deleted file mode 100644 index 2915c0be7..000000000 --- a/docs/injectables/JwtStrategy.html +++ /dev/null @@ -1,358 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - apps/api/src/auth/passport/jwt.strategy.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -constructor(config: ConfigService, authService: AuthService) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            config - ConfigService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            authService - AuthService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Async - validate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - validate(token: any, done: Function) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            token - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            done - Function - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : {} - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { ExtractJwt, Strategy } from 'passport-jwt';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { PassportStrategy } from '@nestjs/passport';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { Injectable, UnauthorizedException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { passportJwtSecret, SigningKeyNotFoundError } from '@xmlking/jwks-rsa';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { AuthService } from '../auth.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { JwtToken } from '../interfaces/jwt-token.interface';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { ConfigService } from '../../config';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class JwtStrategy extends PassportStrategy(Strategy) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  constructor(private readonly config: ConfigService, private readonly authService: AuthService) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    super({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      // secretOrKey: process.env.OIDC_PUBLIC_KEY,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      secretOrKeyProvider: passportJwtSecret({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        cache: true,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        rateLimit: true,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        jwksRequestsPerMinute: 5,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        strictSsl: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        jwksUri: `${process.env.OIDC_ISSUER_URL}/protocol/openid-connect/certs`,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      }),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      handleSigningKeyError: (err, cb) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        if (err instanceof SigningKeyNotFoundError) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -          return cb(new UnauthorizedException('This is bad: SigningKeyNotFoundError'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        return cb(err);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      // Validate the audience and the issuer.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      audience: process.env.OIDC_CLIENT,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      issuer: process.env.OIDC_ISSUER_URL,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      algorithm: ['RS256'],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  // tslint:disable-next-line:ban-types
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  async validate(token: any, done: Function) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const user = await this.authService.getLoggedUserOrCreate(token).catch(console.error);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (!user) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      return done(new UnauthorizedException('user not found and cannot create new user in database'), false);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    token = token as JwtToken;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    done(null, user, { token });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/LoggingInterceptor.html b/docs/injectables/LoggingInterceptor.html deleted file mode 100644 index bf18c1844..000000000 --- a/docs/injectables/LoggingInterceptor.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - apps/api/src/core/interceptors/logging.interceptor.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • - Private - Readonly - logger -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - intercept - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -intercept(context: ExecutionContext, call$: Observable) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              call$ - Observable<any> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : Observable<any> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - Readonly - logger - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - logger: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Default value : new Logger(LoggingInterceptor.name, true) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { NestInterceptor, ExecutionContext, Logger, Injectable } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { tap } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class LoggingInterceptor implements NestInterceptor {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  private readonly logger = new Logger(LoggingInterceptor.name, true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  intercept(context: ExecutionContext, call$: Observable<any>): Observable<any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const request = context.switchToHttp().getRequest();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const { url, method, params, query, headers } = request;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.logger.log(`Before: ${method} ${url} with :
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -     params: ${JSON.stringify(params)}, with query: ${JSON.stringify(query)}`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const now = Date.now();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return call$.pipe(tap(() => this.logger.log(`After: ${method} ${url} took ${Date.now() - now}ms`)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/MediaQueryService.html b/docs/injectables/MediaQueryService.html deleted file mode 100644 index 5b2be66d0..000000000 --- a/docs/injectables/MediaQueryService.html +++ /dev/null @@ -1,464 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/core/src/lib/services/media-query.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Accessors
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -constructor(media: ObservableMedia) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                media - ObservableMedia - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Private - _changes$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - _changes$: ReplaySubject<MediaChange> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : ReplaySubject<MediaChange> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : new ReplaySubject(1) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Private - _lowerThanLarge - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - _lowerThanLarge: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : new ReplaySubject<boolean>(1) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Private - _lowerThanMedium - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - _lowerThanMedium: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : new ReplaySubject<boolean>(1) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Accessors -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - changes$ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - getchanges$() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - isLowerThanMedium$ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - getisLowerThanMedium$() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - isLowerThanLarge$ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - getisLowerThanLarge$() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { MediaChange, ObservableMedia } from '@angular/flex-layout';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { Observable } from 'rxjs/internal/Observable';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { ReplaySubject } from 'rxjs/internal/ReplaySubject';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  providedIn: 'root',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class MediaQueryService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor(media: ObservableMedia) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    media
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      .asObservable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      .subscribe(res => this._changes$.next(res), err => this._changes$.error(err), () => this._changes$.complete());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this._changes$.subscribe(change => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      this._lowerThanMedium.next(change.mqAlias === 'xs' || change.mqAlias === 'sm');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this._changes$.subscribe(change => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      this._lowerThanLarge.next(change.mqAlias === 'xs' || change.mqAlias === 'sm' || change.mqAlias === 'md');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private _lowerThanMedium = new ReplaySubject<boolean>(1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private _lowerThanLarge = new ReplaySubject<boolean>(1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private _changes$: ReplaySubject<MediaChange> = new ReplaySubject(1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  get changes$(): Observable<MediaChange> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return this._changes$.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  get isLowerThanMedium$(): Observable<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return this._lowerThanMedium.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  get isLowerThanLarge$(): Observable<boolean> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return this._lowerThanLarge.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/MenuService.html b/docs/injectables/MenuService.html deleted file mode 100644 index fcd012419..000000000 --- a/docs/injectables/MenuService.html +++ /dev/null @@ -1,1398 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/navigator/src/lib/services/menu.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Accessors
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -constructor(menuItems: MenuItem[], router: Router, media: ObservableMedia) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  menuItems - MenuItem[] - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  router - Router - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  media - ObservableMedia - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - getItemByRoute - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -getItemByRoute(route: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  route - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - getParents - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - getParents(item: MenuItem) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  item - MenuItem - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - isOpen - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -isOpen(item: MenuItem) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  item - MenuItem - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Public - setCurrentlyOpenByRoute - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - setCurrentlyOpenByRoute(route: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  route - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - toggleItemOpen - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -toggleItemOpen(item: MenuItem) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  item - MenuItem - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _currentlyOpen - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - _currentlyOpen: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : new BehaviorSubject<MenuItem[]>([]) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Currently Open

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _items - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - _items: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : new BehaviorSubject<MenuItem[]>([{ name: 'dummy' }]) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _sidenavState - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - _sidenavState: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : new BehaviorSubject<SidenavState>(SidenavState.Expanded) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SidenavState for Animation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - Private - _tree - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - _tree: Tree<MenuItem> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : Tree<MenuItem> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Menu Items

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - currentlyOpen$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - currentlyOpen$: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : this._currentlyOpen.asObservable() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - isIconSidenav - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - isIconSidenav: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - isLowerThanLarge - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - isLowerThanLarge: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - items$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - items$: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : this._items.asObservable() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - sidenavState$ - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - sidenavState$: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Default value : this._sidenavState.asObservable() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Accessors -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - items -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - getitems() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - setitems(items: []) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  items - [] - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - tree -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - gettree() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - currentlyOpen -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - getcurrentlyOpen() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - setcurrentlyOpen(currentlyOpen: []) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  currentlyOpen - [] - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - sidenavState -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - getsidenavState() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - setsidenavState(sidenavState) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  sidenavState - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { Inject, Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { BehaviorSubject } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { MenuItem } from '../models/menu-item.model';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Tree } from '@ngx-starter-kit/tree';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { NavigationEnd, Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { SidenavState } from './sidenav-state.enum';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { MENU_ITEMS } from '../symbols';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { MediaChange, ObservableMedia } from '@angular/flex-layout';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class MenuService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   * Menu Items
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private _tree: Tree<MenuItem>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private _items = new BehaviorSubject<MenuItem[]>([{ name: 'dummy' }]);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  items$ = this._items.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  get items(): MenuItem[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this._items.getValue();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  set items(items: MenuItem[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._items.next(items);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  // TODO: temp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  get tree(): Tree<MenuItem> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this._tree;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   * Currently Open
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private _currentlyOpen = new BehaviorSubject<MenuItem[]>([]);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  currentlyOpen$ = this._currentlyOpen.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  get currentlyOpen(): MenuItem[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this._currentlyOpen.getValue();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  set currentlyOpen(currentlyOpen: MenuItem[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._currentlyOpen.next(currentlyOpen);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   * SidenavState for Animation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private _sidenavState = new BehaviorSubject<SidenavState>(SidenavState.Expanded);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  sidenavState$ = this._sidenavState.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  get sidenavState() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this._sidenavState.getValue();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  set sidenavState(sidenavState: SidenavState) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._sidenavState.next(sidenavState);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  isIconSidenav: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  isLowerThanLarge: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    @Inject(MENU_ITEMS) private menuItems: MenuItem[],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    private router: Router,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    private media: ObservableMedia,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  ) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.router.events.subscribe(event => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (event instanceof NavigationEnd) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        this.setCurrentlyOpenByRoute(event.url);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        if (this.isLowerThanLarge) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          // Close Sidenav on Mobile after Route Change
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          this.sidenavState = SidenavState.Mobile;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    media
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      .asObservable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      .pipe(map((change: MediaChange) => change.mqAlias === 'xs' || change.mqAlias === 'sm' || change.mqAlias === 'md'))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      .subscribe(isLowerThanLarge => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        this.isLowerThanLarge = isLowerThanLarge;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        if (
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          isLowerThanLarge &&
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          !(this.sidenavState === SidenavState.Mobile || this.sidenavState === SidenavState.MobileOpen)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        ) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          this.sidenavState = SidenavState.Mobile;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        } else if (!isLowerThanLarge) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          this.sidenavState = SidenavState.Expanded;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    // sets defaultMenu as default;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    // this.publishMenuChange('default-menu');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._tree = new Tree<MenuItem>({ name: 'root', children: menuItems });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._items.next(this._tree.root.children);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  isOpen(item: MenuItem) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this.currentlyOpen.indexOf(item) !== -1;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  toggleItemOpen(item: MenuItem) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    let currentlyOpen = this.currentlyOpen;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (this.isOpen(item)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (currentlyOpen.length > 1) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        currentlyOpen.length = this.currentlyOpen.indexOf(item);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        currentlyOpen = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      currentlyOpen = this.getParents(item);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.currentlyOpen = currentlyOpen;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  // private setCurrentlyOpenByRoute(route: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  public setCurrentlyOpenByRoute(route: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    const item = this._tree.findByPredicateBFS(node => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      return node.link === route;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    let currentlyOpen = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (item && item.parent) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      currentlyOpen = this.getParents(item);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    } else if (item) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      currentlyOpen = [item];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.currentlyOpen = currentlyOpen;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  getItemByRoute(route: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this._tree.findByPredicateBFS(node => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      return node.link === route;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private getParents(item: MenuItem): MenuItem[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    const ancestors = this._tree.getAllParents(item);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    ancestors.shift();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return ancestors;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  // Customizer component uses this method to change menu.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  // Or you can customize this method to supply different menu for
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  // different user type.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  // publishMenuChange(menuType: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //   let menuItems;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //   switch (menuType) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //     case 'admin-menu':
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //       menuItems = adminMenu;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //       break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //     case 'demo-menu':
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //       menuItems = demoMenu;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //       break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //     default:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //       menuItems = defaultMenu;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //   }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //   this._tree = new Tree<MenuItem>({ name: 'root', children: menuItems });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  //   this._items.next(this._tree.root.children);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  // }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/NlpService.html b/docs/injectables/NlpService.html deleted file mode 100644 index 8ed6fbdbe..000000000 --- a/docs/injectables/NlpService.html +++ /dev/null @@ -1,445 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/chat-box/src/lib/services/nlp.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -constructor(accessToken) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NameOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    accessToken - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - Async - process - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - process(message: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    message - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Returns : {} - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - Private - sanitize - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - sanitize(speech: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    speech - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Returns : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - client - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - client: ApiAiClient - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : ApiAiClient - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { ApiAiClient, IServerResponse } from '@xmlking/api-ai-javascript/index.js';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Injectable, Inject } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { DIALOGFLOW_TOKEN } from './inject-tokens';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class NlpService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  client: ApiAiClient;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor(@Inject(DIALOGFLOW_TOKEN) private accessToken) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.client = new ApiAiClient({ accessToken });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  async process(message: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    try {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      const response = await this.client.textRequest(message);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      const speech = response.result.fulfillment.speech;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      return speech.replace(/<<(.*)>>/gi, ''); //
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    } catch (error) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      console.error(error);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  private sanitize(speech: string): string {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return speech
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      .replace(/&/g, '&amp;')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      .replace(/</g, '&lt;')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      .replace(/>/g, '&gt;')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      .replace(/"/g, '&quot;')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      .replace(/'/g, '&#039;')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      .replace(/[\n\r]+/g, '<br>');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/NotificationsService-1.html b/docs/injectables/NotificationsService-1.html deleted file mode 100644 index 29e7f10c8..000000000 --- a/docs/injectables/NotificationsService-1.html +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/notifications/src/lib/notifications.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -constructor(httpClient: HttpClient) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      httpClient - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - getAll - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -getAll() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : Observable<Notification[]> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - Public - apiBaseUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - apiBaseUrl: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Default value : environment.API_BASE_URL -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - Readonly - entityPath - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - entityPath: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Default value : 'notifications' -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { HttpClient } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Notification } from './notification.model';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { EntityService } from '@ngx-starter-kit/shared';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { catchError, finalize, map, retry } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class NotificationsService extends EntityService<Notification> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  public apiBaseUrl = environment.API_BASE_URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  readonly entityPath = 'notifications';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(httpClient: HttpClient) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    super(httpClient);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  getAll(): Observable<Notification[]> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.loadingSubject.next(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return this.httpClient.get<[Notification[], number]>(`${this.baseUrl}/${this.entityPath}`).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      retry(3), // retry a failed request up to 3 times
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      catchError(this.handleError),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      finalize(() => this.loadingSubject.next(false)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      // return without count
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      map(data => data[0]),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/NotificationsService.html b/docs/injectables/NotificationsService.html deleted file mode 100644 index 23eec12b4..000000000 --- a/docs/injectables/NotificationsService.html +++ /dev/null @@ -1,738 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - apps/api/src/notifications/notifications.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -constructor(eventBus: EventBusGateway, notificationsRepository: Repository) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        eventBus - EventBusGateway - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        notificationsRepository - Repository<Notification> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Public - Async - getUserNotifications - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - getUserNotifications(user: User) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        user - User - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : Promise<> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - notify - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -notify(user: User, action: any) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        user - User - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        action - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - notifyAll - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -notifyAll(action: any) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        action - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - onAddNotification - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -onAddNotification(action: AddNotification) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        action - AddNotification - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - onDeleteNotification - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -onDeleteNotification(action: DeleteNotification) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        action - DeleteNotification - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - onModuleDestroy - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -onModuleDestroy() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Async - onModuleInit - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - onModuleInit() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { Injectable, NotFoundException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { CrudService } from '../core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { InjectRepository } from '@nestjs/typeorm';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { Notification } from './notification.entity';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { User } from '../auth';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { EventBusGateway } from '../shared';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { AddNotification, DeleteNotification } from './index';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { Repository } from 'typeorm';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class NotificationsService extends CrudService<Notification> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    private readonly eventBus: EventBusGateway,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    @InjectRepository(Notification) private readonly notificationsRepository: Repository<Notification>,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  ) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    super(notificationsRepository);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  async onModuleInit() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.eventBus.on(AddNotification.type, this.onAddNotification.bind(this));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.eventBus.on(DeleteNotification.type, this.onDeleteNotification.bind(this));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  onModuleDestroy() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.eventBus.off(AddNotification.type, this.onAddNotification.bind(this));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.eventBus.off(DeleteNotification.type, this.onDeleteNotification.bind(this));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  public async getUserNotifications(user: User): Promise<[Notification[], number]> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const records = await this.repository.findAndCount({ userId: user.userId });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (records[1] === 0) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      throw new NotFoundException(`The requested records were not found`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return records;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  notify(user: User, action: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.eventBus.sendActionToUser(user, action);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  notifyAll(action: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.eventBus.sendActionToAll(action);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  onAddNotification(action: AddNotification) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    console.log('AddNotification', action);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  // TODO: sync with database
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  onDeleteNotification(action: DeleteNotification) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    console.log('DeleteNotification', action);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/PageTitleService.html b/docs/injectables/PageTitleService.html deleted file mode 100644 index 7d285520b..000000000 --- a/docs/injectables/PageTitleService.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/core/src/lib/services/page-title.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Description

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Service responsible for setting the title that appears above the home and dashboard pages.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -constructor(store: Store, bodyTitle: Title) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          bodyTitle - Title - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - Private - Readonly - defaultTitle - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - defaultTitle: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { Title } from '@angular/platform-browser';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { RouterState } from '@ngxs/router-plugin';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { RouterStateData } from '../state/custom-router-state.serializer';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -declare var ga: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * Service responsible for setting the title that appears above the home and dashboard pages.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  providedIn: 'root',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class PageTitleService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  private readonly defaultTitle;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor(private store: Store, private bodyTitle: Title) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    this.defaultTitle = bodyTitle.getTitle() || 'WebApp';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Automatically set pageTitle from router state data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    store.select<any>(RouterState.state).subscribe((routerStateData: RouterStateData) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      bodyTitle.setTitle(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        `${Array.from(routerStateData.breadcrumbs.keys())
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          .reverse()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          .join(' | ')} | ${this.defaultTitle}`,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ga('send', 'pageview', routerStateData.url);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ProfileService.html b/docs/injectables/ProfileService.html deleted file mode 100644 index f03d50ace..000000000 --- a/docs/injectables/ProfileService.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - apps/api/src/user/profile/profile.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { Injectable } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class ProfileService {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ROPCService.html b/docs/injectables/ROPCService.html deleted file mode 100644 index a5164aed5..000000000 --- a/docs/injectables/ROPCService.html +++ /dev/null @@ -1,396 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/auth/src/lib/ropc.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -constructor(httpClient: HttpClient, oauthService: OAuthService) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              httpClient - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              oauthService - OAuthService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Async - login - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - login(username: string, password: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              username - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              password - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : {} - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - logOut - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -logOut() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { Inject, Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { OAuthService } from 'angular-oauth2-oidc';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class ROPCService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(private httpClient: HttpClient, private oauthService: OAuthService) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  async login(username: string, password: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const profile: any = await this.oauthService.fetchTokenUsingPasswordFlowAndLoadUserProfile(username, password);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // await this.oauthService.refreshToken();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return profile;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  logOut() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // POST /auth/realms/<realm>/protocol/openid-connect/logout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // ContentType: x-www-form-urlencoded
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // Data:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //   - client_id : <client>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //   - refresh_token : <refresh-token-from-login-token>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // Headers: (FIXME: this is not working : https://issues.jboss.org/plugins/servlet/mobile#issue/KEYCLOAK-2939
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // - Authorization Bearer <IdToken/accessToken?>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    if (this.oauthService.getRefreshToken() === null) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      return;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const refresh_token = this.oauthService.getRefreshToken();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const access_token = this.oauthService.getAccessToken();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.oauthService.logOut(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const body = new HttpParams().set('client_id', this.oauthService.clientId).set('refresh_token', refresh_token);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return this.httpClient.post(this.oauthService.logoutUrl, body.toString(), {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      headers: new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded'),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      // .set('Authorization', `Bearer ${access_token}`)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/RandomAccountService.html b/docs/injectables/RandomAccountService.html deleted file mode 100644 index 82d095dc9..000000000 --- a/docs/injectables/RandomAccountService.html +++ /dev/null @@ -1,542 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/grid/src/lib/services/random-account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -constructor(httpClient: HttpClient) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                httpClient - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - getAll - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -getAll(pageSize: number) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptionalDefault value
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                pageSize - number - - No - - 100 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - getById - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -getById(id: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                id - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Public - baseUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - baseUrl: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : 'https://randomuser.me/api/' -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - params - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - params: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : new HttpParams() - .append('seed', 'sumo') - .append('nat', 'us') - .append('exc', 'login,registered') -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { HttpClient, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface ResponseObject {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  results?: (RandomAccount)[] | null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  info: Info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface Info {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  seed: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  results: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  page: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  version: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface RandomAccount {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  gender: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  name: Name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  location: Location;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  dob: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  phone: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  cell: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  id: Id;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  picture: Picture;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  nat: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface Name {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  first: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  last: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface Location {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  street: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  city: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  state: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  postcode: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface Id {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface Picture {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  large: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  medium: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  thumbnail: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class RandomAccountService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  // public url = 'https://randomuser.me/api/?nat=us&results=100&exc=login,registered&seed=sumo';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  public baseUrl = 'https://randomuser.me/api/';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  params = new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    .append('seed', 'sumo')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    .append('nat', 'us')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    .append('exc', 'login,registered');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  getAll(pageSize: number = 100) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const params = this.params.append('results', '' + pageSize);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      .pipe(map((response: ResponseObject) => response.results));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  getById(id: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const params = this.params.append('id', id).append('results', '1');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      .pipe(map((response: ResponseObject) => response.results[0]));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/RequestContextMiddleware.html b/docs/injectables/RequestContextMiddleware.html deleted file mode 100644 index dc87b8b42..000000000 --- a/docs/injectables/RequestContextMiddleware.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - apps/api/src/core/context/request-context.middleware.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - resolve - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -resolve() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : (req: any, res: any, next: any) => void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { Injectable, NestMiddleware } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import * as cls from 'cls-hooked';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { RequestContext } from './request-context';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class RequestContextMiddleware implements NestMiddleware {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  resolve() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return (req, res, next) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      const requestContext = new RequestContext(req, res);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      const session = cls.getNamespace(RequestContext.name) || cls.createNamespace(RequestContext.name);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      session.run(async () => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        session.set(RequestContext.name, requestContext);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        next();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ResizableState.html b/docs/injectables/ResizableState.html deleted file mode 100644 index d9cc645fc..000000000 --- a/docs/injectables/ResizableState.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/draggable/src/lib/directives/resizable/resizable.state.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { StateDef } from '@ngx-starter-kit/utils';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { IResizeState } from './resizable.store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ResizableState extends StateDef<IResizeState> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    super({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      startSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      startPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      isResizing: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      direction: null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ServiceWorkerService.html b/docs/injectables/ServiceWorkerService.html deleted file mode 100644 index 28fab2af6..000000000 --- a/docs/injectables/ServiceWorkerService.html +++ /dev/null @@ -1,284 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/core/src/lib/services/service-worker.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -constructor(swUpdate: SwUpdate) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      swUpdate - SwUpdate - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - checkSWUpdate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -checkSWUpdate() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { SwUpdate } from '@angular/service-worker';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  providedIn: 'root',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class ServiceWorkerService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(private swUpdate: SwUpdate /*private modalService: NgbModal*/) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  checkSWUpdate(): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    if (environment.production) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      // Subscribe new worker is available
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this.swUpdate.available.subscribe(() => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        // update available: ask the user to reload
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        if (window.confirm('A new version has been released. Do you want to update?')) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          window.location.reload(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        // this.modalService.open(this.modalContent).result.then(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        //   () => this.swUpdate.activateUpdate()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        //     .then(() => document.location.reload()), // load the update
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        //   () => {} // do nothing if the user wants to refresh later
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        // )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      // Check for new version
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      this.swUpdate.checkForUpdate();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/SpeechToTextService.html b/docs/injectables/SpeechToTextService.html deleted file mode 100644 index 4886db455..000000000 --- a/docs/injectables/SpeechToTextService.html +++ /dev/null @@ -1,406 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/chat-box/src/lib/services/speech-to-text.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Public - getVoiceMessage - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - getVoiceMessage() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : Promise<string> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Public - canUseSpeechRecognition - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - canUseSpeechRecognition: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Default value : false -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Private - speechRecognition - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - speechRecognition: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -const SpeechRecognition =
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  (window as any).webkitSpeechRecognition ||
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  (window as any).mozSpeechRecognition ||
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  (window as any).msSpeechRecognition ||
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  (window as any).oSpeechRecognition ||
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  (window as any).SpeechRecognition;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class SpeechToTextService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  public canUseSpeechRecognition = false;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  private speechRecognition: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (SpeechRecognition !== undefined) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this.canUseSpeechRecognition = true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this.speechRecognition = new SpeechRecognition();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this.speechRecognition.continuous = false; // FIXME: Gecko?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this.speechRecognition.lang = 'en-US';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this.speechRecognition.interimResults = false;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this.speechRecognition.maxAlternatives = 1;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      // recognition.grammars = new SpeechGrammarList();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  public getVoiceMessage(): Promise<string> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return new Promise(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      (resolve: any, reject: any): void => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this.speechRecognition.onresult = (speech: any): void => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          let sentence = '';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          if (speech.results) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -            const result = speech.results[speech.resultIndex];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -            const transcript = result[0].transcript;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -            if (result.isFinal) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -              if (result[0].confidence < 0.1) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -                console.log('Unrecognized result - Please try again');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -              } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -                sentence = transcript.trim();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -                console.log(`Sentence: ${sentence}`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -                console.log(`Confidence: ${result[0].confidence}`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -                // console.log(`Did you said? -> ${sentence}, If not, try again...`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -                resolve(sentence);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -              }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -            }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this.speechRecognition.onspeechend = (ev: Event): void => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          this.speechRecognition.stop();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this.speechRecognition.onnomatch = (err: any): void => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          console.log('No Match');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          // prettier-ignore
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          reject('I didn\'t recognise your question.');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this.speechRecognition.onerror = (err: any): void => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          console.log('Error: ' + err.error);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          reject(err.error);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        // [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onaudiostart',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onaudioend',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onend',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onerror',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onnomatch',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onresult',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onsoundstart',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onsoundend',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onspeechend',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     'onstart',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        // ].forEach((eventName: string): void  => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     this.speechRecognition[eventName] = (e: Event): void => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //         console.log(eventName, e);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        //     };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        // });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this.speechRecognition.start();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        // console.log("I'm listening...");
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/StyleManagerService.html b/docs/injectables/StyleManagerService.html deleted file mode 100644 index 24e246374..000000000 --- a/docs/injectables/StyleManagerService.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/theme-picker/src/lib/style-manager.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Description

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Class for managing stylesheets. Stylesheets are loaded into named slots so that they can be -removed or changed later.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - removeStyle - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -removeStyle(key: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Remove the stylesheet with the specified key.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          key - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - setStyle - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -setStyle(key: string, href: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Set the stylesheet with the specified key.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          key - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          href - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * Class for managing stylesheets. Stylesheets are loaded into named slots so that they can be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * removed or changed later.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class StyleManagerService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -   * Set the stylesheet with the specified key.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  setStyle(key: string, href: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    getLinkElementForKey(key).setAttribute('href', href);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -   * Remove the stylesheet with the specified key.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  removeStyle(key: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const existingLinkElement = getExistingLinkElementByKey(key);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (existingLinkElement) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      document.head.removeChild(existingLinkElement);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -function getLinkElementForKey(key: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  return getExistingLinkElementByKey(key) || createLinkElementWithKey(key);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -function getExistingLinkElementByKey(key: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  return document.head.querySelector(`link[rel="stylesheet"].${getClassNameForKey(key)}`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -function createLinkElementWithKey(key: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  const linkEl = document.createElement('link');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  linkEl.setAttribute('rel', 'stylesheet');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  linkEl.classList.add(getClassNameForKey(key));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  document.head.appendChild(linkEl);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  return linkEl;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -function getClassNameForKey(key: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  return `style-manager-${key}`;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/SvgViewerService.html b/docs/injectables/SvgViewerService.html deleted file mode 100644 index e7ea92611..000000000 --- a/docs/injectables/SvgViewerService.html +++ /dev/null @@ -1,844 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - libs/svg-viewer/src/lib/svg-viewer.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -constructor(config: SvgViewerConfig, _http: HttpClient) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            config - SvgViewerConfig - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            _http - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - _cloneSVG - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - _cloneSVG(svg: SVGElement) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            svg - SVGElement - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : SVGElement - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - _svgElementFromString - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - _svgElementFromString(str: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            str - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : SVGElement | never - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - getAbsoluteUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -getAbsoluteUrl(url: string) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            url - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - getSVG - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -getSVG(url: string, cache: boolean) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptionalDefault value
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            url - string - - No - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            cache - boolean - - No - - true -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : Observable<SVGElement> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - setBaseUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -setBaseUrl(config: SvgViewerConfig) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            config - SvgViewerConfig - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - Static - _baseUrl - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - _baseUrl: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - Static - _cache - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - _cache: Map<string | SVGElement> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : Map<string | SVGElement> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - Private - Static - _inProgressReqs - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - _inProgressReqs: Map<string | Observable<SVGElement>> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : Map<string | Observable<SVGElement>> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { Injectable, Optional } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { HttpClient } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { of as observableOf, Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { catchError, finalize, map, share } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { SvgViewerConfig } from './svg-viewer.config';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class SvgViewerService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private static _cache: Map<string, SVGElement>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private static _inProgressReqs: Map<string, Observable<SVGElement>>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private static _baseUrl: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  constructor(@Optional() config: SvgViewerConfig, private _http: HttpClient) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (config && !SvgViewerService._baseUrl) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      this.setBaseUrl(config);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (!SvgViewerService._cache) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      SvgViewerService._cache = new Map<string, SVGElement>();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (!SvgViewerService._inProgressReqs) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      SvgViewerService._inProgressReqs = new Map<string, Observable<SVGElement>>();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  getSVG(url: string, cache: boolean = true): Observable<SVGElement> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const absUrl = this.getAbsoluteUrl(url);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    // Return cached copy if it exists
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (cache && SvgViewerService._cache.has(absUrl)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      return observableOf(this._cloneSVG(SvgViewerService._cache.get(absUrl)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    // Return existing fetch observable
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (SvgViewerService._inProgressReqs.has(absUrl)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      return SvgViewerService._inProgressReqs.get(absUrl);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    // Otherwise, make the HTTP call to fetch
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const req = this._http.get(absUrl, { responseType: 'text' }).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      catchError((err: any) => err),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      finalize(() => SvgViewerService._inProgressReqs.delete(absUrl)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      share(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      map((svgText: string) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        const svgEl = this._svgElementFromString(svgText);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        SvgViewerService._cache.set(absUrl, svgEl);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        return this._cloneSVG(svgEl);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      }),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    SvgViewerService._inProgressReqs.set(absUrl, req);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return req;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  setBaseUrl(config: SvgViewerConfig): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (config) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      SvgViewerService._baseUrl = config.baseUrl;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  getAbsoluteUrl(url: string): string {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    // Prepend user-configured base if present and URL doesn't seem to have its own
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (SvgViewerService._baseUrl && !/^https?:\/\//i.test(url)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      url = SvgViewerService._baseUrl + url.slice(url.indexOf('assets/'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      // Convert leading "//" to "/" to prevent a malformed URL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      // See https://github.com/arkon/ng-inline-svg/issues/50
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      if (url.indexOf('//') === 0) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        url = url.substring(1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return url;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private _svgElementFromString(str: string): SVGElement | never {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const div: HTMLElement = document.createElement('DIV');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    div.innerHTML = str;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const svg = div.querySelector('svg') as SVGElement;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    if (!svg) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      throw new Error('No SVG found in loaded contents');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return svg;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private _cloneSVG(svg: SVGElement): SVGElement {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return svg.cloneNode(true) as SVGElement;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/TextToSpeechService.html b/docs/injectables/TextToSpeechService.html deleted file mode 100644 index d31cb4d1e..000000000 --- a/docs/injectables/TextToSpeechService.html +++ /dev/null @@ -1,452 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/chat-box/src/lib/services/text-to-speech.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - Async - getVoiceList - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - getVoiceList() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - synthesisVoice - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - synthesisVoice(text: string, voice: SynthesisVoice) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              text - string - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              voice - SynthesisVoice - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Public - canUseSpeechSynthesis - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - canUseSpeechSynthesis: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Default value : false -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Private - speechSynthesis - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - speechSynthesis: SpeechSynthesis - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : SpeechSynthesis - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { SynthesisVoice } from '../state/chat-box.actions';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class TextToSpeechService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public canUseSpeechSynthesis = false;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  private speechSynthesis: SpeechSynthesis;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    if ('speechSynthesis' in window) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      this.canUseSpeechSynthesis = true;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      this.speechSynthesis = (window as any).speechSynthesis;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public synthesisVoice(text: string, voice: SynthesisVoice): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const utterance = new SpeechSynthesisUtterance(text);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    utterance.voice = voice.voice;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    utterance.text = text;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    utterance.volume = voice.volume; // 0 to 1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    utterance.rate = voice.rate; // 0.1 to 10
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    utterance.pitch = voice.pitch; // 0 to 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.speechSynthesis.speak(utterance);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public async getVoiceList(): Promise<SpeechSynthesisVoice[]> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    await new Promise((resolve, reject) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      this.speechSynthesis.addEventListener('voiceschanged', resolve);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return this.speechSynthesis.getVoices();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // return new Promise((resolve: any, reject: any): void => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //   // With Chrome, we have to wait for onvoiceschanged event to fire before calling getVoices
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //   if (this.speechSynthesis.onvoiceschanged !== undefined) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //     this.speechSynthesis.onvoiceschanged = (): void => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //       resolve(this.speechSynthesis.getVoices());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //     };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //   } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //     resolve(this.speechSynthesis.getVoices());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    //   }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/ThemeStorageService.html b/docs/injectables/ThemeStorageService.html deleted file mode 100644 index 0e03cfc5a..000000000 --- a/docs/injectables/ThemeStorageService.html +++ /dev/null @@ -1,462 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/theme-picker/src/lib/theme-storage.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Public - clearStorage - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - clearStorage() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Public - getStoredTheme - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - getStoredTheme() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : DocsSiteTheme - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Public - storeTheme - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - storeTheme(theme: DocsSiteTheme) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                theme - DocsSiteTheme - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Public - onThemeUpdate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - onThemeUpdate: EventEmitter<DocsSiteTheme> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : EventEmitter<DocsSiteTheme> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : new EventEmitter<DocsSiteTheme>() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Static - storageKey - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - storageKey: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : 'default-theme-storage-current' -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { Injectable, EventEmitter } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface DocsSiteTheme {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  href: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  accent: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  primary: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  isDark?: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  isDefault?: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class ThemeStorageService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  static storageKey = 'default-theme-storage-current';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  public onThemeUpdate: EventEmitter<DocsSiteTheme> = new EventEmitter<DocsSiteTheme>();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  public storeTheme(theme: DocsSiteTheme) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    window.localStorage[ThemeStorageService.storageKey] = JSON.stringify(theme);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this.onThemeUpdate.emit(theme);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  public getStoredTheme(): DocsSiteTheme {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return JSON.parse(window.localStorage[ThemeStorageService.storageKey] || null);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  public clearStorage() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    window.localStorage.removeItem(ThemeStorageService.storageKey);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/TimeoutInterceptor.html b/docs/injectables/TimeoutInterceptor.html deleted file mode 100644 index 50c8a90ce..000000000 --- a/docs/injectables/TimeoutInterceptor.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - apps/api/src/core/interceptors/timeout.interceptor.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - intercept - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -intercept(context: ExecutionContext, call$: Observable) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  call$ - Observable<any> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : Observable<any> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { Injectable, NestInterceptor, ExecutionContext } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { timeout } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class TimeoutInterceptor implements NestInterceptor {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  intercept(context: ExecutionContext, call$: Observable<any>): Observable<any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return call$.pipe(timeout(5000));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/TransformInterceptor.html b/docs/injectables/TransformInterceptor.html deleted file mode 100644 index 47378e593..000000000 --- a/docs/injectables/TransformInterceptor.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - apps/api/src/core/interceptors/transform.interceptor.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - intercept - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -intercept(context: ExecutionContext, call$: Observable) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    call$ - Observable<any> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Returns : Observable<any> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { Injectable, NestInterceptor, ExecutionContext } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { classToPlain } from 'class-transformer';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class TransformInterceptor implements NestInterceptor {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  intercept(context: ExecutionContext, call$: Observable<any>): Observable<any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return call$.pipe(map(data => classToPlain(data, { excludePrefixes: ['_id'] })));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/WebSocketHandler.html b/docs/injectables/WebSocketHandler.html deleted file mode 100644 index a0afd6aa1..000000000 --- a/docs/injectables/WebSocketHandler.html +++ /dev/null @@ -1,269 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/socketio-plugin/src/lib/websocket-handler.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -constructor(store: Store, actions: Actions, socket: WebSocketSubject, config: NgxsWebsocketPluginOptions) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      actions - Actions - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      socket - WebSocketSubject - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      config - NgxsWebsocketPluginOptions - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { Injectable, Inject } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { WebSocketSubject } from './websocket-subject';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Actions, Store, getValue, ofActionDispatched, getActionTypeFromInstance } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  ConnectWebSocket,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  DisconnectWebSocket,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  SendWebSocketAction,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  NGXS_WEBSOCKET_OPTIONS,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  NgxsWebsocketPluginOptions,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  AuthenticateWebSocket,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  WebsocketMessageError,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  WebSocketConnected,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  WebSocketDisconnected,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -} from './symbols';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { distinctUntilChanged } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class WebSocketHandler {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    store: Store,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    actions: Actions,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    socket: WebSocketSubject,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    @Inject(NGXS_WEBSOCKET_OPTIONS) config: NgxsWebsocketPluginOptions,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  ) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    actions.pipe(ofActionDispatched(ConnectWebSocket)).subscribe(event => socket.connect(event.payload));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    actions.pipe(ofActionDispatched(DisconnectWebSocket)).subscribe(event => socket.disconnect());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    actions.pipe(ofActionDispatched(SendWebSocketAction)).subscribe(({ payload }) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      const type = getActionTypeFromInstance(payload);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      socket.send({ ...payload, type });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    actions.pipe(ofActionDispatched(AuthenticateWebSocket)).subscribe(event => socket.auth({ sumo: 1 }));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    socket.connectionStatus.pipe(distinctUntilChanged()).subscribe(status => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      if (status) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        store.dispatch(new WebSocketConnected());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        store.dispatch(new WebSocketDisconnected());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    socket.subscribe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      msg => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        const type = getValue(msg, config.typeKey);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        if (!type) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          throw new Error(`Type ${type} not found on message`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        store.dispatch({ ...msg, type });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      err => store.dispatch(new WebsocketMessageError(err)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/WebSocketSubject.html b/docs/injectables/WebSocketSubject.html deleted file mode 100644 index 3d8a7c76c..000000000 --- a/docs/injectables/WebSocketSubject.html +++ /dev/null @@ -1,718 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/socketio-plugin/src/lib/websocket-subject.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -constructor(_config: NgxsWebsocketPluginOptions) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        _config - NgxsWebsocketPluginOptions - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - auth - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -auth(data: any) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Send auth request to the websocket.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        data - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - connect - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -connect(options?: NgxsWebsocketPluginOptions) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Kickoff the connection to the websocket.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        options - NgxsWebsocketPluginOptions - - Yes -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - disconnect - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -disconnect() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Disconnected the websocket.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - send - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -send(data: any) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Send action to the websocket.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        data - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Returns : void - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Private - _internalConfig - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - _internalConfig: RxSocketioSubjectConfig<SocketIOEvent> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : RxSocketioSubjectConfig<SocketIOEvent> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - Private - _socket - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - _socket: RxSocketioSubject<SocketIOEvent> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : RxSocketioSubject<SocketIOEvent> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - connectionStatus - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - connectionStatus: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Default value : new Subject<boolean>() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        The connection status of the websocket.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { Injectable, Inject } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { Subject } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { WebSocketSubject as RxWebSocketSubject, WebSocketSubjectConfig } from 'rxjs/webSocket';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { NGXS_WEBSOCKET_OPTIONS, NgxsWebsocketPluginOptions } from './symbols';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { RxSocketioSubject, RxSocketioSubjectConfig } from './RxSocketioSubject';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface SocketIOEvent<T = any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  event: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  data: T;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class WebSocketSubject extends Subject<any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * The connection status of the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  connectionStatus = new Subject<boolean>();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  private _socket: RxSocketioSubject<SocketIOEvent>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  private _internalConfig: RxSocketioSubjectConfig<SocketIOEvent>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(@Inject(NGXS_WEBSOCKET_OPTIONS) private _config: NgxsWebsocketPluginOptions) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    super();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this._internalConfig = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      url: this._config.url,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      serializer: this._config.serializer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      deserializer: this._config.deserializer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      closeObserver: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        next: (e: CloseEvent) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          this.connectionStatus.next(false);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      openObserver: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        next: (e: Event) => this.connectionStatus.next(true),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Kickoff the connection to the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  connect(options?: NgxsWebsocketPluginOptions) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    // Users can pass the options in the connect method so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    // if options aren't available at DI bootstrap they have access
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    // to pass them here
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (options) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (options.url) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this._internalConfig.url = options.url;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (options.connectOpts) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this._internalConfig.connectOpts = options.connectOpts;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (options.serializer) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this._internalConfig.serializer = options.serializer;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (options.deserializer) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this._internalConfig.deserializer = options.deserializer;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (options.tokenFn && typeof options.tokenFn === 'function') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this._internalConfig.tokenFn = options.tokenFn;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this._socket = new RxSocketioSubject<SocketIOEvent>(this._internalConfig);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this._socket.subscribe((message: any) => this.next(message));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Disconnected the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  disconnect() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (this._socket) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this._socket.complete();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this._socket = undefined;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Send auth request to the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  auth(data: any): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (!this._socket) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      throw new Error('You must connect before Authenticate');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this._socket.next({ event: 'auth', data });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Send action to the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  send(data: any): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (!this._socket) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      throw new Error('You must connect before sending data');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this._socket.next({ event: 'actions', data });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/WizdashService.html b/docs/injectables/WizdashService.html deleted file mode 100644 index b86dc6f6b..000000000 --- a/docs/injectables/WizdashService.html +++ /dev/null @@ -1,1997 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/widgets/src/lib/containers/wizdash/wizdash.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Example

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -constructor(http: HttpClient) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          http - HttpClient - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getAdvancedPieChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getAdvancedPieChartData() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getAudienceOverviewBounceRate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getAudienceOverviewBounceRate() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getAudienceOverviewSessionDuration - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getAudienceOverviewSessionDuration() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getAudienceOverviewSessions - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getAudienceOverviewSessions() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getAudienceOverviewUsers - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getAudienceOverviewUsers() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getClicks - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getClicks() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getConversions - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getConversions() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getRecentSalesData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getRecentSalesData() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getRecentSalesTableData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getRecentSalesTableData() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getSales - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getSales() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getSalesSummary - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getSalesSummary() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getTop5Categories - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getTop5Categories() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - getVisits - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -getVisits() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toAdvancedPieChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toAdvancedPieChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : { labels: {}; datasets: {}; } - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toAudienceOverviewBounceRateChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toAudienceOverviewBounceRateChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toAudienceOverviewSessionDurationChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toAudienceOverviewSessionDurationChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toAudienceOverviewSessionsChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toAudienceOverviewSessionsChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toAudienceOverviewUsersChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toAudienceOverviewUsersChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toClicksChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toClicksChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toConversionsChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toConversionsChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toRecentSalesChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toRecentSalesChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : { labels: {}; datasets: {}; } - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toSalesChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toSalesChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Converting Data from Server to Chart compatible format

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toSalesSummaryChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toSalesSummaryChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toTop5CategoriesChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toTop5CategoriesChartData(chartData: literal type[]) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type[] - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - toVisitsChartData - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -toVisitsChartData(chartData: literal type) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          chartData - literal type - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Returns : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          import { HttpClient } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { ChartData } from 'chart.js';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { of } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  advancedPieChartDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  advancedPieChartDemoValues,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewBounceRateDemoData,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewBounceRateDemoDataLastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewBounceRateDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewSessionDurationDemoData,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewSessionDurationDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewSessionDurationDemoLastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewSessionsDemoData,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewSessionsDemoDataLastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewSessionsDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewUsersDemoData,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewUsersDemoDataLastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  audienceOverviewUsersDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  clicksChartDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  clicksChartDemoValues,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  conversionsChartDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  conversionsChartDemoValues,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  recentSalesChartDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  recentSalesChartDemoValues,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  recentSalesTableDemoData,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  salesChartDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  salesChartDemoValues,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  salesSummaryDemoData,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  salesSummaryDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  top5CategoriesDemoData,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  visitsChartDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  visitsChartDemoValues,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -} from '../../demo-data/widget-demo-data';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * @class WizdashService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * This is just a demo service for populating the charts on the dashboard.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * You will have to implement a similiar service for the data to be populated.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * Examples are provided below :)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class WizdashService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  // url = environment.backend;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor(private http: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getSales() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -     * Example for real request
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -     return this.http.get(this.url + '/sales').pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -     map(response => this.toSalesChartData(response))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -     );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -     */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({ labels: salesChartDemoLabels(), data: salesChartDemoValues }).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      map(values => this.toSalesChartData(values)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -   * Converting Data from Server to Chart compatible format
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -   * @returns {Chart.ChartData}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toSalesChartData(chartData: { labels: string[]; data: number[] }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: '# of Sales',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getVisits() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({ labels: visitsChartDemoLabels(), data: visitsChartDemoValues }).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      map(values => this.toVisitsChartData(values)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toVisitsChartData(chartData: { labels: string[]; data: number[] }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: '# of Visits',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderWidth: 2,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getClicks() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({ labels: clicksChartDemoLabels(), data: clicksChartDemoValues }).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      map(values => this.toClicksChartData(values)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toClicksChartData(chartData: { labels: string[]; data: number[] }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: '# of Clicks',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderWidth: 2,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getConversions() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({ labels: conversionsChartDemoLabels(), data: conversionsChartDemoValues }).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      map(values => this.toConversionsChartData(values)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toConversionsChartData(chartData: { labels: string[]; data: number[] }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: '# of Conversions',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: '#FFFFFF',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderWidth: 2,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          pointRadius: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getSalesSummary() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({ labels: salesSummaryDemoLabels(), data: salesSummaryDemoData }).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      map(values => this.toSalesSummaryChartData(values)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toSalesSummaryChartData(chartData: { labels: string[]; data: { [set: string]: number[] } }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Revenue',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#7cb342',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.revenue,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Expenses',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#EEEEEE',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.expenses,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getTop5Categories() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of(top5CategoriesDemoData).pipe(map(values => this.toTop5CategoriesChartData(values)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toTop5CategoriesChartData(chartData: { label: string; value: number }[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.map(data => data.label),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.map(data => data.value),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: ['#2196F3', '#009688', '#4CAF50', '#607D8B', '#E91E63'],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getAudienceOverviewUsers() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: audienceOverviewUsersDemoLabels(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      data: { thisWeek: audienceOverviewUsersDemoData, lastWeek: audienceOverviewUsersDemoDataLastWeek },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }).pipe(map(values => this.toAudienceOverviewUsersChartData(values)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toAudienceOverviewUsersChartData(chartData: { labels: string[]; data: { [set: string]: number[] } }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Users',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.thisWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: '#4285f4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          pointRadius: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Users - Last Week',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.lastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: 'rgba(66, 133, 244, 0.3)',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderDash: [3, 5],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          pointRadius: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getAudienceOverviewSessions() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: audienceOverviewSessionsDemoLabels(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      data: { thisWeek: audienceOverviewSessionsDemoData, lastWeek: audienceOverviewSessionsDemoDataLastWeek },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }).pipe(map(values => this.toAudienceOverviewSessionsChartData(values)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toAudienceOverviewSessionsChartData(chartData: { labels: string[]; data: { [set: string]: number[] } }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Sessions',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.thisWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#4285f4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: '#4285f4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Sessions - Last Week',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.lastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: 'rgba(66, 133, 244, 0.3)',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderDash: [3, 5],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          pointRadius: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getAudienceOverviewBounceRate() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: audienceOverviewBounceRateDemoLabels(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      data: { thisWeek: audienceOverviewBounceRateDemoData, lastWeek: audienceOverviewBounceRateDemoDataLastWeek },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }).pipe(map(values => this.toAudienceOverviewBounceRateChartData(values)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toAudienceOverviewBounceRateChartData(chartData: { labels: string[]; data: { [set: string]: number[] } }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Bounce Rate',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.thisWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#4285f4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: '#4285f4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Bounce Rate - Last Week',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.lastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: 'rgba(66, 133, 244, 0.3)',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderDash: [3, 5],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          pointRadius: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getAudienceOverviewSessionDuration() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: audienceOverviewSessionDurationDemoLabels(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      data: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        thisWeek: audienceOverviewSessionDurationDemoData,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        lastWeek: audienceOverviewSessionDurationDemoLastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }).pipe(map(values => this.toAudienceOverviewSessionDurationChartData(values)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toAudienceOverviewSessionDurationChartData(chartData: { labels: string[]; data: { [set: string]: number[] } }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Session Duration',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.thisWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#4285f4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: '#4285f4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Session Duration - Last Week',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data.lastWeek,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          fill: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: 'rgba(66, 133, 244, 0.3)',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderDash: [3, 5],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          pointRadius: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } as ChartData;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getRecentSalesTableData() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // Simulating request from local data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of(recentSalesTableDemoData);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getRecentSalesData() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: recentSalesChartDemoLabels(),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      data: recentSalesChartDemoValues,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }).pipe(map(values => this.toRecentSalesChartData(values)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toRecentSalesChartData(chartData: { labels: string[]; data: number[] }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Sales',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: '#DBF6F9',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: '#DBF6F9',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          lineTension: 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getAdvancedPieChartData() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return of({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: advancedPieChartDemoLabels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      data: advancedPieChartDemoValues,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }).pipe(map(values => this.toAdvancedPieChartData(values)));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  toAdvancedPieChartData(chartData: { labels: string[]; data: number[] }) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      labels: chartData.labels,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      datasets: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          label: 'Sales',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          backgroundColor: ['#009688', '#2196F3', '#9C27B0', '#00BCD4', '#F44336', '#FF9800'],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          borderColor: 'transparent',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          data: chartData.data,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/WrapInterceptor.html b/docs/injectables/WrapInterceptor.html deleted file mode 100644 index b79398fc9..000000000 --- a/docs/injectables/WrapInterceptor.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - apps/api/src/core/interceptors/wrap.interceptor.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - intercept - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -intercept(context: ExecutionContext, stream$: Observable) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            context - ExecutionContext - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            stream$ - Observable<any> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Returns : Observable<any> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { NestInterceptor, ExecutionContext, Injectable } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class WrapInterceptor implements NestInterceptor {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  intercept(context: ExecutionContext, stream$: Observable<any>): Observable<any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return stream$.pipe(map(response => ({ status: 'success', data: response })));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/injectables/WsJwtStrategy.html b/docs/injectables/WsJwtStrategy.html deleted file mode 100644 index 2c5e6f981..000000000 --- a/docs/injectables/WsJwtStrategy.html +++ /dev/null @@ -1,369 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - apps/api/src/auth/passport/ws-jwt.strategy.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -constructor(config: ConfigService, authService: AuthService) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              config - ConfigService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              authService - AuthService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - Async - validate - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - validate(token: any, done: Function) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              token - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              done - Function - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Returns : {} - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { ExtractJwt, Strategy } from 'passport-jwt';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { PassportStrategy } from '@nestjs/passport';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { Injectable, UnauthorizedException } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { passportJwtSecret, SigningKeyNotFoundError } from '@xmlking/jwks-rsa';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { AuthService } from '../auth.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { JwtToken } from '../interfaces/jwt-token.interface';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { ConfigService } from '../../config';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { WsException } from '@nestjs/websockets';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -const extractJwtFromWsQuery = req => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  let token = null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  if (req.handshake.query && req.handshake.query.token) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      token = req.handshake.query.token;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return token;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class WsJwtStrategy extends PassportStrategy(Strategy, 'ws-jwt') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(private readonly config: ConfigService, private readonly authService: AuthService) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    super({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      jwtFromRequest: extractJwtFromWsQuery, // ExtractJwt.fromUrlQueryParameter('token'),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      // secretOrKey: process.env.OIDC_PUBLIC_KEY,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      secretOrKeyProvider: passportJwtSecret({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        cache: true,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        rateLimit: true,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        jwksRequestsPerMinute: 5,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        strictSsl: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        jwksUri: `${process.env.OIDC_ISSUER_URL}/protocol/openid-connect/certs`,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      }),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      handleSigningKeyError: (err, cb) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        if (err instanceof SigningKeyNotFoundError) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -          return cb(new WsException('This is bad: SigningKeyNotFoundError'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        return cb(err);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      // Validate the audience and the issuer.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      audience: process.env.OIDC_CLIENT,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      issuer: process.env.OIDC_ISSUER_URL,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      algorithm: ['RS256'],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  // tslint:disable-next-line:ban-types
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  async validate(token: any, done: Function) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const user = await this.authService.getLoggedUserOrCreate(token).catch(console.error);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    if (!user) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      return done(new WsException('user not found and cannot create new user in database'), false);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    token = token as JwtToken;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    done(null, user, { token });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interceptors/ErrorInterceptor.html b/docs/interceptors/ErrorInterceptor.html deleted file mode 100644 index 1b02ad70c..000000000 --- a/docs/interceptors/ErrorInterceptor.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/core/src/lib/interceptors/error.interceptor.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -constructor() -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - intercept - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -intercept(req: HttpRequest, next: HttpHandler) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                req - HttpRequest<any> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                next - HttpHandler - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Returns : Observable<HttpEvent<any>> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Properties -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - Public - handleError - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - handleError: - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Default value : (errorRes: HttpErrorResponse) => { - const { - error: { status, error, message }, - } = errorRes; - // Do messaging and error handling here - // this.snackBar.open( - // `Error ! ${message}`, - // '', - // ErrorInterceptor.snackBarConfig - // ); - console.error(`Backend Error ! status: ${status}, error: ${error}, message: ${message}`); - - return throwError(errorRes); - } -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { Injectable, Injector } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpErrorResponse } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { Observable, throwError } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { catchError } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -// import { Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -// import { MatSnackBar, MatSnackBarConfig } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class ErrorInterceptor implements HttpInterceptor {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  // static snackBarConfig: MatSnackBarConfig = <MatSnackBarConfig>{
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  //   duration: 10000
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  // };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor(/*private snackBar: MatSnackBar, private store : Store*/) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return next.handle(req).pipe(catchError(this.handleError));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  /* tslint:disable */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  public handleError = (errorRes: HttpErrorResponse) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    const {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      error: { status, error, message },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    } = errorRes;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    // Do messaging and error handling here
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    // this.snackBar.open(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    //   `Error ! ${message}`,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    //   '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    //   ErrorInterceptor.snackBarConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    // );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    console.error(`Backend Error ! status: ${status}, error: ${error}, message: ${message}`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    return throwError(errorRes);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interceptors/JwtInterceptor.html b/docs/interceptors/JwtInterceptor.html deleted file mode 100644 index 1767755be..000000000 --- a/docs/interceptors/JwtInterceptor.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/core/src/lib/interceptors/jwt.interceptor.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -constructor(store: Store, oauthService: OAuthService) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  store - Store - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  oauthService - OAuthService - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - intercept - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -intercept(req: HttpRequest, next: HttpHandler) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  req - HttpRequest<any> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  next - HttpHandler - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Returns : Observable<HttpEvent<any>> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Observable } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { OAuthService } from 'angular-oauth2-oidc';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -const allowedUrls = [environment.API_BASE_URL, environment.DOCS_BASE_URL];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class JwtInterceptor implements HttpInterceptor {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(private store: Store, private oauthService: OAuthService) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    const access_token = this.oauthService.getAccessToken();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    // const token = this.store.selectSnapshot<string>((state: AuthState) => state.auth.profile.token);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    const url = req.url.toLowerCase();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    const found = !!allowedUrls.find(u => url.startsWith(u));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (!found) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      return next.handle(req);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    req = req.clone({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      setHeaders: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        Authorization: `Bearer ${access_token}`,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return next.handle(req);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/AccessTokenErrorResponse.html b/docs/interfaces/AccessTokenErrorResponse.html deleted file mode 100644 index 7cf0a673d..000000000 --- a/docs/interfaces/AccessTokenErrorResponse.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/auth/src/lib/oauth.errors.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - error -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - error: AccessTokenError - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : AccessTokenError - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - error_description -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - error_description: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - error_uri -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - error_uri: URL - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : URL - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type InvalidRequest = 'invalid_request';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -type UnauthorizedClient = 'unauthorized_client';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -type AuthorizationError =
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'invalid_request'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'unauthorized_client'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'access_denied'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'unsupported_response_type'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'invalid_scope'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'server_error'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'temporarily_unavailable';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -type AccessTokenError =
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'invalid_request'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'invalid_client'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'invalid_grant'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'unauthorized_client'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'unsupported_grant_type'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  | 'invalid_scope';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export interface AccessTokenErrorResponse {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  error: AccessTokenError;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  error_description?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  error_uri?: URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export interface AuthorizationErrorResponse {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  error: AuthorizationError;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  error_description?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  error_uri?: URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  state?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/AuthStateModel.html b/docs/interfaces/AuthStateModel.html deleted file mode 100644 index 50904e34c..000000000 --- a/docs/interfaces/AuthStateModel.html +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/auth/src/lib/auth.state.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - authMode -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - authMode: AuthMode - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : AuthMode - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - isLoggedIn -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - isLoggedIn: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - profile -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - profile: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { Action, Select, Selector, State, StateContext } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  Login,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  LoginCanceled,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  AuthMode,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  ChangeAuthMode,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  LogoutSuccess,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  LoginSuccess,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  Logout,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  AuthModeChanged,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -} from './auth.actions';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { AuthService } from './auth.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { authConfigImplicit, authConfigPassword } from './oauth.config';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { OAuthService } from 'angular-oauth2-oidc';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface AuthStateModel {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  isLoggedIn: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  profile: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  authMode: AuthMode;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@State<AuthStateModel>({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  name: 'auth',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  defaults: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    isLoggedIn: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    profile: {},
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    authMode: AuthMode.ImplicitFLow,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class AuthState {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(private authService: AuthService, private oauthService: OAuthService, private router: Router) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Selector()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static isLoggedIn(state: AuthStateModel) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return state.isLoggedIn;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Selector()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static profile(state: AuthStateModel) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return state.profile;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Selector()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static authMode(state: AuthStateModel) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return state ? state.authMode : AuthMode.ImplicitFLow;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Action(LoginSuccess)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  loginSuccess({ getState, patchState }: StateContext<AuthStateModel>, { payload }: LoginSuccess) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    patchState({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      isLoggedIn: true,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      profile: payload,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.authService.startAutoRefreshToken();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.router.navigate(['/dashboard']);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Action([LogoutSuccess, LoginCanceled])
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  logoutSuccess({ getState, setState }: StateContext<AuthStateModel>) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    setState({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      isLoggedIn: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      profile: {},
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      authMode: getState().authMode,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.authService.stopAutoRefreshToken();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    this.router.navigate(['/home']);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Action(AuthModeChanged)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  authModeChanged({ getState, patchState }: StateContext<AuthStateModel>, { payload }: AuthModeChanged) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    patchState({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      authMode: payload,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Action(ChangeAuthMode)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  async changeAuthMode({ getState, dispatch }: StateContext<AuthStateModel>, { payload }: ChangeAuthMode) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    if (getState().authMode !== payload) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      switch (payload) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        case AuthMode.PasswordFlow:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          this.oauthService.configure(authConfigPassword);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        default:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          this.oauthService.configure(authConfigImplicit);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      await this.oauthService.loadDiscoveryDocument();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      dispatch(new AuthModeChanged(payload));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Action(Logout)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  logout({ getState }: StateContext<AuthStateModel>) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return this.authService.logout();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  @Action(Login)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  login({ getState, dispatch }: StateContext<AuthStateModel>, { payload }: Login) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return this.authService.login(payload).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      map(profile => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        if (profile === false) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          dispatch(new LoginCanceled());
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -          dispatch(new LoginSuccess(profile));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      }),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/AuthorizationErrorResponse.html b/docs/interfaces/AuthorizationErrorResponse.html deleted file mode 100644 index d405cac9e..000000000 --- a/docs/interfaces/AuthorizationErrorResponse.html +++ /dev/null @@ -1,332 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/auth/src/lib/oauth.errors.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - error -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - error: AuthorizationError - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : AuthorizationError - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - error_description -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - error_description: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - error_uri -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - error_uri: URL - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : URL - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - state -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - state: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type InvalidRequest = 'invalid_request';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -type UnauthorizedClient = 'unauthorized_client';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -type AuthorizationError =
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'invalid_request'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'unauthorized_client'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'access_denied'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'unsupported_response_type'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'invalid_scope'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'server_error'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'temporarily_unavailable';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -type AccessTokenError =
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'invalid_request'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'invalid_client'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'invalid_grant'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'unauthorized_client'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'unsupported_grant_type'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  | 'invalid_scope';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface AccessTokenErrorResponse {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  error: AccessTokenError;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  error_description?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  error_uri?: URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface AuthorizationErrorResponse {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  error: AuthorizationError;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  error_description?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  error_uri?: URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  state?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/Crumb.html b/docs/interfaces/Crumb.html deleted file mode 100644 index 5258ae358..000000000 --- a/docs/interfaces/Crumb.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/breadcrumbs/src/lib/breadcrumbs.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - link -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - link: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - name -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - name: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface Crumb {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  link?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  selector: 'ngx-breadcrumbs',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  templateUrl: './breadcrumbs.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  styleUrls: ['./breadcrumbs.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  changeDetection: ChangeDetectionStrategy.OnPush,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class BreadcrumbsComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  readonly title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  @Input()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  crumbs: ReadonlyArray<Crumb>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/DialogFlowTokenInterface.html b/docs/interfaces/DialogFlowTokenInterface.html deleted file mode 100644 index c1438d6e4..000000000 --- a/docs/interfaces/DialogFlowTokenInterface.html +++ /dev/null @@ -1,273 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - libs/chat-box/src/lib/chat-box.module.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - accessToken -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - accessToken: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { ModuleWithProviders, NgModule } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { CommonModule } from '@angular/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { ReactiveFormsModule } from '@angular/forms';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { NgxsModule } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { NgxsFormPluginModule } from '@ngxs/form-plugin';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatBadgeModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatButtonModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatCardModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatDividerModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatFormFieldModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatIconModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatInputModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatListModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatRippleModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatSelectModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatSidenavModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatTabsModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatSliderModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatToolbarModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  MatExpansionModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -} from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { FlexLayoutModule } from '@angular/flex-layout';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { DraggableModule } from '@ngx-starter-kit/draggable';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { DragDropModule } from '@angular/cdk/drag-drop';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { LedModule } from '@ngx-starter-kit/led';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { NlpService } from './services/nlp.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { ChatService } from './services/chat.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { TextToSpeechService } from './services/text-to-speech.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { SpeechToTextService } from './services/speech-to-text.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { ChatBoxComponent } from './chat-box.component';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { TypingIndicatorComponent } from './components/typing-indicator/typing-indicator.component';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { TextToSpeechPreferencesComponent } from './components/text-to-speech-preferences/text-to-speech-preferences.component';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { ChatCardComponent } from './components/chat-card/chat-card.component';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { DIALOGFLOW_TOKEN } from './services/inject-tokens';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { ChatBoxState } from './state/chat-box.store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface DialogFlowTokenInterface {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  accessToken: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -@NgModule({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  imports: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    CommonModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    ReactiveFormsModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    DraggableModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    DragDropModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    LedModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    FlexLayoutModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatSelectModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatToolbarModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatRippleModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatBadgeModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatButtonModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatInputModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatListModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatCardModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatTabsModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatIconModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatSidenavModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatSliderModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatDividerModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatFormFieldModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    MatExpansionModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    NgxsModule.forFeature([ChatBoxState]),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    NgxsFormPluginModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  declarations: [ChatBoxComponent, TypingIndicatorComponent, ChatCardComponent, TextToSpeechPreferencesComponent],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  exports: [ChatBoxComponent],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  providers: [ChatService, NlpService, TextToSpeechService, SpeechToTextService],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class ChatBoxModule {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  static forRoot(config: DialogFlowTokenInterface): ModuleWithProviders {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      ngModule: ChatBoxModule,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      providers: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -          provide: DIALOGFLOW_TOKEN,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -          useValue: config.accessToken,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/DocsSiteTheme.html b/docs/interfaces/DocsSiteTheme.html deleted file mode 100644 index 68b4b3e3b..000000000 --- a/docs/interfaces/DocsSiteTheme.html +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/theme-picker/src/lib/theme-storage.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - accent -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - accent: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - href -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - href: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - isDark -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - isDark: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - isDefault -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - isDefault: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - primary -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - primary: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { Injectable, EventEmitter } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface DocsSiteTheme {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  href: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  accent: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  primary: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  isDark?: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  isDefault?: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class ThemeStorageService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  static storageKey = 'default-theme-storage-current';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public onThemeUpdate: EventEmitter<DocsSiteTheme> = new EventEmitter<DocsSiteTheme>();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public storeTheme(theme: DocsSiteTheme) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    window.localStorage[ThemeStorageService.storageKey] = JSON.stringify(theme);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.onThemeUpdate.emit(theme);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public getStoredTheme(): DocsSiteTheme {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return JSON.parse(window.localStorage[ThemeStorageService.storageKey] || null);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public clearStorage() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    window.localStorage.removeItem(ThemeStorageService.storageKey);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/Element.html b/docs/interfaces/Element.html deleted file mode 100644 index 2ce6839b7..000000000 --- a/docs/interfaces/Element.html +++ /dev/null @@ -1,888 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/experiments/src/lib/containers/sticky-table/sticky-table.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - name -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - name: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - position -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - position: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - symbol -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - symbol: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test1 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test1: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test2 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test2: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test3 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test3: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test4 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test4: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test5 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test5: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test6 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test6: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test7 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test7: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - test8 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - test8: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - weight -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - weight: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { AfterViewInit, Component, ViewChild } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { MatPaginator, MatTableDataSource } from '@angular/material';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -/* tslint:disable:max-line-length */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -const ELEMENT_DATA: Element[] = [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Hydrogen',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 1.0079,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'H',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 2,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Helium',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 4.0026,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'He',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 3,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Lithium',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 6.941,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Li',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 4,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Beryllium',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 9.0122,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Be',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 5,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Boron',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 10.811,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'B',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 6,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Carbon',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 12.0107,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'C',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 7,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Nitrogen',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 14.0067,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'N',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 8,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Oxygen',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 15.9994,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'O',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 9,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Fluorine',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 18.9984,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'F',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 10,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Neon',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 20.1797,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Ne',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 11,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Sodium',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 22.9897,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Na',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 12,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Magnesium',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 24.305,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Mg',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 13,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Aluminum',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 26.9815,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Al',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 14,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Silicon',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 28.0855,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Si',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 15,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Phosphorus',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 30.9738,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'P',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 16,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Sulfur',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 32.065,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'S',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    position: 17,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    name: 'Chlorine',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    weight: 35.453,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    symbol: 'Cl',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test: 'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test1: 'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test2: 'text2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test3: 'text3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test4: 'text4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test5: 'text5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test6: 'text6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test7: 'text7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    test8: 'text8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: 'ngx-sticky-table',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  templateUrl: './sticky-table.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  styleUrls: ['./sticky-table.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class StickyTableComponent implements AfterViewInit {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    { name: 'Sticky Table' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  ];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  displayedColumns = [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'position',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'name',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'weight',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'symbol',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test1',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test2',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test3',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test5',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test6',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test7',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    'test8',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  ];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  dataSource = new MatTableDataSource<Element>(ELEMENT_DATA);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  @ViewChild(MatPaginator)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  paginator: MatPaginator;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  ngAfterViewInit() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this.dataSource.paginator = this.paginator;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface Element {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  position: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  weight: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  symbol: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test1: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test2: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test3: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test4: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test5: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test6: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test7: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  test8: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -/**  Copyright 2018 Google Inc. All Rights Reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Use of this source code is governed by an MIT-style license that
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - can be found in the LICENSE file at http://angular.io/license */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/EmailTemplate.html b/docs/interfaces/EmailTemplate.html deleted file mode 100644 index ad0dc17ac..000000000 --- a/docs/interfaces/EmailTemplate.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - apps/api/src/email/email.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - context -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - context: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - template -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - template: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { join } from 'path';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { renderFile } from 'pug';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Inject, Injectable } from '@nestjs/common';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { createTransport, SentMessageInfo, Transporter, SendMailOptions } from 'nodemailer';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { EmailModuleOptions } from './interfaces/email-options.interface';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -interface EmailTemplate {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  template?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  context?: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class EmailService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private transporter: Transporter;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(@Inject('EMAIL_CONFIG') private readonly mailerConfig: EmailModuleOptions) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (!mailerConfig.transport || Object.keys(mailerConfig.transport).length < 1) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      throw new Error(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        'Make sure to provide a nodemailer transport configuration object, connection url or a transport plugin instance',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.setupTransporter(mailerConfig.transport, mailerConfig.defaults, mailerConfig.templateDir);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private setupTransporter(transport: any, defaults?: any, templateDir?: string): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.transporter = createTransport(transport, defaults);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.transporter.use('compile', this.renderTemplate(templateDir));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  public async sendMail(sendMailOptions: SendMailOptions & EmailTemplate): Promise<SentMessageInfo> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return await this.transporter.sendMail(sendMailOptions);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private renderTemplate(templateDir): (mail, callback) => void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return (mail, callback) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (mail.data.html) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        return callback();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      renderFile(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        join(process.cwd(), templateDir || './public/templates', mail.data.template + '.pug'),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        mail.data.context,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        (err, body) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          if (err) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -            return callback(err);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          mail.data.html = body;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          return callback();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/Filter.html b/docs/interfaces/Filter.html deleted file mode 100644 index 85edbdf3e..000000000 --- a/docs/interfaces/Filter.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/shared/src/lib/containers/entity/entity.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Indexable

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - [name: string]: string | [] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { HttpClient, HttpErrorResponse, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Observable, BehaviorSubject, throwError } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { environment } from '@env/environment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Entity } from './entity.model';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { map, retry, catchError, finalize } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import * as moment from 'moment';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export interface Filter {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  [name: string]: string | string[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export abstract class EntityService<T extends Entity> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  protected readonly baseUrl = environment.API_BASE_URL;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  protected loadingSubject = new BehaviorSubject<boolean>(false);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  public loading$ = this.loadingSubject.asObservable();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  protected abstract entityPath: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor(protected httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  getById(id: number | string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    // this.loadingSubject.next(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return this.httpClient.get<T>(`${this.baseUrl}/${this.entityPath}/${id}`).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      catchError(this.handleError),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      // finalize(() => this.loadingSubject.next(false))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  findAll(filter: Filter, sortOrder = 'asc', pageNumber = 0, pageSize = 100): Observable<T[]> | Observable<never> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.loadingSubject.next(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      .get<T[]>(`${this.baseUrl}/${this.entityPath}`, {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        params: new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -          .set('filter', 'filter TODO')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -          .set('sortOrder', sortOrder)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -          .set('pageNumber', pageNumber.toString())
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -          .set('pageSize', pageSize.toString()),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      .pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        retry(3), // retry a failed request up to 3 times
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        catchError(this.handleError),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        finalize(() => this.loadingSubject.next(false)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  getAll(): Observable<T[]> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.loadingSubject.next(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return this.httpClient.get<T[]>(`${this.baseUrl}/${this.entityPath}`).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      retry(3), // retry a failed request up to 3 times
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      catchError(this.handleError),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      finalize(() => this.loadingSubject.next(false)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  delete(id: number | string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.loadingSubject.next(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return this.httpClient.delete(`${this.baseUrl}/${this.entityPath}/${id}`).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      catchError(this.handleError),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      finalize(() => this.loadingSubject.next(false)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  post(entity: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.loadingSubject.next(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return this.httpClient.post(`${this.baseUrl}/${this.entityPath}`, entity).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      catchError(this.handleError),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      finalize(() => this.loadingSubject.next(false)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  put(entity: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    console.log(entity);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.loadingSubject.next(true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return this.httpClient.put(`${this.baseUrl}/${this.entityPath}`, entity).pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      catchError(this.handleError),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      finalize(() => this.loadingSubject.next(false)),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  protected handleError(error: HttpErrorResponse) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    if (error.error instanceof ErrorEvent) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      // A client-side or network error occurred. Handle it accordingly.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      console.error('An error occurred:', error.error.message);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      // The backend returned an unsuccessful response code.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      // The response body may contain clues as to what went wrong,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      console.error(`Backend returned code ${error.status}, ` + `body was: ${error.error}`);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    // return an ErrorObservable with a user-facing error message
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return throwError('Something bad happened; please try again later.');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  protected convertToJson(body: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const temporalFunctionToJson = Date.prototype.toJSON;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    Date.prototype.toJSON = function() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      return moment(this).format('YYYY-MM-DD');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const jsonBody = JSON.stringify(body);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    Date.prototype.toJSON = temporalFunctionToJson;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return jsonBody;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/ICrudService.html b/docs/interfaces/ICrudService.html deleted file mode 100644 index 863fe1bee..000000000 --- a/docs/interfaces/ICrudService.html +++ /dev/null @@ -1,538 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - apps/api/src/core/crud/icube.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Methods -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - create - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -create(entity: DeepPartial) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      entity - DeepPartial<T> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : Promise<T> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - delete - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -delete(id: any) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      id - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : Promise<any> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - getAll - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -getAll(filter?: FindManyOptions) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      filter - FindManyOptions<T> - - Yes -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : Promise<> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - getOne - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -getOne(id: any | FindOneOptions) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      id - any | FindOneOptions<T> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : Promise<T> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - update - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -update(id: any, entity: DeepPartial) -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Parameters : - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NameTypeOptional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      id - any - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      entity - DeepPartial<T> - - No -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Returns : Promise<any> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { DeepPartial, FindManyOptions, FindOneOptions } from 'typeorm';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface ICrudService<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  getAll(filter?: FindManyOptions<T>): Promise<[T[], number]>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  getOne(id: any | FindOneOptions<T>): Promise<T>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  create(entity: DeepPartial<T>): Promise<T>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  update(id: any, entity: DeepPartial<T>): Promise<any>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  delete(id: any): Promise<any>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/IOptions.html b/docs/interfaces/IOptions.html deleted file mode 100644 index b78a6be2e..000000000 --- a/docs/interfaces/IOptions.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/draggable/src/lib/directives/resizable/resizable.store.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - bound -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - bound: IRectangle - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : IRectangle - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - directions -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - directions: string[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - disabled -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - disabled: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - grid -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - grid: ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - maxSize -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - maxSize: ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - minSize -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - minSize: ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - ratio -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - ratio: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        export interface IPoint {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface ISize {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface IRectangle {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface IResizeEvent {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  size: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  position: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface IResizeState {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  currentSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  startSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  currentPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  startPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  isResizing: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface IOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  minSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  maxSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  grid: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  directions: string[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  disabled: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  bound: IRectangle;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  ratio: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export const defaultGrid: ISize = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  width: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  height: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export const defaultBound: IRectangle = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  x: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  y: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  width: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  height: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class Store {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  state: IResizeState = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    currentSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    startSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    currentPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    startPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    isResizing: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    direction: null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  private reducers: any[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  addReducer(reducer: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.reducers.push(reducer);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  emitAction(action: any, ...params: any[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.state = this.reducers.reduce((p: IResizeState, c: any) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      return c.apply(null, [p, action].concat(params));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }, this.state);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/IPoint.html b/docs/interfaces/IPoint.html deleted file mode 100644 index f264e5104..000000000 --- a/docs/interfaces/IPoint.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/draggable/src/lib/directives/resizable/resizable.store.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • - x -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • - y -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - x -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - x: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - y -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - y: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          export interface IPoint {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface ISize {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface IRectangle {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface IResizeEvent {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  size: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  position: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface IResizeState {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  currentSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  startSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  currentPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  startPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  isResizing: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface IOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  minSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  maxSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  grid: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  directions: string[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  disabled: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  bound: IRectangle;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  ratio: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export const defaultGrid: ISize = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  width: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  height: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export const defaultBound: IRectangle = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  x: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  y: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  width: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  height: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class Store {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  state: IResizeState = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    currentSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    startSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    currentPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    startPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    isResizing: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    direction: null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  private reducers: any[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  addReducer(reducer: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    this.reducers.push(reducer);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  emitAction(action: any, ...params: any[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    this.state = this.reducers.reduce((p: IResizeState, c: any) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      return c.apply(null, [p, action].concat(params));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }, this.state);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/IRectangle.html b/docs/interfaces/IRectangle.html deleted file mode 100644 index 777b23da5..000000000 --- a/docs/interfaces/IRectangle.html +++ /dev/null @@ -1,358 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - libs/draggable/src/lib/directives/resizable/resizable.store.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - height -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - height: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - width -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - width: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - x -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - x: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - y -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - y: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            export interface IPoint {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface ISize {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface IRectangle {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface IResizeEvent {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  size: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  position: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface IResizeState {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  currentSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  startSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  currentPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  startPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  isResizing: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface IOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  minSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  maxSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  grid: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  directions: string[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  disabled: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  bound: IRectangle;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  ratio: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export const defaultGrid: ISize = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  width: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  height: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export const defaultBound: IRectangle = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  x: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  y: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  width: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  height: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class Store {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  state: IResizeState = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    currentSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    startSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    currentPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    startPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    isResizing: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    direction: null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  private reducers: any[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  addReducer(reducer: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    this.reducers.push(reducer);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  emitAction(action: any, ...params: any[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    this.state = this.reducers.reduce((p: IResizeState, c: any) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      return c.apply(null, [p, action].concat(params));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }, this.state);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/IResizeEvent.html b/docs/interfaces/IResizeEvent.html deleted file mode 100644 index 75a2592b1..000000000 --- a/docs/interfaces/IResizeEvent.html +++ /dev/null @@ -1,326 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/draggable/src/lib/directives/resizable/resizable.store.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - direction -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - direction: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - position -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - position: IPoint - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : IPoint - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - size -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - size: ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              export interface IPoint {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface ISize {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface IRectangle {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface IResizeEvent {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  size: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  position: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface IResizeState {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  currentSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  startSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  currentPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  startPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  isResizing: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface IOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  minSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  maxSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  grid: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  directions: string[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  disabled: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  bound: IRectangle;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  ratio: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export const defaultGrid: ISize = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  width: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  height: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export const defaultBound: IRectangle = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  x: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  y: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  width: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  height: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class Store {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  state: IResizeState = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    currentSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    startSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    currentPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    startPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    isResizing: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    direction: null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  private reducers: any[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  addReducer(reducer: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.reducers.push(reducer);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  emitAction(action: any, ...params: any[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.state = this.reducers.reduce((p: IResizeState, c: any) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      return c.apply(null, [p, action].concat(params));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }, this.state);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/IResizeState.html b/docs/interfaces/IResizeState.html deleted file mode 100644 index 5d4dd7dca..000000000 --- a/docs/interfaces/IResizeState.html +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/draggable/src/lib/directives/resizable/resizable.store.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - currentPosition -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - currentPosition: IPoint - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : IPoint - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - currentSize -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - currentSize: ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - direction -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - direction: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - isResizing -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - isResizing: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - startPosition -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - startPosition: IPoint - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : IPoint - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - startSize -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - startSize: ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : ISize - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                export interface IPoint {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface ISize {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface IRectangle {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface IResizeEvent {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  size: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  position: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface IResizeState {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  currentSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  startSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  currentPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  startPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  isResizing: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface IOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  minSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  maxSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  grid: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  directions: string[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  disabled: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  bound: IRectangle;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  ratio: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export const defaultGrid: ISize = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  width: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  height: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export const defaultBound: IRectangle = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  x: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  y: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  width: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  height: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class Store {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  state: IResizeState = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    currentSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    startSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    currentPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    startPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    isResizing: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    direction: null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private reducers: any[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  addReducer(reducer: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this.reducers.push(reducer);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  emitAction(action: any, ...params: any[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this.state = this.reducers.reduce((p: IResizeState, c: any) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      return c.apply(null, [p, action].concat(params));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    }, this.state);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/ISize.html b/docs/interfaces/ISize.html deleted file mode 100644 index abd267e64..000000000 --- a/docs/interfaces/ISize.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/draggable/src/lib/directives/resizable/resizable.store.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - height -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - height: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - width -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - width: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  export interface IPoint {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface ISize {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface IRectangle {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  x: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  y: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  width: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  height: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface IResizeEvent {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  size: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  position: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface IResizeState {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  currentSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  startSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  currentPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  startPosition: IPoint;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  direction: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  isResizing: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface IOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  minSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  maxSize: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  grid: ISize;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  directions: string[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  disabled: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  bound: IRectangle;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  ratio: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export const defaultGrid: ISize = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  width: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  height: 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export const defaultBound: IRectangle = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  x: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  y: -Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  width: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  height: Infinity,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class Store {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  state: IResizeState = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    currentSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    startSize: { width: 0, height: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    currentPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    startPosition: { x: 0, y: 0 },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    isResizing: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    direction: null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private reducers: any[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  addReducer(reducer: any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.reducers.push(reducer);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  emitAction(action: any, ...params: any[]) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this.state = this.reducers.reduce((p: IResizeState, c: any) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      return c.apply(null, [p, action].concat(params));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }, this.state);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/ISocket.html b/docs/interfaces/ISocket.html deleted file mode 100644 index 8611f7616..000000000 --- a/docs/interfaces/ISocket.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - apps/api/src/shared/interfaces/socket.interface.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Extends

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Socket -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - authInfo -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - authInfo: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - user -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - user: User - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : User - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { User } from '../../auth';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Socket } from 'socket.io';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export interface ISocket extends Socket {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  user: User;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  authInfo: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/Id.html b/docs/interfaces/Id.html deleted file mode 100644 index e2d299237..000000000 --- a/docs/interfaces/Id.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/grid/src/lib/services/random-account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - name -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - name: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - value -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - value: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { HttpClient, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface ResponseObject {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  results?: (RandomAccount)[] | null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  info: Info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Info {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  seed: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  results: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  page: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  version: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface RandomAccount {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  gender: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  name: Name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  location: Location;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  dob: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  phone: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  cell: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  id: Id;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  picture: Picture;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  nat: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Name {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  first: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  last: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Location {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  street: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  city: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  state: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  postcode: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Id {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Picture {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  large: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  medium: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  thumbnail: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class RandomAccountService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  // public url = 'https://randomuser.me/api/?nat=us&results=100&exc=login,registered&seed=sumo';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  public baseUrl = 'https://randomuser.me/api/';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  params = new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    .append('seed', 'sumo')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    .append('nat', 'us')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    .append('exc', 'login,registered');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  getAll(pageSize: number = 100) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    const params = this.params.append('results', '' + pageSize);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .pipe(map((response: ResponseObject) => response.results));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  getById(id: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    const params = this.params.append('id', id).append('results', '1');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .pipe(map((response: ResponseObject) => response.results[0]));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/Info.html b/docs/interfaces/Info.html deleted file mode 100644 index b520d9c55..000000000 --- a/docs/interfaces/Info.html +++ /dev/null @@ -1,363 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/grid/src/lib/services/random-account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - page -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - page: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - results -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - results: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - seed -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - seed: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - version -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - version: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { HttpClient, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface ResponseObject {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  results?: (RandomAccount)[] | null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  info: Info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface Info {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  seed: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  results: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  page: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  version: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface RandomAccount {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  gender: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  name: Name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  location: Location;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  dob: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  phone: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  cell: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  id: Id;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  picture: Picture;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  nat: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface Name {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  first: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  last: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface Location {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  street: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  city: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  state: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  postcode: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface Id {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface Picture {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  large: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  medium: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  thumbnail: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class RandomAccountService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  // public url = 'https://randomuser.me/api/?nat=us&results=100&exc=login,registered&seed=sumo';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  public baseUrl = 'https://randomuser.me/api/';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  params = new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    .append('seed', 'sumo')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    .append('nat', 'us')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    .append('exc', 'login,registered');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  getAll(pageSize: number = 100) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const params = this.params.append('results', '' + pageSize);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      .pipe(map((response: ResponseObject) => response.results));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  getById(id: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const params = this.params.append('id', id).append('results', '1');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      .pipe(map((response: ResponseObject) => response.results[0]));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/JsonDiffNode.html b/docs/interfaces/JsonDiffNode.html deleted file mode 100644 index 828d83603..000000000 --- a/docs/interfaces/JsonDiffNode.html +++ /dev/null @@ -1,473 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/json-diff/src/lib/json-diff.interfaces.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - children -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - children: JsonDiffNode[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : JsonDiffNode[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - id -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - id: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - index -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - index: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - isRoot -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - isRoot: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - name -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - name: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - parent -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - parent: JsonDiffNodeType - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : JsonDiffNodeType - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - status -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - status: JsonDiffNodeStatus - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : JsonDiffNodeStatus - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - type -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - type: JsonDiffNodeType - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : JsonDiffNodeType - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - value -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - value: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          export enum JsonDiffNodeType {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  literal = 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  pair = 2,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  json = 3,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  array = 4,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export enum JsonDiffNodeStatus {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  default = 1,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  typeChanged = 2,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  nameChanged = 3,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  valueChanged = 4,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  added = 5,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  removed = 6,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface JsonDiffNode {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  id: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  index: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  parent: JsonDiffNodeType;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  type: JsonDiffNodeType;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  children: JsonDiffNode[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  status: JsonDiffNodeStatus;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  isRoot?: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/JwtToken.html b/docs/interfaces/JwtToken.html deleted file mode 100644 index bed3b0cb4..000000000 --- a/docs/interfaces/JwtToken.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - apps/api/src/auth/interfaces/jwt-token.interface.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Indexable

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - [key: string]: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - email -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - email: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - preferred_username -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - preferred_username: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            export interface JwtToken {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  preferred_username: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  [key: string]: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/Location.html b/docs/interfaces/Location.html deleted file mode 100644 index 12dcfed55..000000000 --- a/docs/interfaces/Location.html +++ /dev/null @@ -1,363 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/grid/src/lib/services/random-account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - city -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - city: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - postcode -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - postcode: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - state -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - state: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - street -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - street: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { HttpClient, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface ResponseObject {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  results?: (RandomAccount)[] | null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  info: Info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface Info {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  seed: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  results: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  page: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  version: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface RandomAccount {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  gender: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  name: Name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  location: Location;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  dob: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  phone: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  cell: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  id: Id;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  picture: Picture;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  nat: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface Name {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  first: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  last: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface Location {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  street: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  city: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  state: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  postcode: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface Id {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface Picture {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  large: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  medium: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  thumbnail: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class RandomAccountService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  // public url = 'https://randomuser.me/api/?nat=us&results=100&exc=login,registered&seed=sumo';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  public baseUrl = 'https://randomuser.me/api/';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  params = new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    .append('seed', 'sumo')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    .append('nat', 'us')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    .append('exc', 'login,registered');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  getAll(pageSize: number = 100) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const params = this.params.append('results', '' + pageSize);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      .pipe(map((response: ResponseObject) => response.results));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  getById(id: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const params = this.params.append('id', id).append('results', '1');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      .pipe(map((response: ResponseObject) => response.results[0]));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/MatchExp.html b/docs/interfaces/MatchExp.html deleted file mode 100644 index b259e6a25..000000000 --- a/docs/interfaces/MatchExp.html +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Indexable

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - [classes: string]: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { Directive, ElementRef, Input, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { NavigationEnd, Router } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { combineLatest, Subject } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { filter, map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { untilDestroy } from '../../operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface MatchExp {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  [classes: string]: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Directive({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  selector: '[routerLinkMatch]',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class RouterLinkMatchDirective implements OnDestroy, OnChanges {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private _curRoute: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private _matchExp: MatchExp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private _onChangesHook = new Subject<MatchExp>();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  @Input('routerLinkMatch')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  set routerLinkMatch(v: MatchExp) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    if (v && typeof v === 'object') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      this._matchExp = v;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      throw new TypeError(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        `Unexpected type '${typeof v}' of value for ` + `input of routerLinkMatch directive, expected 'object'`,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor(router: Router, private _renderer: Renderer2, private _ngEl: ElementRef) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    combineLatest(router.events, this._onChangesHook)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      .pipe(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        map(([e]) => e),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        filter(e => e instanceof NavigationEnd),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        untilDestroy(this),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      .subscribe(e => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        this._curRoute = (e as NavigationEnd).urlAfterRedirects;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        this._updateClass(this._matchExp);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  ngOnChanges(changes: SimpleChanges) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    if (changes['routerLinkMatch']) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      this._onChangesHook.next(changes['routerLinkMatch'].currentValue);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private _updateClass(v: MatchExp): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    Object.keys(v).forEach(cls => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      if (v[cls] && typeof v[cls] === 'string') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        const regexp = new RegExp(v[cls]);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        if (this._curRoute.match(regexp)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -          this._toggleClass(cls, true);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -          this._toggleClass(cls, false);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        throw new TypeError(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -          `Could not convert match value to Regular Expression. ` +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -            `Unexpected type '${typeof v[cls]}' for value of key '${cls}' ` +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -            `in routerLinkMatch directive match expression, expected 'non-empty string'`,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  private _toggleClass(classes: string, enabled: boolean): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    classes = classes.trim();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    classes.split(/\s+/g).forEach(cls => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      if (enabled) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        this._renderer.addClass(this._ngEl.nativeElement, cls);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        this._renderer.removeClass(this._ngEl.nativeElement, cls);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  ngOnDestroy() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/MenuItem.html b/docs/interfaces/MenuItem.html deleted file mode 100644 index 5e30cac82..000000000 --- a/docs/interfaces/MenuItem.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/navigator/src/lib/models/menu-item.model.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Extends

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - TreeNode -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Indexable

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - [key: string]: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - badge -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - badge: literal type - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : literal type - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - disabled -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - disabled: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - icon -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - icon: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - link -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - link: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - name -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - name: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - tooltip -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - tooltip: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - type -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - type: MenuItemType - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : MenuItemType - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { TreeNode } from '@ngx-starter-kit/tree';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export enum MenuItemType {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  Link = 'link',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  DropDown = 'dropDown',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  Icon = 'icon',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  Separator = 'separator',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  ExtLink = 'extLink',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface MenuItem extends TreeNode<MenuItem> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  name: string; // Used as display text for item and title for separator type
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  type?: MenuItemType; // Possible values: link/dropDown/icon/separator/extLink
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  icon?: string; // Item icon name
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  link?: string; // Router state
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  badge?: { value: number; color?: string };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  tooltip?: string; // Tooltip text
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  disabled?: boolean; // If true, item will not be appeared in sidenav.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  [key: string]: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/MenuStateModel.html b/docs/interfaces/MenuStateModel.html deleted file mode 100644 index 0c6cef262..000000000 --- a/docs/interfaces/MenuStateModel.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/navigator/src/lib/state/menu.state.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - currentlyOpened -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - currentlyOpened: MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : MenuItem[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - iconMode -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - iconMode: boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : boolean - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - tree -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - tree: Tree<MenuItem> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : Tree<MenuItem> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { Action, NgxsOnInit, Selector, State, StateContext, Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { MenuItem } from '../models/menu-item.model';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { MenuService } from '../services/menu.service';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Tree } from '@ngx-starter-kit/tree';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class NextCurrentlyOpened {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  static readonly type = '[Menu] Next Currently Opened';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor(public readonly payload: MenuItem[]) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class SetIconMode {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  static readonly type = '[Menu] SetIconMode';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor(public readonly payload: boolean) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ToggleCurrentlyOpened {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  static readonly type = '[Menu] ToggleCurrentlyOpened';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor(public readonly payload: MenuItem) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class ToggleCurrentlyOpenedByRoute {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  static readonly type = '[Menu] ToggleCurrentlyOpenedByRoute';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor(public readonly payload: string) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export interface MenuStateModel {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  tree: Tree<MenuItem>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  currentlyOpened: MenuItem[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  iconMode: boolean;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -@State<MenuStateModel>({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  name: 'menu',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  defaults: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    tree: null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    currentlyOpened: [],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    iconMode: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class MenuState implements NgxsOnInit {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor(private menuService: MenuService) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  @Selector()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  static menuItems(state: MenuStateModel) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return state.tree.root.children;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  @Selector()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  static currentlyOpened(state: MenuStateModel) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    if (state.iconMode) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      return [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      return state.currentlyOpened;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  ngxsOnInit({ setState, getState }: StateContext<MenuStateModel>) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    setState({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      tree: this.menuService.tree,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentlyOpened: [],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      iconMode: false,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  private getParents(tree, item: MenuItem): MenuItem[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const ancestors = tree.getAllParents(item);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    ancestors.shift();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    return ancestors;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  @Action(SetIconMode)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  setIconMode({ getState, patchState }: StateContext<MenuStateModel>, { payload }: SetIconMode) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    patchState({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      iconMode: payload,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  @Action(NextCurrentlyOpened)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  nextCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: NextCurrentlyOpened) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    patchState({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentlyOpened: payload,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  @Action(ToggleCurrentlyOpened)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  toggleCurrentlyOpened({ getState, patchState }: StateContext<MenuStateModel>, { payload }: ToggleCurrentlyOpened) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    // tslint:disable:prefer-const
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    let { tree, currentlyOpened } = getState();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const isOpen = currentlyOpened.indexOf(payload) !== -1;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    if (isOpen) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      if (currentlyOpened.length > 1) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        currentlyOpened.length = currentlyOpened.indexOf(payload);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        currentlyOpened = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentlyOpened = this.getParents(tree, payload);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    patchState({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentlyOpened: currentlyOpened,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  @Action(ToggleCurrentlyOpenedByRoute)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  toggleCurrentlyOpenedByRoute(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { getState, patchState }: StateContext<MenuStateModel>,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { payload }: ToggleCurrentlyOpenedByRoute,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  ) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const { tree } = getState();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    let currentlyOpened: MenuItem[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const item = tree.findByPredicateBFS(node => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      return node.link === payload;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    if (item && item.parent) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentlyOpened = this.getParents(tree, item);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    } else if (item) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentlyOpened = [item];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    patchState({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      currentlyOpened: currentlyOpened,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/Name.html b/docs/interfaces/Name.html deleted file mode 100644 index a824b4d3d..000000000 --- a/docs/interfaces/Name.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/grid/src/lib/services/random-account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - first -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - first: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - last -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - last: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - title -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - title: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { HttpClient, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface ResponseObject {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  results?: (RandomAccount)[] | null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  info: Info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Info {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  seed: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  results: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  page: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  version: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface RandomAccount {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  gender: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  name: Name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  location: Location;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  dob: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  phone: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  cell: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  id: Id;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  picture: Picture;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  nat: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Name {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  first: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  last: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Location {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  street: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  city: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  state: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  postcode: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Id {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface Picture {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  large: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  medium: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  thumbnail: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class RandomAccountService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  // public url = 'https://randomuser.me/api/?nat=us&results=100&exc=login,registered&seed=sumo';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  public baseUrl = 'https://randomuser.me/api/';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  params = new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    .append('seed', 'sumo')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    .append('nat', 'us')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    .append('exc', 'login,registered');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  getAll(pageSize: number = 100) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    const params = this.params.append('results', '' + pageSize);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .pipe(map((response: ResponseObject) => response.results));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  getById(id: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    const params = this.params.append('id', id).append('results', '1');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -      .pipe(map((response: ResponseObject) => response.results[0]));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/NgxsWebsocketPluginOptions.html b/docs/interfaces/NgxsWebsocketPluginOptions.html deleted file mode 100644 index 5f5d1cdbf..000000000 --- a/docs/interfaces/NgxsWebsocketPluginOptions.html +++ /dev/null @@ -1,589 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/socketio-plugin/src/lib/symbols.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - connectOpts -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - connectOpts: ConnectOpts - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : ConnectOpts - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - deserializer -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - deserializer: function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Deseralizer before publishing the message.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - reconnectAttempts -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - reconnectAttempts: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Number of reconnect attemps. -Default: 10

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - reconnectInterval -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - reconnectInterval: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Interval to try and reconnect. -Default: 5000

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - serializer -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - serializer: function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Serializer to call before sending messages -Default: json.stringify

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - tokenFn -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - tokenFn: function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - typeKey -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - typeKey: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        The property name to distigunish this type for the store. -Default: 'type'

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - url -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - url: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        URL of the websocket.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { InjectionToken } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export const NGXS_WEBSOCKET_OPTIONS = new InjectionToken('NGXS_WEBSOCKET_OPTIONS');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface NgxsWebsocketPluginOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * URL of the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  url?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  connectOpts?: ConnectOpts;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  tokenFn?: () => string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * The property name to distigunish this type for the store.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Default: 'type'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  typeKey?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Interval to try and reconnect.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Default: 5000
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  reconnectInterval?: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Number of reconnect attemps.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Default: 10
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  reconnectAttempts?: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Serializer to call before sending messages
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Default: `json.stringify`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  serializer?: (data: any) => string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   * Deseralizer before publishing the message.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  deserializer?: (e: MessageEvent) => any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export function noop(arg) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  return function() {};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * Action to connect to the websocket. Optionally pass a URL.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class ConnectWebSocket {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  static readonly type = '[Websocket] Connect';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(public payload?: NgxsWebsocketPluginOptions) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * Action triggered when a error ocurrs
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class WebsocketMessageError {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  static readonly type = '[Websocket] Message Error';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(public payload: any) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * Action to disconnect the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class DisconnectWebSocket {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  static readonly type = '[Websocket] Disconnect';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * Action to send to the server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class SendWebSocketAction {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  static readonly type = '[Websocket] Send Action';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(public payload: any) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class WebSocketConnected {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  static readonly type = '[Websocket] Connected';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class WebSocketDisconnected {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  static readonly type = '[Websocket] Disconnected';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class AuthenticateWebSocket {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  static readonly type = '[Websocket] authenticate';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/ObjectLiteral.html b/docs/interfaces/ObjectLiteral.html deleted file mode 100644 index f2385a53b..000000000 --- a/docs/interfaces/ObjectLiteral.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/utils/src/lib/ObjectLiteral.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Description

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Interface of the simple literal object with any string keys.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Indexable

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - [key: string]: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          export interface ObjectLiteral {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  [key: string]: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/Picture.html b/docs/interfaces/Picture.html deleted file mode 100644 index 4205e7b06..000000000 --- a/docs/interfaces/Picture.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - libs/grid/src/lib/services/random-account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - large -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - large: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - medium -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - medium: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - thumbnail -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - thumbnail: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { HttpClient, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface ResponseObject {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  results?: (RandomAccount)[] | null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  info: Info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface Info {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  seed: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  results: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  page: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  version: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface RandomAccount {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  gender: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  name: Name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  location: Location;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  dob: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  phone: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  cell: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  id: Id;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  picture: Picture;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  nat: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface Name {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  first: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  last: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface Location {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  street: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  city: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  state: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  postcode: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface Id {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface Picture {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  large: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  medium: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  thumbnail: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class RandomAccountService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  // public url = 'https://randomuser.me/api/?nat=us&results=100&exc=login,registered&seed=sumo';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  public baseUrl = 'https://randomuser.me/api/';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  params = new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    .append('seed', 'sumo')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    .append('nat', 'us')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    .append('exc', 'login,registered');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  getAll(pageSize: number = 100) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const params = this.params.append('results', '' + pageSize);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      .pipe(map((response: ResponseObject) => response.results));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  getById(id: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const params = this.params.append('id', id).append('results', '1');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      .pipe(map((response: ResponseObject) => response.results[0]));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/PreferenceStateModel.html b/docs/interfaces/PreferenceStateModel.html deleted file mode 100644 index 4b460d4d1..000000000 --- a/docs/interfaces/PreferenceStateModel.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/core/src/lib/state/preference.state.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - language -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - language: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - theme -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - theme: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { State, Store } from '@ngxs/store';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface PreferenceStateModel {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  language?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  theme?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -@State<PreferenceStateModel>({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  name: 'preference',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  defaults: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    language: 'en',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    theme: 'deeppurple-amber',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class PreferenceState {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(private store: Store) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/QueryParams.html b/docs/interfaces/QueryParams.html deleted file mode 100644 index 61bc0f8a1..000000000 --- a/docs/interfaces/QueryParams.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/core/src/lib/services/deep-link.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • - q -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - q -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - q: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                import { FormGroup } from '@angular/forms';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -import { ActivatedRoute, Router, Params } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export interface QueryParams {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  q: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -@Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  providedIn: 'root',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -export class DeepLinkService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  constructor(private router: Router, private route: ActivatedRoute) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * Register a given FormGroup instance with the current "q" queryParams Observbale. Every time the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * "q" queryParams changes, the "query" FormControl (of the given FormGroup instance) will be updated, reflecting the same value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * @param form The given FormGroup to register.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  registerFormGroup(form: FormGroup) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this.route.queryParams.subscribe((query: QueryParams) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      if (query.q) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        form.setValue({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -          query: query.q,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -        });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * This method is used to update the current URL queryParams.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * It is used to keep both the URL and the formControl in sync.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   * @param queryParams A given Params object containing the queryParams to set.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  syncUrl(queryParams: Params) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    this.router.navigate([], {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      relativeTo: this.route,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -      queryParams,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/RandomAccount.html b/docs/interfaces/RandomAccount.html deleted file mode 100644 index ad0c897c4..000000000 --- a/docs/interfaces/RandomAccount.html +++ /dev/null @@ -1,555 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/grid/src/lib/services/random-account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - cell -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - cell: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - dob -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - dob: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - email -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - email: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - gender -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - gender: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - id -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - id: Id - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : Id - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - location -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - location: Location - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : Location - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - name -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - name: Name - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : Name - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - nat -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - nat: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - phone -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - phone: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - picture -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - picture: Picture - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : Picture - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { HttpClient, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface ResponseObject {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  results?: (RandomAccount)[] | null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  info: Info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface Info {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  seed: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  results: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  page: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  version: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface RandomAccount {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  gender: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  name: Name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  location: Location;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  dob: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  phone: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  cell: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  id: Id;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  picture: Picture;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  nat: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface Name {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  first: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  last: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface Location {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  street: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  city: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  state: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  postcode: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface Id {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface Picture {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  large: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  medium: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  thumbnail: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class RandomAccountService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  // public url = 'https://randomuser.me/api/?nat=us&results=100&exc=login,registered&seed=sumo';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  public baseUrl = 'https://randomuser.me/api/';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  params = new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    .append('seed', 'sumo')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    .append('nat', 'us')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    .append('exc', 'login,registered');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  getAll(pageSize: number = 100) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    const params = this.params.append('results', '' + pageSize);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      .pipe(map((response: ResponseObject) => response.results));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  getById(id: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    const params = this.params.append('id', id).append('results', '1');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      .pipe(map((response: ResponseObject) => response.results[0]));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/RealtimeUsersWidgetData.html b/docs/interfaces/RealtimeUsersWidgetData.html deleted file mode 100644 index 729efdb1e..000000000 --- a/docs/interfaces/RealtimeUsersWidgetData.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/widgets/src/lib/components/realtime-users-widget/realtime-users-widget.interface.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - id -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - id: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - label -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - label: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - value -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - value: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    export class RealtimeUsersWidgetOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  data: { page: string; views: string }[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export interface RealtimeUsersWidgetPages {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  id?: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  page: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  users: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export interface RealtimeUsersWidgetData {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  id?: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  label: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  value: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/RealtimeUsersWidgetPages.html b/docs/interfaces/RealtimeUsersWidgetPages.html deleted file mode 100644 index 6d25cd7fa..000000000 --- a/docs/interfaces/RealtimeUsersWidgetPages.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/widgets/src/lib/components/realtime-users-widget/realtime-users-widget.interface.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - id -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - id: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - page -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - page: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - users -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - users: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      export class RealtimeUsersWidgetOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  data: { page: string; views: string }[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface RealtimeUsersWidgetPages {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  id?: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  page: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  users: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface RealtimeUsersWidgetData {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  id?: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  label: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  value: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/RecentSalesWidgetOptions.html b/docs/interfaces/RecentSalesWidgetOptions.html deleted file mode 100644 index 867948fd7..000000000 --- a/docs/interfaces/RecentSalesWidgetOptions.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/widgets/src/lib/components/recent-sales-widget/recent-sales-widget-options.interface.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - subTitle -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - subTitle: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - title -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - title: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        export interface RecentSalesWidgetOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  subTitle?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/ResponseObject.html b/docs/interfaces/ResponseObject.html deleted file mode 100644 index c82bbd2de..000000000 --- a/docs/interfaces/ResponseObject.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/grid/src/lib/services/random-account.service.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - info -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - info: Info - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : Info - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - results -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - results: (RandomAccount)[] | null - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : (RandomAccount)[] | null - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          import { HttpClient, HttpParams } from '@angular/common/http';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { Injectable } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { map } from 'rxjs/operators';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface ResponseObject {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  results?: (RandomAccount)[] | null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  info: Info;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface Info {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  seed: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  results: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  page: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  version: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface RandomAccount {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  gender: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  name: Name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  location: Location;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  email: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  dob: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  phone: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  cell: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  id: Id;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  picture: Picture;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  nat: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface Name {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  first: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  last: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface Location {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  street: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  city: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  state: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  postcode: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface Id {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  value: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface Picture {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  large: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  medium: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  thumbnail: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -// @Injectable({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -//   providedIn: 'root'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -// })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class RandomAccountService {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  // public url = 'https://randomuser.me/api/?nat=us&results=100&exc=login,registered&seed=sumo';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  public baseUrl = 'https://randomuser.me/api/';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  params = new HttpParams()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    .append('seed', 'sumo')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    .append('nat', 'us')
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    .append('exc', 'login,registered');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor(private httpClient: HttpClient) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getAll(pageSize: number = 100) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const params = this.params.append('results', '' + pageSize);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      .pipe(map((response: ResponseObject) => response.results));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getById(id: string) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const params = this.params.append('id', id).append('results', '1');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return this.httpClient
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      .get<ResponseObject>(this.baseUrl, { params })
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      .pipe(map((response: ResponseObject) => response.results[0]));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/RouterStateData.html b/docs/interfaces/RouterStateData.html deleted file mode 100644 index 3b3c14ecb..000000000 --- a/docs/interfaces/RouterStateData.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - libs/core/src/lib/state/custom-router-state.serializer.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - breadcrumbs -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - breadcrumbs: Map<string | string> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : Map<string | string> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - data -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - data: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - params -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - params: Params - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : Params - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - queryParams -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - queryParams: Params - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : Params - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - url -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - url: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            import { Params, RouterStateSnapshot, UrlSegment } from '@angular/router';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -import { RouterStateSerializer } from '@ngxs/router-plugin';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export interface RouterStateData {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  url: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  params: Params;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  queryParams: Params;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  breadcrumbs: Map<string, string>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  data: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -// Map the router snapshot to { url, params, queryParams, titleSet }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -export class CustomRouterStateSerializer implements RouterStateSerializer<RouterStateData> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  serialize(routerState: RouterStateSnapshot): RouterStateData {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      url,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      root: { queryParams },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    } = routerState;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    let { root: route } = routerState;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const breadcrumbs = new Map();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    while (route.firstChild) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      route = route.firstChild;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      if (route.data['title']) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -        breadcrumbs.set(route.data['title'],  route.pathFromRoot.flatMap(segment => segment.url).join('/'));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const { params } = route;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    const { data } = route;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -    return { url, params, queryParams, breadcrumbs, data };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/RxSocketioSubjectConfig.html b/docs/interfaces/RxSocketioSubjectConfig.html deleted file mode 100644 index 519139317..000000000 --- a/docs/interfaces/RxSocketioSubjectConfig.html +++ /dev/null @@ -1,824 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - libs/socketio-plugin/src/lib/RxSocketioSubject.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - binaryType -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - binaryType: "blob" | "arraybuffer" - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : "blob" | "arraybuffer" - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the binaryType property of the underlying WebSocket.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - closeObserver -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - closeObserver: NextObserver<CloseEvent> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : NextObserver<CloseEvent> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              An Observer than watches when close events occur on the underlying webSocket

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - closingObserver -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - closingObserver: NextObserver<void> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : NextObserver<void> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              An Observer that watches when a close is about to occur due to -unsubscription.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - connectOpts -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - connectOpts: ConnectOpts - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : ConnectOpts - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              connect options for Socket.io

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - deserializer -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - deserializer: function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              A deserializer used for messages arriving on the socket from the -server. Defaults to JSON.parse.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - openObserver -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - openObserver: NextObserver<Event> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : NextObserver<Event> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              An Observer that watches when open events occur on the underlying web socket.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - protocol -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - protocol: string | Array<string> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string | Array<string> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              The protocol to use to connect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - resultSelector -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - resultSelector: function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - serializer -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - serializer: function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              A serializer used to create messages from passed values before the -messages are sent to the server. Defaults to JSON.stringify.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - tokenFn -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - tokenFn: function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : function - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              auth token access callback function

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - url -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - url: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              The url of the socket server to connect to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - WebSocketCtor -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - WebSocketCtor: literal type - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Type : literal type - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              A WebSocket constructor to use. This is useful for situations like using a -WebSocket impl in Node (WebSocket is a DOM API), or for mocking a WebSocket -for testing purposes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              import { NextObserver, Observable, Observer, Subscriber, Subscription, Subject } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import { AnonymousSubject } from 'rxjs/internal/Subject';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import * as io from 'socket.io-client';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -import ConnectOpts = SocketIOClient.ConnectOpts;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -// TODO https://github.com/arjitkhullar/ocr/blob/master/src/app/socket.service.ts
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export interface RxSocketioSubjectConfig<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /** The url of the socket server to connect to */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  url: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /** connect options for Socket.io */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  connectOpts?: ConnectOpts;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /** auth token access callback function */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  tokenFn?: () => string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /** The protocol to use to connect */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  protocol?: string | Array<string>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /** @deprecated use {@link deserializer} */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  resultSelector?: (e: MessageEvent) => T;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * A serializer used to create messages from passed values before the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * messages are sent to the server. Defaults to JSON.stringify.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  serializer?: (value: T) => WebSocketMessage;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * A deserializer used for messages arriving on the socket from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * server. Defaults to JSON.parse.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  deserializer?: (e: MessageEvent) => T;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * An Observer that watches when open events occur on the underlying web socket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  openObserver?: NextObserver<Event>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * An Observer than watches when close events occur on the underlying webSocket
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  closeObserver?: NextObserver<CloseEvent>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * An Observer that watches when a close is about to occur due to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * unsubscription.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  closingObserver?: NextObserver<void>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * A WebSocket constructor to use. This is useful for situations like using a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * WebSocket impl in Node (WebSocket is a DOM API), or for mocking a WebSocket
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   * for testing purposes
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  WebSocketCtor?: { new (url: string, protocols?: string | string[]): WebSocket };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  /** Sets the `binaryType` property of the underlying WebSocket. */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  binaryType?: 'blob' | 'arraybuffer';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -const DEFAULT_WEBSOCKET_CONFIG: RxSocketioSubjectConfig<any> = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  url: '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  deserializer: (e: MessageEvent) => JSON.parse(e.data),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  serializer: (value: any) => JSON.stringify(value),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export type WebSocketMessage = string | ArrayBuffer | Blob | ArrayBufferView;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -export class RxSocketioSubject<T> extends AnonymousSubject<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  private _output: Subject<T>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  private _config: RxSocketioSubjectConfig<T>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  private _socket: SocketIOClient.Socket;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  constructor(urlConfigOrSource: string | RxSocketioSubjectConfig<T> | Observable<T>, destination?: Observer<T>) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    super();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const config = (this._config = { ...DEFAULT_WEBSOCKET_CONFIG });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    if (typeof urlConfigOrSource === 'string') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      config.url = urlConfigOrSource;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      for (const key in urlConfigOrSource) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        if (urlConfigOrSource.hasOwnProperty(key)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -          config[key] = urlConfigOrSource[key];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    if (config.tokenFn && typeof config.tokenFn === 'function') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      if (!config.connectOpts) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        config.connectOpts = { query: {} };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      (config.connectOpts.query as any).token = config.tokenFn();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this._output = new Subject<T>();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this._socket = config.connectOpts ? io(config.url, config.connectOpts) : io(config.url);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this._socket.on('connect', event => config.openObserver.next(event));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this._socket.on('disconnect', event => config.closeObserver.next(event));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this._socket.on('actions', data => this._output.next(data));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this._socket.on('reconnect_attempt', () => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      if (config.tokenFn && typeof config.tokenFn === 'function') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        (this._socket.io.opts.query as any).token = config.tokenFn();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.destination = Subscriber.create(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      (message: T) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        this._socket.emit((message as any).event, (message as any).data);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      error => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        this._socket.close();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        const errorEvent = new ErrorEvent('', {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -          message: 'Error in data stream.',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -          error: error,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        super.error.call(this, errorEvent);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      () => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        this._socket.close();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        const closeEvent = new CloseEvent('cloased', {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -          code: 1000,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -          reason: 'Connection closed by client.',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -          wasClean: true,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -        config.closeObserver.next(closeEvent);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  next(value?: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.destination.next.call(this.destination, value);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  error(err?) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.destination.error.call(this.destination, err);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  complete() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    this.destination.complete.call(this.destination);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  _subscribe(subscriber: Subscriber<T>): Subscription {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    const subscription = new Subscription();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    subscription.add(this._output.subscribe(subscriber));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    return subscription;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  unsubscribe() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    // tslint:disable
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -    super.unsubscribe();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/SalesSummaryWidgetOptions.html b/docs/interfaces/SalesSummaryWidgetOptions.html deleted file mode 100644 index d622a3ab2..000000000 --- a/docs/interfaces/SalesSummaryWidgetOptions.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - libs/widgets/src/lib/components/sales-summary-widget/sales-summary-widget-options.interface.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - gain -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - gain: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - subTitle -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - subTitle: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - title -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - title: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                export interface SalesSummaryWidgetOptions {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  title: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  subTitle?: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -  gain?: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/SocketIOEvent.html b/docs/interfaces/SocketIOEvent.html deleted file mode 100644 index ebfad0c83..000000000 --- a/docs/interfaces/SocketIOEvent.html +++ /dev/null @@ -1,321 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - libs/socketio-plugin/src/lib/websocket-subject.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - data -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - data: T - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : T - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - event -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - event: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  import { Injectable, Inject } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { Subject } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { WebSocketSubject as RxWebSocketSubject, WebSocketSubjectConfig } from 'rxjs/webSocket';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { NGXS_WEBSOCKET_OPTIONS, NgxsWebsocketPluginOptions } from './symbols';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -import { RxSocketioSubject, RxSocketioSubjectConfig } from './RxSocketioSubject';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export interface SocketIOEvent<T = any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  event: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  data: T;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -@Injectable()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -export class WebSocketSubject extends Subject<any> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   * The connection status of the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  connectionStatus = new Subject<boolean>();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private _socket: RxSocketioSubject<SocketIOEvent>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  private _internalConfig: RxSocketioSubjectConfig<SocketIOEvent>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  constructor(@Inject(NGXS_WEBSOCKET_OPTIONS) private _config: NgxsWebsocketPluginOptions) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    super();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._internalConfig = {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      url: this._config.url,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      serializer: this._config.serializer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      deserializer: this._config.deserializer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      closeObserver: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        next: (e: CloseEvent) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -          this.connectionStatus.next(false);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      openObserver: {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        next: (e: Event) => this.connectionStatus.next(true),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    };
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   * Kickoff the connection to the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  connect(options?: NgxsWebsocketPluginOptions) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    // Users can pass the options in the connect method so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    // if options aren't available at DI bootstrap they have access
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    // to pass them here
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (options) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (options.url) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        this._internalConfig.url = options.url;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (options.connectOpts) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        this._internalConfig.connectOpts = options.connectOpts;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (options.serializer) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        this._internalConfig.serializer = options.serializer;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (options.deserializer) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        this._internalConfig.deserializer = options.deserializer;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      if (options.tokenFn && typeof options.tokenFn === 'function') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -        this._internalConfig.tokenFn = options.tokenFn;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._socket = new RxSocketioSubject<SocketIOEvent>(this._internalConfig);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._socket.subscribe((message: any) => this.next(message));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   * Disconnected the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  disconnect() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (this._socket) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      this._socket.complete();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      this._socket = undefined;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   * Send auth request to the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  auth(data: any): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (!this._socket) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      throw new Error('You must connect before Authenticate');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._socket.next({ event: 'auth', data });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   * Send action to the websocket.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -   */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  send(data: any): void {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    if (!this._socket) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -      throw new Error('You must connect before sending data');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -    this._socket.next({ event: 'actions', data });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/State.html b/docs/interfaces/State.html deleted file mode 100644 index 07d20ca8a..000000000 --- a/docs/interfaces/State.html +++ /dev/null @@ -1,321 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - capital -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - capital: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - name -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - name: string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - Type : string - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    import { Component, OnInit, ViewEncapsulation } from '@angular/core';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { BehaviorSubject } from 'rxjs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -import { Crumb } from '@ngx-starter-kit/breadcrumbs';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -interface State {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  name: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  capital: string;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -@Component({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  selector: 'ngx-virtual-scroll',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  templateUrl: './virtual-scroll.component.html',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  styleUrls: ['./virtual-scroll.component.scss'],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -export class VirtualScrollComponent implements OnInit {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  crumbs: ReadonlyArray<Crumb> = [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Dashboard', link: '/dashboard' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Experiments', link: '/dashboard/experiments' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Virtual Scroll' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  ];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  observableData = new BehaviorSubject<number[]>([]);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  states = [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Alabama', capital: 'Montgomery' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Alaska', capital: 'Juneau' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Arizona', capital: 'Phoenix' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Arkansas', capital: 'Little Rock' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'California', capital: 'Sacramento' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Colorado', capital: 'Denver' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Connecticut', capital: 'Hartford' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Delaware', capital: 'Dover' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Florida', capital: 'Tallahassee' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Georgia', capital: 'Atlanta' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Hawaii', capital: 'Honolulu' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Idaho', capital: 'Boise' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Illinois', capital: 'Springfield' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Indiana', capital: 'Indianapolis' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Iowa', capital: 'Des Moines' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Kansas', capital: 'Topeka' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Kentucky', capital: 'Frankfort' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Louisiana', capital: 'Baton Rouge' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Maine', capital: 'Augusta' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Maryland', capital: 'Annapolis' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Massachusetts', capital: 'Boston' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Michigan', capital: 'Lansing' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Minnesota', capital: 'St. Paul' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Mississippi', capital: 'Jackson' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Missouri', capital: 'Jefferson City' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Montana', capital: 'Helena' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Nebraska', capital: 'Lincoln' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Nevada', capital: 'Carson City' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'New Hampshire', capital: 'Concord' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'New Jersey', capital: 'Trenton' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'New Mexico', capital: 'Santa Fe' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'New York', capital: 'Albany' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'North Carolina', capital: 'Raleigh' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'North Dakota', capital: 'Bismarck' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Ohio', capital: 'Columbus' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Oklahoma', capital: 'Oklahoma City' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Oregon', capital: 'Salem' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Pennsylvania', capital: 'Harrisburg' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Rhode Island', capital: 'Providence' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'South Carolina', capital: 'Columbia' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'South Dakota', capital: 'Pierre' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Tennessee', capital: 'Nashville' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Texas', capital: 'Austin' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Utah', capital: 'Salt Lake City' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Vermont', capital: 'Montpelier' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Virginia', capital: 'Richmond' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Washington', capital: 'Olympia' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'West Virginia', capital: 'Charleston' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Wisconsin', capital: 'Madison' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    { name: 'Wyoming', capital: 'Cheyenne' },
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  ];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  statesObservable = new BehaviorSubject(this.states);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  indexTrackFn = (index: number) => index;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  nameTrackFn = (_: number, item: State) => item.name;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  constructor() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.emitData();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  ngOnInit() {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  emitData() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    const data = this.observableData.value.concat([50]);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.observableData.next(data);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  sortBy(prop: 'name' | 'capital') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    this.statesObservable.next(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      this.states.map(s => ({ ...s })).sort((a, b) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        const aProp = a[prop],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -          bProp = b[prop];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        if (aProp < bProp) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -          return -1;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        } else if (aProp > bProp) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -          return 1;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -        return 0;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -      }),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -    );
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/SynthesisVoice.html b/docs/interfaces/SynthesisVoice.html deleted file mode 100644 index c5bd16d0b..000000000 --- a/docs/interfaces/SynthesisVoice.html +++ /dev/null @@ -1,335 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - libs/chat-box/src/lib/state/chat-box.actions.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - pitch -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - pitch: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - rate -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - rate: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - voice -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - voice: SpeechSynthesisVoice - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : SpeechSynthesisVoice - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - volume -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - volume: number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - Type : number - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      import { ChatMessage, Subject } from '../chat-message.model';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export interface SynthesisVoice {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  voice: SpeechSynthesisVoice;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  volume: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  rate: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  pitch: number;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -// Actions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class FetchConversations {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] FetchConversations';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class CreateNewConversation {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] CreateNewConversation';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class SwitchConversation {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] SwitchConversation';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class SaveConversation {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] SaveConversation';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class CloseConversation {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] CloseConversation';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(public readonly payload: { conversationId: string }) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class AddMessage {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] AddMessage';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(public readonly payload: { conversationId: string; message: ChatMessage<string> }) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class StartVoiceCommand {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] StartVoiceCommand';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class SendMessage {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] SendMessage';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(public readonly payload: { message: string }) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class SendTyping {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] Typing';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  constructor(public readonly payload: Subject) {}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -export class MarkAsRead {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -  static readonly type = '[ChatBox] MarkAsRead';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/TreeConfig.html b/docs/interfaces/TreeConfig.html deleted file mode 100644 index de9d3b4dd..000000000 --- a/docs/interfaces/TreeConfig.html +++ /dev/null @@ -1,411 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - libs/tree/src/lib/tree.model.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - nodeComparatorFn -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - nodeComparatorFn: Comparator<T> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Type : Comparator<T> - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        import { Comparator, mergeSort } from './merge-sort';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -import { findInsertIndex } from './find-insert-index';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export { Comparator } from './merge-sort';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * // Usage examples
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * this._tree.traverseDFS((node)=> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *    console.log(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * this._tree.traverseBFS((node)=> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *    console.log(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * const level4 = this._tree.findByPredicateBFS((node) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *    return node.link === "/level1/level2/level3/level4"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * console.log(level4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * const level4Parents = this.getAllParents(level4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * console.log(level4Parents)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * for(const node of this._tree) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *   if(node.link ==="/admin/overview") {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *     console.log("found");
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *     break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - *   }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - * }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export enum TraversalStrategy {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  PreOrder,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  PostOrder,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface TreeNode<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  parent?: T;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  children?: T[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  [key: string]: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export interface TreeConfig<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  nodeComparatorFn?: Comparator<T>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -export class Tree<T extends TreeNode<T>> implements Iterable<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  config: TreeConfig<T> = {};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  root: T;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  constructor(root: T, config?: TreeConfig<T>) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    this.root = this.addParentLinks(root);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  private addParentLinks(parent: T): T {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (parent.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      // mergeSort children
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (this.config && this.config.nodeComparatorFn) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        parent.children = mergeSort<any>(parent.children, this.config.nodeComparatorFn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      // add a parent link to a child structure
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      parent.children.forEach(d => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        // each child gets marked with a parent
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        d.parent = parent;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        // then marks its own children with itself
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this.addParentLinks(d);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      parent.children = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return parent;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  isRoot(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return node.parent === undefined;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  isLeaf(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return node.children.length === 0;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  add(node: T, toNode: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const parent = toNode ? this.findBFS(toNode) : null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (parent) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      // TODO: Find the index to insert the child using findInsertIndex()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      parent.children.push(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (!this.root) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this.root = node;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        return 'Root node is already assigned';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  remove(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (this.root === node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this.root = null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      const _node = queue.shift();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      for (let i = 0; i < _node.children.length; i++) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        if (_node.children[i] === node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          _node.children.splice(i, 1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -          queue.push(_node.children[i]);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  contains(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return !!this.findBFS(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  findBFS(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      // tslint:disable:no-non-null-assertion
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      const _node = queue.shift()!;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (_node === node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        return _node;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      for (const child of _node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        queue.push(child);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  findByPredicateBFS(predicate: (node: T) => boolean): T {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      const _node = queue.shift()!;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (predicate(_node)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        return _node;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      for (const child of _node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        queue.push(child);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  findByPredicateDFS(predicate: (node: T) => boolean, strategy: TraversalStrategy = TraversalStrategy.PreOrder): T {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    // TODO
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  private _preOrder(node: T, fn: (node: T) => any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (fn) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        fn(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      for (const child of node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this._preOrder(child, fn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  private _postOrder(node: T, fn: (node: T) => any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if (node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      for (const child of node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        this._postOrder(child, fn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (fn) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        fn(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  traverseDFS(fn: (node: T) => any, method: TraversalStrategy = TraversalStrategy.PreOrder) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const current = this.root;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    if ((method = TraversalStrategy.PreOrder)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this._postOrder(current, fn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      this._preOrder(current, fn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  traverseBFS(fn: (node: T) => any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      const node = queue.shift();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      if (fn) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        fn(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      for (const child of node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        queue.push(child);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  *[Symbol.iterator](): IterableIterator<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      const node = queue.shift()!;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      yield node;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      for (const child of node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -        queue.push(child);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  getAllParents(item: T): T[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    const parents: T[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    parents.unshift(item);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    let parent = item.parent;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    while (parent) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      parents.unshift(parent);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -      parent = parent.parent;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -    return parents;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/interfaces/TreeNode.html b/docs/interfaces/TreeNode.html deleted file mode 100644 index 7bcf43549..000000000 --- a/docs/interfaces/TreeNode.html +++ /dev/null @@ -1,467 +0,0 @@ - - - - - - ngx-starter-kit documentation - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - libs/tree/src/lib/tree.model.ts -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Index

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Indexable

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - [key: string]: any - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - children -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - children: T[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : T[] - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - parent -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - parent: T - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Type : T - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - Optional -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          import { Comparator, mergeSort } from './merge-sort';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -import { findInsertIndex } from './find-insert-index';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export { Comparator } from './merge-sort';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -/**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * // Usage examples
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * this._tree.traverseDFS((node)=> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *    console.log(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * this._tree.traverseBFS((node)=> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *    console.log(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * const level4 = this._tree.findByPredicateBFS((node) => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *    return node.link === "/level1/level2/level3/level4"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * console.log(level4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * const level4Parents = this.getAllParents(level4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * console.log(level4Parents)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * for(const node of this._tree) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *   if(node.link ==="/admin/overview") {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *     console.log("found");
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *     break;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - *   }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - * }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - */
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export enum TraversalStrategy {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  PreOrder,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  PostOrder,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface TreeNode<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  parent?: T;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  children?: T[];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  [key: string]: any;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export interface TreeConfig<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  nodeComparatorFn?: Comparator<T>;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -export class Tree<T extends TreeNode<T>> implements Iterable<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  config: TreeConfig<T> = {};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  root: T;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  constructor(root: T, config?: TreeConfig<T>) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    this.root = this.addParentLinks(root);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  private addParentLinks(parent: T): T {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (parent.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      // mergeSort children
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (this.config && this.config.nodeComparatorFn) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        parent.children = mergeSort<any>(parent.children, this.config.nodeComparatorFn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      // add a parent link to a child structure
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      parent.children.forEach(d => {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        // each child gets marked with a parent
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        d.parent = parent;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        // then marks its own children with itself
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        this.addParentLinks(d);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      });
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      parent.children = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return parent;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  isRoot(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return node.parent === undefined;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  isLeaf(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return node.children.length === 0;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  add(node: T, toNode: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const parent = toNode ? this.findBFS(toNode) : null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (parent) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      // TODO: Find the index to insert the child using findInsertIndex()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      parent.children.push(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (!this.root) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        this.root = node;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        return 'Root node is already assigned';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  remove(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (this.root === node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      this.root = null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      const _node = queue.shift();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      for (let i = 0; i < _node.children.length; i++) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        if (_node.children[i] === node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          _node.children.splice(i, 1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -          queue.push(_node.children[i]);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  contains(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return !!this.findBFS(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  findBFS(node: T) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      // tslint:disable:no-non-null-assertion
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      const _node = queue.shift()!;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (_node === node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        return _node;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      for (const child of _node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        queue.push(child);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  findByPredicateBFS(predicate: (node: T) => boolean): T {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      const _node = queue.shift()!;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (predicate(_node)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        return _node;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      for (const child of _node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        queue.push(child);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  findByPredicateDFS(predicate: (node: T) => boolean, strategy: TraversalStrategy = TraversalStrategy.PreOrder): T {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    // TODO
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return null;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  private _preOrder(node: T, fn: (node: T) => any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (fn) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        fn(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      for (const child of node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        this._preOrder(child, fn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  private _postOrder(node: T, fn: (node: T) => any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if (node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      for (const child of node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        this._postOrder(child, fn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (fn) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        fn(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  traverseDFS(fn: (node: T) => any, method: TraversalStrategy = TraversalStrategy.PreOrder) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const current = this.root;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    if ((method = TraversalStrategy.PreOrder)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      this._postOrder(current, fn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      this._preOrder(current, fn);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  traverseBFS(fn: (node: T) => any) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      const node = queue.shift();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      if (fn) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        fn(node);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      for (const child of node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        queue.push(child);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  *[Symbol.iterator](): IterableIterator<T> {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const queue = [this.root];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    while (queue.length) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      const node = queue.shift()!;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      yield node;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      for (const child of node.children) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -        queue.push(child);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  getAllParents(item: T): T[] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    const parents: T[] = [];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    parents.unshift(item);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    let parent = item.parent;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    while (parent) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      parents.unshift(parent);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -      parent = parent.parent;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -    return parents;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - - - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          result-matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            No results matching ""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/js/compodoc.js b/docs/js/compodoc.js deleted file mode 100644 index 8cc41d335..000000000 --- a/docs/js/compodoc.js +++ /dev/null @@ -1,14 +0,0 @@ -var compodoc = { - EVENTS: { - READY: 'compodoc.ready', - SEARCH_READY: 'compodoc.search.ready' - } -}; - -Object.assign( compodoc, EventDispatcher.prototype ); - -document.addEventListener('DOMContentLoaded', function() { - compodoc.dispatchEvent({ - type: compodoc.EVENTS.READY - }); -}); diff --git a/docs/js/lazy-load-graphs.js b/docs/js/lazy-load-graphs.js deleted file mode 100644 index 2ef47cab9..000000000 --- a/docs/js/lazy-load-graphs.js +++ /dev/null @@ -1,44 +0,0 @@ -document.addEventListener('DOMContentLoaded', function() { - var lazyGraphs = [].slice.call(document.querySelectorAll('[lazy]')); - var active = false; - - var lazyLoad = function() { - if (active === false) { - active = true; - - setTimeout(function() { - lazyGraphs.forEach(function(lazyGraph) { - if ( - lazyGraph.getBoundingClientRect().top <= window.innerHeight && - lazyGraph.getBoundingClientRect().bottom >= 0 && - getComputedStyle(lazyGraph).display !== 'none' - ) { - lazyGraph.data = lazyGraph.getAttribute('lazy'); - lazyGraph.removeAttribute('lazy'); - - lazyGraphs = lazyGraphs.filter(function(image) { return image !== lazyGraph}); - - if (lazyGraphs.length === 0) { - document.removeEventListener('scroll', lazyLoad); - window.removeEventListener('resize', lazyLoad); - window.removeEventListener('orientationchange', lazyLoad); - } - } - }); - - active = false; - }, 200); - } - }; - - // initial load - lazyLoad(); - - var container = document.querySelector('.container-fluid.modules'); - if (container) { - container.addEventListener('scroll', lazyLoad); - window.addEventListener('resize', lazyLoad); - window.addEventListener('orientationchange', lazyLoad); - } - -}); diff --git a/docs/js/libs/EventDispatcher.js b/docs/js/libs/EventDispatcher.js deleted file mode 100644 index f112877d7..000000000 --- a/docs/js/libs/EventDispatcher.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -var EventDispatcher=function(){};Object.assign(EventDispatcher.prototype,{addEventListener:function(i,t){void 0===this._listeners&&(this._listeners={});var e=this._listeners;void 0===e[i]&&(e[i]=[]),-1===e[i].indexOf(t)&&e[i].push(t)},hasEventListener:function(i,t){if(void 0===this._listeners)return!1;var e=this._listeners;return void 0!==e[i]&&-1!==e[i].indexOf(t)},removeEventListener:function(i,t){if(void 0!==this._listeners){var e=this._listeners[i];if(void 0!==e){var s=e.indexOf(t);-1!==s&&e.splice(s,1)}}},dispatchEvent:function(i){if(void 0!==this._listeners){var t=this._listeners[i.type];if(void 0!==t){i.target=this;var e=[],s=0,n=t.length;for(s=0;s1?t[t.length-1]:void 0:t[0]},this.getActiveContent=function(){var t=this.getActiveTab().getElementsByTagName("A")[0].getAttribute("href").replace("#","");return t&&document.getElementById("c-"+t)},this.tab.addEventListener("click",this.handle,!1)},d=document.querySelectorAll("[data-toggle='tab'], [data-toggle='pill']"),u=0,h=d.length;u0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,o.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,o.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=a})},function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return r(t,e,n);if(c.nodeList(t))return i(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function i(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return u(document.body,t,e,n)}var c=n(6),u=n(5);t.exports=o},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){r.off(t,o),e.apply(n,arguments)}var r=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;for(o;o0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,f.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(s.default);t.exports=p})},function(t,e){function n(t,e){for(;t&&t.nodeType!==o;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var o=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}t.exports=n},function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function r(t,e,n,r,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return o(t,e,n,r,i)}))}function i(t,e,n,o){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&o.call(t,n)}}var a=n(4);t.exports=r},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}t.exports=n}])}); \ No newline at end of file diff --git a/docs/js/libs/custom-elements-es5-adapter.js b/docs/js/libs/custom-elements-es5-adapter.js deleted file mode 100644 index 3a694b8f7..000000000 --- a/docs/js/libs/custom-elements-es5-adapter.js +++ /dev/null @@ -1,15 +0,0 @@ -/** -@license @nocompile -Copyright (c) 2018 The Polymer Project Authors. All rights reserved. -This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -Code distributed by Google as part of the polymer project is also -subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt -*/ -(function () { - 'use strict'; - - (function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.hasOwnProperty('polyfillWrapFlushCallback'))return;const a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)},HTMLElement.prototype=a.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,a);})(); - -}()); diff --git a/docs/js/libs/custom-elements.min.js b/docs/js/libs/custom-elements.min.js deleted file mode 100644 index 9b64a23ca..000000000 --- a/docs/js/libs/custom-elements.min.js +++ /dev/null @@ -1,38 +0,0 @@ -(function(){ - 'use strict';var h=new function(){};var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function m(b){var a=aa.has(b);b=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(b);return!a&&b}function n(b){var a=b.isConnected;if(void 0!==a)return a;for(;b&&!(b.__CE_isImportDocument||b instanceof Document);)b=b.parentNode||(window.ShadowRoot&&b instanceof ShadowRoot?b.host:void 0);return!(!b||!(b.__CE_isImportDocument||b instanceof Document))} - function p(b,a){for(;a&&a!==b&&!a.nextSibling;)a=a.parentNode;return a&&a!==b?a.nextSibling:null} - function t(b,a,c){c=c?c:new Set;for(var d=b;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;a(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)t(d,a,c);d=p(b,e);continue}else if("template"===f){d=p(b,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)t(e,a,c)}d=d.firstChild?d.firstChild:p(b,d)}}function u(b,a,c){b[a]=c};function v(){this.a=new Map;this.s=new Map;this.f=[];this.b=!1}function ba(b,a,c){b.a.set(a,c);b.s.set(c.constructor,c)}function w(b,a){b.b=!0;b.f.push(a)}function x(b,a){b.b&&t(a,function(a){return y(b,a)})}function y(b,a){if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var c=0;ct?1:n>=t?0:NaN}function r(n){return null===n?NaN:+n}function i(n){return!isNaN(n)}function u(n){return{left:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;n(t[u],e)<0?r=u+1:i=u}return r},right:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;n(t[u],e)>0?i=u:r=u+1}return r}}}function o(n){return n.length}function a(n){for(var t=1;n*t%1;)t*=10;return t}function l(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function c(){this._=Object.create(null)}function f(n){return(n+="")===ho||n[0]===po?po+n:n}function s(n){return(n+="")[0]===po?n.slice(1):n}function h(n){return f(n)in this._}function p(n){return(n=f(n))in this._&&delete this._[n]}function g(){var n=[];for(var t in this._)n.push(s(t));return n}function d(){var n=0;for(var t in this._)++n;return n}function v(){for(var n in this._)return!1;return!0}function y(){this._=Object.create(null)}function m(n){return n}function x(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function M(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=go.length;e=t&&(t=i+1);!(o=a[t])&&++t0&&(n=n.slice(0,a));var c=ko.get(n);return c&&(n=c,l=B),a?t?i:r:t?_:u}function $(n,t){return function(e){var r=to.event;to.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{to.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Eo,i="click"+r,u=to.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==No&&(No=!("onselectstart"in e)&&M(e.style,"userSelect")),No){var o=n(e).style,a=o[No];o[No]="none"}return function(n){if(u.on(r,null),No&&(o[No]=a),n){var t=function(){u.on(i,null)};u.on(i,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();if(Ao<0){var u=t(n);if(u.scrollX||u.scrollY){var o=(r=to.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Ao=!(o.f||o.e),r.remove()}}return Ao?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}function G(){return to.event.changedTouches[0].identifier}function K(n){return n>0?1:n<0?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nn(n){return n>1?0:n<-1?Lo:Math.acos(n)}function tn(n){return n>1?Ro:n<-1?-Ro:Math.asin(n)}function en(n){return((n=Math.exp(n))-1/n)/2}function rn(n){return((n=Math.exp(n))+1/n)/2}function un(n){return((n=Math.exp(2*n))-1)/(n+1)}function on(n){return(n=Math.sin(n/2))*n}function an(){}function ln(n,t,e){return this instanceof ln?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof ln?new ln(n.h,n.s,n.l):bn(""+n,wn,ln):new ln(n,t,e)}function cn(n,t,e){function r(n){return n>360?n-=360:n<0&&(n+=360),n<60?u+(o-u)*n/60:n<180?o:n<240?u+(o-u)*(240-n)/60:u}function i(n){return Math.round(255*r(n))}var u,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:t<0?0:t>1?1:t,e=e<0?0:e>1?1:e,o=e<=.5?e*(1+t):e+t-e*t,u=2*e-o,new mn(i(n+120),i(n),i(n-120))}function fn(n,t,e){return this instanceof fn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof fn?new fn(n.h,n.c,n.l):n instanceof hn?gn(n.l,n.a,n.b):gn((n=Sn((n=to.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new fn(n,t,e)}function sn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new hn(e,Math.cos(n*=Do)*t,Math.sin(n)*t)}function hn(n,t,e){return this instanceof hn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof hn?new hn(n.l,n.a,n.b):n instanceof fn?sn(n.h,n.c,n.l):Sn((n=mn(n)).r,n.g,n.b):new hn(n,t,e)}function pn(n,t,e){var r=(n+16)/116,i=r+t/500,u=r-e/200;return i=dn(i)*Zo,r=dn(r)*Vo,u=dn(u)*Xo,new mn(yn(3.2404542*i-1.5371385*r-.4985314*u),yn(-.969266*i+1.8760108*r+.041556*u),yn(.0556434*i-.2040259*r+1.0572252*u))}function gn(n,t,e){return n>0?new fn(Math.atan2(e,t)*Po,Math.sqrt(t*t+e*e),n):new fn(NaN,NaN,n)}function dn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function vn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function yn(n){return Math.round(255*(n<=.00304?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function mn(n,t,e){return this instanceof mn?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof mn?new mn(n.r,n.g,n.b):bn(""+n,mn,cn):new mn(n,t,e)}function xn(n){return new mn(n>>16,n>>8&255,255&n)}function Mn(n){return xn(n)+""}function _n(n){return n<16?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function bn(n,t,e){var r,i,u,o=0,a=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(Nn(i[0]),Nn(i[1]),Nn(i[2]))}return(u=Wo.get(n))?t(u.r,u.g,u.b):(null==n||"#"!==n.charAt(0)||isNaN(u=parseInt(n.slice(1),16))||(4===n.length?(o=(3840&u)>>4,o|=o>>4,a=240&u,a|=a>>4,l=15&u,l|=l<<4):7===n.length&&(o=(16711680&u)>>16,a=(65280&u)>>8,l=255&u)),t(o,a,l))}function wn(n,t,e){var r,i,u=Math.min(n/=255,t/=255,e/=255),o=Math.max(n,t,e),a=o-u,l=(o+u)/2;return a?(i=l<.5?a/(o+u):a/(2-o-u),r=n==o?(t-e)/a+(t0&&l<1?0:r),new ln(r,i,l)}function Sn(n,t,e){var r=vn((.4124564*(n=kn(n))+.3575761*(t=kn(t))+.1804375*(e=kn(e)))/Zo),i=vn((.2126729*n+.7151522*t+.072175*e)/Vo);return hn(116*i-16,500*(r-i),200*(i-vn((.0193339*n+.119192*t+.9503041*e)/Xo)))}function kn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Nn(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function En(n){return"function"==typeof n?n:function(){return n}}function An(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Cn(t,e,n,r)}}function Cn(n,t,e,r){function i(){var n,t=l.status;if(!t&&Ln(l)||t>=200&&t<300||304===t){try{n=e.call(u,l)}catch(n){return void o.error.call(u,n)}o.load.call(u,n)}else o.error.call(u,l)}var u={},o=to.dispatch("beforesend","progress","load","error"),a={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(n)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(n){var t=to.event;to.event=n;try{o.progress.call(u,l)}finally{to.event=t}},u.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",u)},u.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",u):t},u.responseType=function(n){return arguments.length?(c=n,u):c},u.response=function(n){return e=n,u},["get","post"].forEach(function(n){u[n]=function(){return u.send.apply(u,[n].concat(ro(arguments)))}}),u.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),l.setRequestHeader)for(var f in a)l.setRequestHeader(f,a[f]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=c&&(l.responseType=c),null!=i&&u.on("error",i).on("load",function(n){i(null,n)}),o.beforesend.call(u,l),l.send(null==r?null:r),u},u.abort=function(){return l.abort(),u},to.rebind(u,o,"on"),null==r?u:u.get(zn(r))}function zn(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function Ln(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qn(n,t,e){var r=arguments.length;r<2&&(t=0),r<3&&(e=Date.now());var i={c:n,t:e+t,n:null};return Go?Go.n=i:Jo=i,Go=i,Ko||(Qo=clearTimeout(Qo),Ko=1,na(Tn)),i}function Tn(){var n=Rn(),t=Dn()-n;t>24?(isFinite(t)&&(clearTimeout(Qo),Qo=setTimeout(Tn,t)),Ko=0):(Ko=1,na(Tn))}function Rn(){for(var n=Date.now(),t=Jo;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function Dn(){for(var n,t=Jo,e=1/0;t;)t.c?(t.t8?function(n){return n/e}:function(n){return n*e},symbol:n}}function Un(n){var t=n.decimal,e=n.thousands,r=n.grouping,i=n.currency,u=r&&e?function(n,t){for(var i=n.length,u=[],o=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>t&&(a=Math.max(1,t-l)),u.push(n.substring(i-=a,i+a)),!((l+=a+1)>t));)a=r[o=(o+1)%r.length];return u.reverse().join(e)}:m;return function(n){var e=ea.exec(n),r=e[1]||" ",o=e[2]||">",a=e[3]||"-",l=e[4]||"",c=e[5],f=+e[6],s=e[7],h=e[8],p=e[9],g=1,d="",v="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),p){case"n":s=!0,p="g";break;case"%":g=100,v="%",p="f";break;case"p":g=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(d="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":g=-1,p="r"}"$"===l&&(d=i[0],v=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=ra.get(p)||Fn;var x=c&&s;return function(n){var e=v;if(y&&n%1)return"";var i=n<0||0===n&&1/n<0?(n=-n,"-"):"-"===a?"":a;if(g<0){var l=to.formatPrefix(n,h);n=l.scale(n),e=l.symbol+v}else n*=g;var M,_,b=(n=p(n,h)).lastIndexOf(".");if(b<0){var w=m?n.lastIndexOf("e"):-1;w<0?(M=n,_=""):(M=n.substring(0,w),_=n.substring(w))}else M=n.substring(0,b),_=t+n.substring(b+1);!c&&s&&(M=u(M,1/0));var S=d.length+M.length+_.length+(x?0:i.length),k=S"===o?k+i+n:"^"===o?k.substring(0,S>>=1)+i+n+k.substring(S):i+(x?n:k+n))+e}}}function Fn(n){return n+""}function Hn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function On(n,t,e){function r(t){var e=n(t),r=u(e,1);return t-e1)for(;o=c)return-1;if(37===(i=t.charCodeAt(a++))){if(o=t.charAt(a++),!(u=C[o in aa?t.charAt(a++):o])||(r=u(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){b.lastIndex=0;var r=b.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){M.lastIndex=0;var r=M.exec(t.slice(e));return r?(n.w=_.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){N.lastIndex=0;var r=N.exec(t.slice(e));return r?(n.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,r){return e(n,A.c.toString(),t,r)}function l(n,t,r){return e(n,A.x.toString(),t,r)}function c(n,t,r){return e(n,A.X.toString(),t,r)}function f(n,t,e){var r=x.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var s=n.dateTime,h=n.date,p=n.time,g=n.periods,d=n.days,v=n.shortDays,y=n.months,m=n.shortMonths;t.utc=function(n){function e(n){try{var t=new(ua=Hn);return t._=n,r(t)}finally{ua=Date}}var r=t(n);return e.parse=function(n){try{ua=Hn;var t=r.parse(n);return t&&t._}finally{ua=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ct;var x=to.map(),M=Vn(d),_=Xn(d),b=Vn(v),w=Xn(v),S=Vn(y),k=Xn(y),N=Vn(m),E=Xn(m);g.forEach(function(n,t){x.set(n.toLowerCase(),t)});var A={a:function(n){return v[n.getDay()]},A:function(n){return d[n.getDay()]},b:function(n){return m[n.getMonth()]},B:function(n){return y[n.getMonth()]},c:t(s),d:function(n,t){return Zn(n.getDate(),t,2)},e:function(n,t){return Zn(n.getDate(),t,2)},H:function(n,t){return Zn(n.getHours(),t,2)},I:function(n,t){return Zn(n.getHours()%12||12,t,2)},j:function(n,t){return Zn(1+ia.dayOfYear(n),t,3)},L:function(n,t){return Zn(n.getMilliseconds(),t,3)},m:function(n,t){return Zn(n.getMonth()+1,t,2)},M:function(n,t){return Zn(n.getMinutes(),t,2)},p:function(n){return g[+(n.getHours()>=12)]},S:function(n,t){return Zn(n.getSeconds(),t,2)},U:function(n,t){return Zn(ia.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Zn(ia.mondayOfYear(n),t,2)},x:t(h),X:t(p),y:function(n,t){return Zn(n.getFullYear()%100,t,2)},Y:function(n,t){return Zn(n.getFullYear()%1e4,t,4)},Z:at,"%":function(){return"%"}},C={a:r,A:i,b:u,B:o,c:a,d:tt,e:tt,H:rt,I:rt,j:et,L:ot,m:nt,M:it,p:f,S:ut,U:Bn,w:$n,W:Wn,x:l,X:c,y:Gn,Y:Jn,Z:Kn,"%":lt};return t}function Zn(n,t,e){var r=n<0?"-":"",i=(r?-n:n)+"",u=i.length;return r+(u68?1900:2e3)}function nt(n,t,e){la.lastIndex=0;var r=la.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function tt(n,t,e){la.lastIndex=0;var r=la.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function et(n,t,e){la.lastIndex=0;var r=la.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function rt(n,t,e){la.lastIndex=0;var r=la.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function it(n,t,e){la.lastIndex=0;var r=la.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function ut(n,t,e){la.lastIndex=0;var r=la.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function ot(n,t,e){la.lastIndex=0;var r=la.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function at(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=so(t)/60|0,i=so(t)%60;return e+Zn(r,"0",2)+Zn(i,"0",2)}function lt(n,t,e){ca.lastIndex=0;var r=ca.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ct(n){for(var t=n.length,e=-1;++e=0?1:-1,a=o*e,l=Math.cos(t),c=Math.sin(t),f=u*c,s=i*l+f*Math.cos(a),h=f*o*Math.sin(a);da.add(Math.atan2(h,s)),r=n,i=l,u=c}var t,e,r,i,u;va.point=function(o,a){va.point=n,r=(t=o)*Do,i=Math.cos(a=(e=a)*Do/2+Lo/4),u=Math.sin(a)},va.lineEnd=function(){n(t,e)}}function vt(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function yt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function mt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function xt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function Mt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function _t(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function bt(n){return[Math.atan2(n[1],n[0]),tn(n[2])]}function wt(n,t){return so(n[0]-t[0])=0;--a)i.point((s=f[a])[0],s[1]);else r(p.x,p.p.x,-1,i);p=p.p}f=(p=p.o).z,g=!g}while(!p.v);i.lineEnd()}}}function qt(n){if(t=n.length){for(var t,e,r=0,i=n[0];++r0){for(_||(u.polygonStart(),_=!0),u.lineStart();++o1&&2&t&&e.push(e.pop().concat(e.shift())),p.push(e.filter(Dt))}var p,g,d,v=t(u),y=i.invert(r[0],r[1]),m={point:o,lineStart:l,lineEnd:c,polygonStart:function(){m.point=f,m.lineStart=s,m.lineEnd=h,p=[],g=[]},polygonEnd:function(){m.point=o,m.lineStart=l,m.lineEnd=c,p=to.merge(p);var n=Ot(y,g);p.length?(_||(u.polygonStart(),_=!0),Lt(p,jt,n,e,u)):n&&(_||(u.polygonStart(),_=!0),u.lineStart(),e(null,null,1,u),u.lineEnd()),_&&(u.polygonEnd(),_=!1),p=g=null},sphere:function(){u.polygonStart(),u.lineStart(),e(null,null,1,u),u.lineEnd(),u.polygonEnd()}},x=Pt(),M=t(x),_=!1;return m}}function Dt(n){return n.length>1}function Pt(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:_,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function jt(n,t){return((n=n.x)[0]<0?n[1]-Ro-Co:Ro-n[1])-((t=t.x)[0]<0?t[1]-Ro-Co:Ro-t[1])}function Ut(n){var t,e=NaN,r=NaN,i=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(u,o){var a=u>0?Lo:-Lo,l=so(u-e);so(l-Lo)0?Ro:-Ro),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(a,r),n.point(u,r),t=0):i!==a&&l>=Lo&&(so(e-i)Co?Math.atan((Math.sin(t)*(u=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(t))*Math.sin(n))/(i*u*o)):(t+r)/2}function Ht(n,t,e,r){var i;if(null==n)i=e*Ro,r.point(-Lo,i),r.point(0,i),r.point(Lo,i),r.point(Lo,0),r.point(Lo,-i),r.point(0,-i),r.point(-Lo,-i),r.point(-Lo,0),r.point(-Lo,i);else if(so(n[0]-t[0])>Co){var u=n[0]=0?1:-1,w=b*_,S=w>Lo,k=g*x;if(da.add(Math.atan2(k*b*Math.sin(w),d*M+k*Math.cos(w))),u+=S?_+b*qo:_,S^h>=e^y>=e){var N=mt(vt(s),vt(n));_t(N);var E=mt(i,N);_t(E);var A=(S^_>=0?-1:1)*tn(E[2]);(r>A||r===A&&(N[0]||N[1]))&&(o+=S^_>=0?1:-1)}if(!v++)break;h=y,g=x,d=M,s=n}}return(u<-Co||uu}function e(n){var e,u,l,c,f;return{lineStart:function(){c=l=!1,f=1},point:function(s,h){var p,g=[s,h],d=t(s,h),v=o?d?0:i(s,h):d?i(s+(s<0?Lo:-Lo),h):0;if(!e&&(c=l=d)&&n.lineStart(),d!==l&&(p=r(e,g),(wt(e,p)||wt(g,p))&&(g[0]+=Co,g[1]+=Co,d=t(g[0],g[1]))),d!==l)f=0,d?(n.lineStart(),p=r(g,e),n.point(p[0],p[1])):(p=r(e,g),n.point(p[0],p[1]),n.lineEnd()),e=p;else if(a&&e&&o^d){var y;v&u||!(y=r(g,e,!0))||(f=0,o?(n.lineStart(),n.point(y[0][0],y[0][1]),n.point(y[1][0],y[1][1]),n.lineEnd()):(n.point(y[1][0],y[1][1]),n.lineEnd(),n.lineStart(),n.point(y[0][0],y[0][1])))}!d||e&&wt(e,g)||n.point(g[0],g[1]),e=g,l=d,u=v},lineEnd:function(){l&&n.lineEnd(),e=null},clean:function(){return f|(c&&l)<<1}}}function r(n,t,e){var r=[1,0,0],i=mt(vt(n),vt(t)),o=yt(i,i),a=i[0],l=o-a*a;if(!l)return!e&&n;var c=u*o/l,f=-u*a/l,s=mt(r,i),h=Mt(r,c);xt(h,Mt(i,f));var p=s,g=yt(h,p),d=yt(p,p),v=g*g-d*(yt(h,h)-1);if(!(v<0)){var y=Math.sqrt(v),m=Mt(p,(-g-y)/d);if(xt(m,h),m=bt(m),!e)return m;var x,M=n[0],_=t[0],b=n[1],w=t[1];_0^m[1]<(so(m[0]-M)Lo^(M<=m[0]&&m[0]<=_)){var E=Mt(p,(-g+y)/d);return xt(E,h),[m,bt(E)]}}}function i(t,e){var r=o?n:Lo-n,i=0;return t<-r?i|=1:t>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var u=Math.cos(n),o=u>0,a=so(u)>Co;return Rt(t,e,de(n,6*Do),o?[0,-n]:[-Lo,n-Lo])}function It(n,t,e,r){return function(i){var u,o=i.a,a=i.b,l=o.x,c=o.y,f=0,s=1,h=a.x-l,p=a.y-c;if(u=n-l,h||!(u>0)){if(u/=h,h<0){if(u0){if(u>s)return;u>f&&(f=u)}if(u=e-l,h||!(u<0)){if(u/=h,h<0){if(u>s)return;u>f&&(f=u)}else if(h>0){if(u0)){if(u/=p,p<0){if(u0){if(u>s)return;u>f&&(f=u)}if(u=r-c,p||!(u<0)){if(u/=p,p<0){if(u>s)return;u>f&&(f=u)}else if(p>0){if(u0&&(i.a={x:l+f*h,y:c+f*p}),s<1&&(i.b={x:l+s*h,y:c+s*p}),i}}}}}}function Zt(n,t,e,r){function i(r,i){return so(r[0]-n)0?0:3:so(r[0]-e)0?2:1:so(r[1]-t)0?1:0:i>0?3:2}function u(n,t){return o(n.x,t.x)}function o(n,t){var e=i(n,1),r=i(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(a){function l(n){for(var t=0,e=v.length,r=n[1],i=0;ir&&Q(c,u,n)>0&&++t:u[1]<=r&&Q(c,u,n)<0&&--t,c=u;return 0!==t}function c(u,a,l,c){var f=0,s=0;if(null==u||(f=i(u,l))!==(s=i(a,l))||o(u,a)<0^l>0)do{c.point(0===f||3===f?n:e,f>1?r:t)}while((f=(f+l+4)%4)!==s);else c.point(a[0],a[1])}function f(i,u){return n<=i&&i<=e&&t<=u&&u<=r}function s(n,t){f(n,t)&&a.point(n,t)}function h(){C.point=g,v&&v.push(y=[]),S=!0,w=!1,_=b=NaN}function p(){d&&(g(m,x),M&&w&&E.rejoin(),d.push(E.buffer())),C.point=s,w&&a.lineEnd()}function g(n,t){var e=f(n=Math.max(-za,Math.min(za,n)),t=Math.max(-za,Math.min(za,t)));if(v&&y.push([n,t]),S)m=n,x=t,M=e,S=!1,e&&(a.lineStart(),a.point(n,t));else if(e&&w)a.point(n,t);else{var r={a:{x:_,y:b},b:{x:n,y:t}};A(r)?(w||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),k=!1):e&&(a.lineStart(),a.point(n,t),k=!1)}_=n,b=t,w=e}var d,v,y,m,x,M,_,b,w,S,k,N=a,E=Pt(),A=It(n,t,e,r),C={point:s,lineStart:h,lineEnd:p,polygonStart:function(){a=E,d=[],v=[],k=!0},polygonEnd:function(){a=N,d=to.merge(d);var t=l([n,r]),e=k&&t,i=d.length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),c(null,null,1,a),a.lineEnd()),i&&Lt(d,u,t,c,a),a.polygonEnd()),d=v=y=null}};return C}}function Vt(n){var t=0,e=Lo/3,r=ae(n),i=r(t,e);return i.parallels=function(n){return arguments.length?r(t=n[0]*Lo/180,e=n[1]*Lo/180):[t/Lo*180,e/Lo*180]},i}function Xt(n,t){function e(n,t){var e=Math.sqrt(u-2*i*Math.sin(t))/i;return[e*Math.sin(n*=i),o-e*Math.cos(n)]}var r=Math.sin(n),i=(r+Math.sin(t))/2,u=1+r*(2*i-r),o=Math.sqrt(u)/i;return e.invert=function(n,t){var e=o-t;return[Math.atan2(n,e)/i,tn((u-(n*n+e*e)*i*i)/(2*i))]},e}function $t(){function n(n,t){qa+=i*n-r*t,r=n,i=t}var t,e,r,i;ja.point=function(u,o){ja.point=n,t=r=u,e=i=o},ja.lineEnd=function(){n(t,e)}}function Bt(n,t){nDa&&(Da=n),tPa&&(Pa=t)}function Wt(){function n(n,t){o.push("M",n,",",t,u)}function t(n,t){o.push("M",n,",",t),a.point=e}function e(n,t){o.push("L",n,",",t)}function r(){a.point=n}function i(){o.push("Z")}var u=Jt(4.5),o=[],a={point:n,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=r,a.point=n},pointRadius:function(n){return u=Jt(n),a},result:function(){if(o.length){var n=o.join("");return o=[],n}}};return a}function Jt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Gt(n,t){xa+=n,Ma+=t,++_a}function Kt(){function n(n,r){var i=n-t,u=r-e,o=Math.sqrt(i*i+u*u);ba+=o*(t+n)/2,wa+=o*(e+r)/2,Sa+=o,Gt(t=n,e=r)}var t,e;Fa.point=function(r,i){Fa.point=n,Gt(t=r,e=i)}}function Qt(){Fa.point=Gt}function ne(){function n(n,t){var e=n-r,u=t-i,o=Math.sqrt(e*e+u*u);ba+=o*(r+n)/2,wa+=o*(i+t)/2,Sa+=o,ka+=(o=i*n-r*t)*(r+n),Na+=o*(i+t),Ea+=3*o,Gt(r=n,i=t)}var t,e,r,i;Fa.point=function(u,o){Fa.point=n,Gt(t=r=u,e=i=o)},Fa.lineEnd=function(){n(t,e)}}function te(n){function t(t,e){n.moveTo(t+o,e),n.arc(t,e,o,0,qo)}function e(t,e){n.moveTo(t,e),a.point=r}function r(t,e){n.lineTo(t,e)}function i(){a.point=t}function u(){n.closePath()}var o=4.5,a={point:t,lineStart:function(){a.point=e},lineEnd:i,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=i,a.point=t},pointRadius:function(n){return o=n,a},result:_};return a}function ee(n){function t(n){return(a?r:e)(n)}function e(t){return ue(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){x=NaN,S.point=u,t.lineStart()}function u(e,r){var u=vt([e,r]),o=n(e,r);i(x,M,m,_,b,w,x=o[0],M=o[1],m=e,_=u[0],b=u[1],w=u[2],a,t),t.point(x,M)}function o(){S.point=e,t.lineEnd()}function l(){r(),S.point=c,S.lineEnd=f}function c(n,t){u(s=n,h=t),p=x,g=M,d=_,v=b,y=w,S.point=u}function f(){i(x,M,m,_,b,w,p,g,s,d,v,y,a,t),S.lineEnd=o,o()}var s,h,p,g,d,v,y,m,x,M,_,b,w,S={point:e,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=l},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function i(t,e,r,a,l,c,f,s,h,p,g,d,v,y){var m=f-t,x=s-e,M=m*m+x*x;if(M>4*u&&v--){var _=a+p,b=l+g,w=c+d,S=Math.sqrt(_*_+b*b+w*w),k=Math.asin(w/=S),N=so(so(w)-1)u||so((m*z+x*L)/M-.5)>.3||a*p+l*g+c*d0&&16,t):Math.sqrt(u)},t}function re(n){var t=ee(function(t,e){return n([t*Po,e*Po])});return function(n){return le(t(n))}}function ie(n){this.stream=n}function ue(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function oe(n){return ae(function(){return n})()}function ae(n){function t(n){return n=a(n[0]*Do,n[1]*Do),[n[0]*h+l,c-n[1]*h]}function e(n){return(n=a.invert((n[0]-l)/h,(c-n[1])/h))&&[n[0]*Po,n[1]*Po]}function r(){a=Ct(o=se(y,x,M),u);var n=u(d,v);return l=p-n[0]*h,c=g+n[1]*h,i()}function i(){return f&&(f.valid=!1,f=null),t}var u,o,a,l,c,f,s=ee(function(n,t){return n=u(n,t),[n[0]*h+l,c-n[1]*h]}),h=150,p=480,g=250,d=0,v=0,y=0,x=0,M=0,_=Ca,b=m,w=null,S=null;return t.stream=function(n){return f&&(f.valid=!1),f=le(_(o,s(b(n)))),f.valid=!0,f},t.clipAngle=function(n){return arguments.length?(_=null==n?(w=n,Ca):Yt((w=+n)*Do),i()):w},t.clipExtent=function(n){return arguments.length?(S=n,b=n?Zt(n[0][0],n[0][1],n[1][0],n[1][1]):m,i()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(p=+n[0],g=+n[1],r()):[p,g]},t.center=function(n){return arguments.length?(d=n[0]%360*Do,v=n[1]%360*Do,r()):[d*Po,v*Po]},t.rotate=function(n){return arguments.length?(y=n[0]%360*Do,x=n[1]%360*Do,M=n.length>2?n[2]%360*Do:0,r()):[y*Po,x*Po,M*Po]},to.rebind(t,s,"precision"),function(){return u=n.apply(this,arguments),t.invert=u.invert&&e,r()}}function le(n){return ue(n,function(t,e){n.point(t*Do,e*Do)})}function ce(n,t){return[n,t]}function fe(n,t){return[n>Lo?n-qo:n<-Lo?n+qo:n,t]}function se(n,t,e){return n?t||e?Ct(pe(n),ge(t,e)):pe(n):t||e?ge(t,e):fe}function he(n){return function(t,e){return t+=n,[t>Lo?t-qo:t<-Lo?t+qo:t,e]}}function pe(n){var t=he(n);return t.invert=he(-n),t}function ge(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*r+a*i;return[Math.atan2(l*u-f*o,a*r-c*i),tn(f*u+l*o)]}var r=Math.cos(n),i=Math.sin(n),u=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*u-l*o;return[Math.atan2(l*u+c*o,a*r+f*i),tn(f*r-a*i)]},e}function de(n,t){var e=Math.cos(n),r=Math.sin(n);return function(i,u,o,a){var l=o*t;null!=i?(i=ve(e,i),u=ve(e,u),(o>0?iu)&&(i+=o*qo)):(i=n+o*qo,u=n-.5*l);for(var c,f=i;o>0?f>u:f0?t<-Ro+Co&&(t=-Ro+Co):t>Ro-Co&&(t=Ro-Co);var e=o/Math.pow(i(t),u);return[e*Math.sin(u*n),o-e*Math.cos(u*n)]}var r=Math.cos(n),i=function(n){return Math.tan(Lo/4+n/2)},u=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(i(t)/i(n)),o=r*Math.pow(i(n),u)/u;return u?(e.invert=function(n,t){var e=o-t,r=K(u)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/u,2*Math.atan(Math.pow(o/r,1/u))-Ro]},e):Ne}function ke(n,t){function e(n,t){var e=u-t;return[e*Math.sin(i*n),u-e*Math.cos(i*n)]}var r=Math.cos(n),i=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),u=r/i+n;return so(i)1&&Q(n[e[r-2]],n[e[r-1]],n[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function qe(n,t){return n[0]-t[0]||n[1]-t[1]}function Te(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Re(n,t,e,r){var i=n[0],u=e[0],o=t[0]-i,a=r[0]-u,l=n[1],c=e[1],f=t[1]-l,s=r[1]-c,h=(a*(l-c)-s*(i-u))/(s*o-a*f);return[i+h*o,l+h*f]}function De(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Pe(){rr(this),this.edge=this.site=this.circle=null}function je(n){var t=Qa.pop()||new Pe;return t.site=n,t}function Ue(n){Be(n),Ja.remove(n),Qa.push(n),rr(n)}function Fe(n){var t=n.circle,e=t.x,r=t.cy,i={x:e,y:r},u=n.P,o=n.N,a=[n];Ue(n);for(var l=u;l.circle&&so(e-l.circle.x)Co)a=a.L;else{if(!((i=u-Ye(a,o))>Co)){r>-Co?(t=a.P,e=a):i>-Co?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var l=je(n);if(Ja.insert(t,l),t||e){if(t===e)return Be(t),e=je(t.site),Ja.insert(l,e),l.edge=e.edge=Ke(t.site,l.site),$e(t),void $e(e);if(e){Be(t),Be(e);var c=t.site,f=c.x,s=c.y,h=n.x-f,p=n.y-s,g=e.site,d=g.x-f,v=g.y-s,y=2*(h*v-p*d),m=h*h+p*p,x=d*d+v*v,M={x:(v*m-p*x)/y+f,y:(h*x-d*m)/y+s};nr(e.edge,c,g,M),l.edge=Ke(c,n,null,M),e.edge=Ke(n,g,null,M),$e(t),$e(e)}else l.edge=Ke(t.site,l.site)}}function Oe(n,t){var e=n.site,r=e.x,i=e.y,u=i-t;if(!u)return r;var o=n.P;if(!o)return-1/0;var a=(e=o.site).x,l=e.y,c=l-t;if(!c)return a;var f=a-r,s=1/u-1/c,h=f/c;return s?(-h+Math.sqrt(h*h-2*s*(f*f/(-2*c)-l+c/2+i-u/2)))/s+r:(r+a)/2}function Ye(n,t){var e=n.N;if(e)return Oe(e,t);var r=n.site;return r.y===t?r.x:1/0}function Ie(n){this.site=n,this.edges=[]}function Ze(n){for(var t,e,r,i,u,o,a,l,c,f,s=n[0][0],h=n[1][0],p=n[0][1],g=n[1][1],d=Wa,v=d.length;v--;)if((u=d[v])&&u.prepare())for(l=(a=u.edges).length,o=0;oCo||so(i-e)>Co)&&(a.splice(o,0,new tr(Qe(u.site,f,so(r-s)Co?{x:s,y:so(t-s)Co?{x:so(e-g)Co?{x:h,y:so(t-h)Co?{x:so(e-p)=-zo)){var h=l*l+c*c,p=f*f+v*v,g=(v*h-c*p)/s,d=(l*p-f*h)/s,v=d+a,y=nl.pop()||new Xe;y.arc=n,y.site=i,y.x=g+o,y.y=v+Math.sqrt(g*g+d*d),y.cy=v,n.circle=y;for(var m=null,x=Ka._;x;)if(y.y=a)return;if(h>g){if(u){if(u.y>=c)return}else u={x:v,y:l};e={x:v,y:c}}else{if(u){if(u.y1)if(h>g){if(u){if(u.y>=c)return}else u={x:(l-i)/r,y:l};e={x:(c-i)/r,y:c}}else{if(u){if(u.y=a)return}else u={x:o,y:r*o+i};e={x:a,y:r*a+i}}else{if(u){if(u.xu||s>o||h=_)<<1|t>=M,w=b+4;bu&&(i=t.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:vr(e,r)})),u=rl.lastIndex;return u=0&&!(e=to.interpolators[r](n,t)););return e}function xr(n,t){var e,r=[],i=[],u=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;e=1?1:n(t)}}function _r(n){return function(t){return 1-n(1-t)}}function br(n){return function(t){return.5*(t<.5?n(2*t):2-n(2-2*t))}}function wr(n){return n*n}function Sr(n){return n*n*n}function kr(n){if(n<=0)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(n<.5?e:3*(n-t)+e-.75)}function Nr(n){return function(t){return Math.pow(t,n)}}function Er(n){return 1-Math.cos(n*Ro)}function Ar(n){return Math.pow(2,10*(n-1))}function Cr(n){return 1-Math.sqrt(1-n*n)}function zr(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/qo*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*qo/t)}}function Lr(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function qr(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Tr(n,t){n=to.hcl(n),t=to.hcl(t);var e=n.h,r=n.c,i=n.l,u=t.h-e,o=t.c-r,a=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(u)?(u=0,e=isNaN(e)?t.h:e):u>180?u-=360:u<-180&&(u+=360),function(n){return sn(e+u*n,r+o*n,i+a*n)+""}}function Rr(n,t){n=to.hsl(n),t=to.hsl(t);var e=n.h,r=n.s,i=n.l,u=t.h-e,o=t.s-r,a=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(u)?(u=0,e=isNaN(e)?t.h:e):u>180?u-=360:u<-180&&(u+=360),function(n){return cn(e+u*n,r+o*n,i+a*n)+""}}function Dr(n,t){n=to.lab(n),t=to.lab(t);var e=n.l,r=n.a,i=n.b,u=t.l-e,o=t.a-r,a=t.b-i;return function(n){return pn(e+u*n,r+o*n,i+a*n)+""}}function Pr(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function jr(n){var t=[n.a,n.b],e=[n.c,n.d],r=Fr(t),i=Ur(t,e),u=Fr(Hr(e,t,-i))||0;t[0]*e[1]180?t+=360:t-n>180&&(n+=360),r.push({i:e.push(Or(e)+"rotate(",null,")")-2,x:vr(n,t)})):t&&e.push(Or(e)+"rotate("+t+")")}function Zr(n,t,e,r){n!==t?r.push({i:e.push(Or(e)+"skewX(",null,")")-2,x:vr(n,t)}):t&&e.push(Or(e)+"skewX("+t+")")}function Vr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var i=e.push(Or(e)+"scale(",null,",",null,")");r.push({i:i-4,x:vr(n[0],t[0])},{i:i-2,x:vr(n[1],t[1])})}else 1===t[0]&&1===t[1]||e.push(Or(e)+"scale("+t+")")}function Xr(n,t){var e=[],r=[];return n=to.transform(n),t=to.transform(t),Yr(n.translate,t.translate,e,r),Ir(n.rotate,t.rotate,e,r),Zr(n.skew,t.skew,e,r),Vr(n.scale,t.scale,e,r),n=t=null,function(n){for(var t,i=-1,u=r.length;++i=0;)e.push(i[r])}function ui(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(u=n.children)&&(i=u.length))for(var i,u,o=-1;++oi&&(r=e,i=t);return r}function vi(n){return n.reduce(yi,0)}function yi(n,t){return n+t[1]}function mi(n,t){return xi(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function xi(n,t){for(var e=-1,r=+n[0],i=(n[1]-r)/t,u=[];++e<=t;)u[e]=i*e+r;return u}function Mi(n){return[to.min(n),to.max(n)]}function _i(n,t){return n.value-t.value}function bi(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function wi(n,t){n._pack_next=t,t._pack_prev=n}function Si(n,t){var e=t.x-n.x,r=t.y-n.y,i=n.r+t.r;return.999*i*i>e*e+r*r}function ki(n){function t(n){f=Math.min(n.x-n.r,f),s=Math.max(n.x+n.r,s),h=Math.min(n.y-n.r,h),p=Math.max(n.y+n.r,p)}if((e=n.children)&&(c=e.length)){var e,r,i,u,o,a,l,c,f=1/0,s=-1/0,h=1/0,p=-1/0;if(e.forEach(Ni),r=e[0],r.x=-r.r,r.y=0,t(r),c>1&&(i=e[1],i.x=i.r,i.y=0,t(i),c>2))for(Ci(r,i,u=e[2]),t(u),bi(r,u),r._pack_prev=u,bi(u,i),i=r._pack_next,o=3;o2?Yi:Fi,l=r?Br:$r;return o=i(n,t,l,e),a=i(t,n,l,mr),u}function u(n){return o(n)}var o,a;return u.invert=function(n){return a(n)},u.domain=function(t){return arguments.length?(n=t.map(Number),i()):n},u.range=function(n){return arguments.length?(t=n,i()):t},u.rangeRound=function(n){return u.range(n).interpolate(Pr)},u.clamp=function(n){return arguments.length?(r=n,i()):r},u.interpolate=function(n){return arguments.length?(e=n,i()):e},u.ticks=function(t){return $i(n,t)},u.tickFormat=function(t,e){return Bi(n,t,e)},u.nice=function(t){return Vi(n,t),i()},u.copy=function(){return Ii(n,t,e,r)},i()}function Zi(n,t){return to.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Vi(n,t){return Hi(n,Oi(Xi(n,t)[2])),Hi(n,Oi(Xi(n,t)[2])),n}function Xi(n,t){null==t&&(t=10);var e=ji(n),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),u=t/r*i;return u<=.15?i*=10:u<=.35?i*=5:u<=.75&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function $i(n,t){return to.range.apply(to,Xi(n,t))}function Bi(n,t,e){var r=Xi(n,t);if(e){var i=ea.exec(e);if(i.shift(),"s"===i[8]){var u=to.formatPrefix(Math.max(so(r[0]),so(r[1])));return i[7]||(i[7]="."+Wi(u.scale(r[2]))),i[8]="f",e=to.format(i.join("")),function(n){return e(u.scale(n))+u.symbol}}i[7]||(i[7]="."+Ji(i[8],r)),e=i.join("")}else e=",."+Wi(r[2])+"f";return to.format(e)}function Wi(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function Ji(n,t){var e=Wi(t[2]);return n in dl?Math.abs(e-Wi(Math.max(so(t[0]),so(t[1]))))+ +("e"!==n):e-2*("%"===n)}function Gi(n,t,e,r){function i(n){return(e?Math.log(n<0?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function u(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(i(t))}return o.invert=function(t){return u(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(i)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(i)),o):t},o.nice=function(){var t=Hi(r.map(i),e?Math:yl);return n.domain(t),r=t.map(u),o},o.ticks=function(){var n=ji(r),o=[],a=n[0],l=n[1],c=Math.floor(i(a)),f=Math.ceil(i(l)),s=t%1?2:t;if(isFinite(f-c)){if(e){for(;c0;h--)o.push(u(c)*h);for(c=0;o[c]l;f--);o=o.slice(c,f)}return o},o.tickFormat=function(n,e){if(!arguments.length)return vl;arguments.length<2?e=vl:"function"!=typeof e&&(e=to.format(e));var r=Math.max(1,t*n/o.ticks().length);return function(n){var o=n/u(Math.round(i(n)));return o*t0?a[e-1]:n[0],e0?0:1}function hu(n,t,e,r,i){var u=n[0]-t[0],o=n[1]-t[1],a=(i?r:-r)/Math.sqrt(u*u+o*o),l=a*o,c=-a*u,f=n[0]+l,s=n[1]+c,h=t[0]+l,p=t[1]+c,g=(f+h)/2,d=(s+p)/2,v=h-f,y=p-s,m=v*v+y*y,x=e-r,M=f*p-h*s,_=(y<0?-1:1)*Math.sqrt(Math.max(0,x*x*m-M*M)),b=(M*y-v*_)/m,w=(-M*v-y*_)/m,S=(M*y+v*_)/m,k=(-M*v+y*_)/m,N=b-g,E=w-d,A=S-g,C=k-d;return N*N+E*E>A*A+C*C&&(b=S,w=k),[[b-l,w-c],[b*e/x,w*e/x]]}function pu(n){function t(t){function o(){c.push("M",u(n(f),a))}for(var l,c=[],f=[],s=-1,h=t.length,p=En(e),g=En(r);++s1?n.join("L"):n+"Z"}function du(n){return n.join("L")+"Z"}function vu(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t1&&i.push("H",r[0]),i.join("")}function yu(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t1){a=t[1],u=n[l],l++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(u[0]-a[0])+","+(u[1]-a[1])+","+u[0]+","+u[1];for(var c=2;c9&&(i=3*t/Math.sqrt(i),o[a]=i*e,o[a+1]=i*r);for(a=-1;++a<=l;)i=(n[Math.min(l,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),u.push([i||0,o[a]*i||0]);return u}function Tu(n){return n.length<3?gu(n):n[0]+bu(n,qu(n))}function Ru(n){for(var t,e,r,i=-1,u=n.length;++i0;)p[--a].call(n,o);if(u>=1)return d.event&&d.event.end.call(n,n.__data__,t),--g.count?delete g[r]:delete n[e],1}var l,f,s,h,p,g=n[e]||(n[e]={active:0,count:0}),d=g[r];d||(l=i.time,f=qn(u,0,l),d=g[r]={tween:new c,time:l,timer:f,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++g.count)}function Bu(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function Wu(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function Ju(n){return n.toISOString()}function Gu(n,t,e){function r(t){return n(t)}function i(n,e){var r=(n[1]-n[0])/e,i=to.bisect(Yl,r);return i==Yl.length?[t.year,Xi(n.map(function(n){return n/31536e6}),e)[2]]:i?t[r/Yl[i-1]1?{floor:function(t){for(;e(t=n.floor(t));)t=Ku(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=Ku(+t+1);return t}}:n))},r.ticks=function(n,t){var e=ji(r.domain()),u=null==n?i(e,10):"number"==typeof n?i(e,n):!n.range&&[{range:n},t];return u&&(n=u[0],t=u[1]),n.range(e[0],Ku(+e[1]+1),t<1?1:t)},r.tickFormat=function(){return e},r.copy=function(){return Gu(n.copy(),t,e)},Zi(r,n)}function Ku(n){return new Date(n)}function Qu(n){return JSON.parse(n.responseText)}function no(n){var t=io.createRange();return t.selectNode(io.body),t.createContextualFragment(n.responseText)}var to={version:"3.5.17"},eo=[].slice,ro=function(n){return eo.call(n)},io=this.document;if(io)try{ro(io.documentElement.childNodes)[0].nodeType}catch(n){ro=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),io)try{io.createElement("DIV").style.setProperty("opacity",0,"")}catch(n){var uo=this.Element.prototype,oo=uo.setAttribute,ao=uo.setAttributeNS,lo=this.CSSStyleDeclaration.prototype,co=lo.setProperty;uo.setAttribute=function(n,t){oo.call(this,n,t+"")},uo.setAttributeNS=function(n,t,e){ao.call(this,n,t,e+"")},lo.setProperty=function(n,t,e){co.call(this,n,t+"",e)}}to.ascending=e,to.descending=function(n,t){return tn?1:t>=n?0:NaN},to.min=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i=r){e=r;break}for(;++ir&&(e=r)}else{for(;++i=r){e=r;break}for(;++ir&&(e=r)}return e},to.max=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i=r){e=r;break}for(;++ie&&(e=r)}else{for(;++i=r){e=r;break}for(;++ie&&(e=r)}return e},to.extent=function(n,t){var e,r,i,u=-1,o=n.length;if(1===arguments.length){for(;++u=r){e=i=r;break}for(;++ur&&(e=r),i=r){e=i=r;break}for(;++ur&&(e=r),i1)return l/(f-1)},to.deviation=function(){var n=to.variance.apply(this,arguments);return n?Math.sqrt(n):n};var fo=u(e);to.bisectLeft=fo.left,to.bisect=to.bisectRight=fo.right,to.bisector=function(n){return u(1===n.length?function(t,r){return e(n(t),r)}:n)},to.shuffle=function(n,t,e){(u=arguments.length)<3&&(e=n.length,u<2&&(t=0));for(var r,i,u=e-t;u;)i=Math.random()*u--|0,r=n[u+t],n[u+t]=n[i+t],n[i+t]=r;return n},to.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},to.pairs=function(n){for(var t=0,e=n.length-1,r=n[0],i=new Array(e<0?0:e);t=0;)for(t=(r=n[i]).length;--t>=0;)e[--o]=r[t];return e};var so=Math.abs;to.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e==1/0)throw new Error("infinite range");var r,i=[],u=a(so(e)),o=-1;if(n*=u,t*=u,(e*=u)<0)for(;(r=n+e*++o)>t;)i.push(r/u);else for(;(r=n+e*++o)=u.length)return r?r.call(i,o):e?o.sort(e):o;for(var l,f,s,h,p=-1,g=o.length,d=u[a++],v=new c;++p=u.length)return n;var r=[],i=o[e++];return n.forEach(function(n,i){r.push({key:n,values:t(i,e)})}),i?r.sort(function(n,t){return i(n.key,t.key)}):r}var e,r,i={},u=[],o=[];return i.map=function(t,e){return n(e,t,0)},i.entries=function(e){return t(n(to.map,e,0),0)},i.key=function(n){return u.push(n),i},i.sortKeys=function(n){return o[u.length-1]=n,i},i.sortValues=function(n){return e=n,i},i.rollup=function(n){return r=n,i},i},to.set=function(n){var t=new y;if(n)for(var e=0,r=n.length;e=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},to.event=null,to.requote=function(n){return n.replace(vo,"\\$&")};var vo=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,yo={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},mo=function(n,t){return t.querySelector(n)},xo=function(n,t){return t.querySelectorAll(n)},Mo=function(n,t){var e=n.matches||n[M(n,"matchesSelector")];return(Mo=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(mo=function(n,t){return Sizzle(n,t)[0]||null},xo=Sizzle,Mo=Sizzle.matchesSelector),to.selection=function(){return to.select(io.documentElement)};var _o=to.selection.prototype=[];_o.select=function(n){var t,e,r,i,u=[];n=A(n);for(var o=-1,a=this.length;++o=0&&"xmlns"!==(e=n.slice(0,t))&&(n=n.slice(t+1)),wo.hasOwnProperty(e)?{space:wo[e],local:n}:n}},_o.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=to.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},_o.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,i=-1;if(t=e.classList){for(;++i=0;)(e=r[i])&&(u&&u!==e.nextSibling&&u.parentNode.insertBefore(e,u),u=e);return this},_o.sort=function(n){n=Y.apply(this,arguments);for(var t=-1,e=this.length;++t0&&(t=t.transition().duration(C)),t.call(n.event)}function a(){_&&_.domain(M.range().map(function(n){return(n-k.x)/k.k}).map(M.invert)),w&&w.domain(b.range().map(function(n){return(n-k.y)/k.k}).map(b.invert))}function l(n){z++||n({type:"zoomstart"})}function c(n){a(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function f(n){--z||(n({type:"zoomend"}),v=null)}function s(){function n(){a=1,u(to.mouse(i),h),c(o)}function r(){s.on(q,null).on(T,null),p(a),f(o)}var i=this,o=D.of(i,arguments),a=0,s=to.select(t(i)).on(q,n).on(T,r),h=e(to.mouse(i)),p=W(i);ql.call(i),l(o)}function h(){function n(){var n=to.touches(g);return p=k.k,n.forEach(function(n){n.identifier in v&&(v[n.identifier]=e(n))}),n}function t(){var t=to.event.target;to.select(t).on(M,r).on(_,a),b.push(t);for(var e=to.event.changedTouches,i=0,u=e.length;i1){var f=l[0],s=l[1],h=f[0]-s[0],p=f[1]-s[1];y=h*h+p*p}}function r(){var n,t,e,r,o=to.touches(g);ql.call(g);for(var a=0,l=o.length;a=c)return o;if(i)return i=!1,u;var t=f;if(34===n.charCodeAt(t)){for(var e=t;e++=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ra=to.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=to.round(n,Pn(n,t))).toFixed(Math.max(0,Math.min(20,Pn(n*(1+1e-15),t))))}}),ia=to.time={},ua=Date;Hn.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){oa.setUTCDate.apply(this._,arguments)},setDay:function(){oa.setUTCDay.apply(this._,arguments)},setFullYear:function(){oa.setUTCFullYear.apply(this._,arguments)},setHours:function(){oa.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){oa.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){oa.setUTCMinutes.apply(this._,arguments)},setMonth:function(){oa.setUTCMonth.apply(this._,arguments)},setSeconds:function(){oa.setUTCSeconds.apply(this._,arguments)},setTime:function(){oa.setTime.apply(this._,arguments)}};var oa=Date.prototype;ia.year=On(function(n){return(n=ia.day(n)).setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ia.years=ia.year.range,ia.years.utc=ia.year.utc.range,ia.day=On(function(n){var t=new ua(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ia.days=ia.day.range,ia.days.utc=ia.day.utc.range,ia.dayOfYear=function(n){var t=ia.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ia[n]=On(function(n){return(n=ia.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ia.year(n).getDay();return Math.floor((ia.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ia[n+"s"]=e.range,ia[n+"s"].utc=e.utc.range,ia[n+"OfYear"]=function(n){var e=ia.year(n).getDay();return Math.floor((ia.dayOfYear(n)+(e+t)%7)/7)}}),ia.week=ia.sunday,ia.weeks=ia.sunday.range,ia.weeks.utc=ia.sunday.utc.range,ia.weekOfYear=ia.sundayOfYear;var aa={"-":"",_:" ",0:"0"},la=/^\s*\d+/,ca=/^%/;to.locale=function(n){return{numberFormat:Un(n),timeFormat:In(n)}};var fa=to.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});to.format=fa.numberFormat,to.geo={},ft.prototype={s:0,t:0,add:function(n){st(n,this.t,sa),st(sa.s,this.s,this),this.s?this.t+=sa.t:this.s=sa.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var sa=new ft;to.geo.stream=function(n,t){n&&ha.hasOwnProperty(n.type)?ha[n.type](n,t):ht(n,t)};var ha={Feature:function(n,t){ht(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;++rp&&(p=t)}function t(t,e){var r=vt([t*Do,e*Do]);if(y){var i=mt(y,r),u=mt([i[1],-i[0],0],i);_t(u),u=bt(u);var o=t-g,l=o>0?1:-1,c=u[0]*Po*l,d=so(o)>180;if(d^(l*gp&&(p=v);else if(c=(c+360)%360-180,d^(l*gp&&(p=e);d?ta(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t):h>=f?(th&&(h=t)):t>g?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t)}else n(t,e);y=r,g=t}function e(){_.point=t}function r(){M[0]=f,M[1]=h,_.point=n,y=null}function i(n,e){if(y){var r=n-g;m+=so(r)>180?r+(r>0?360:-360):r}else d=n,v=e;va.point(n,e),t(n,e)}function u(){va.lineStart()}function o(){i(d,v),va.lineEnd(),so(m)>Co&&(f=-(h=180)),M[0]=f,M[1]=h,y=null}function a(n,t){return(t-=n)<0?t+360:t}function l(n,t){return n[0]-t[0]}function c(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nCo?p=90:m<-Co&&(s=-90),M[0]=f,M[1]=h}};return function(n){p=h=-(f=s=1/0),x=[],to.geo.stream(n,_);var t=x.length;if(t){x.sort(l);for(var e=1,r=[g=x[0]];ea(g[0],g[1])&&(g[1]=u[1]),a(u[0],g[1])>a(g[0],g[1])&&(g[0]=u[0])):r.push(g=u);for(var i,u,o=-1/0,e=0,g=r[t=r.length-1];e<=t;g=u,++e)u=r[e],(i=a(g[1],u[0]))>o&&(o=i,f=u[0],h=g[1])}return x=M=null,f===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[f,s],[h,p]]}}(),to.geo.centroid=function(n){ya=ma=xa=Ma=_a=ba=wa=Sa=ka=Na=Ea=0,to.geo.stream(n,Aa);var t=ka,e=Na,r=Ea,i=t*t+e*e+r*r;return i=.12&&i<.234&&r>=-.425&&r<-.214?o:i>=.166&&i<.234&&r>=-.214&&r<-.115?a:u).invert(n)},n.stream=function(n){var t=u.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,i){t.point(n,i),e.point(n,i),r.point(n,i)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(u.precision(t),o.precision(t),a.precision(t),n):u.precision()},n.scale=function(t){return arguments.length?(u.scale(t),o.scale(.35*t),a.scale(t),n.translate(u.translate())):u.scale()},n.translate=function(t){if(!arguments.length)return u.translate();var c=u.scale(),f=+t[0],s=+t[1];return e=u.translate(t).clipExtent([[f-.455*c,s-.238*c],[f+.455*c,s+.238*c]]).stream(l).point,r=o.translate([f-.307*c,s+.201*c]).clipExtent([[f-.425*c+Co,s+.12*c+Co],[f-.214*c-Co,s+.234*c-Co]]).stream(l).point,i=a.translate([f-.205*c,s+.212*c]).clipExtent([[f-.214*c+Co,s+.166*c+Co],[f-.115*c-Co,s+.234*c-Co]]).stream(l).point,n},n.scale(1070)};var La,qa,Ta,Ra,Da,Pa,ja={point:_,lineStart:_,lineEnd:_,polygonStart:function(){qa=0,ja.lineStart=$t},polygonEnd:function(){ja.lineStart=ja.lineEnd=ja.point=_,La+=so(qa/2)}},Ua={point:Bt,lineStart:_,lineEnd:_,polygonStart:_,polygonEnd:_},Fa={point:Gt,lineStart:Kt,lineEnd:Qt,polygonStart:function(){Fa.lineStart=ne},polygonEnd:function(){Fa.point=Gt,Fa.lineStart=Kt,Fa.lineEnd=Qt}};to.geo.path=function(){function n(n){return n&&("function"==typeof a&&u.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=i(u)),to.geo.stream(n,o)),u.result()}function t(){return o=null,n}var e,r,i,u,o,a=4.5;return n.area=function(n){return La=0,to.geo.stream(n,i(ja)),La},n.centroid=function(n){return xa=Ma=_a=ba=wa=Sa=ka=Na=Ea=0,to.geo.stream(n,i(Fa)),Ea?[ka/Ea,Na/Ea]:Sa?[ba/Sa,wa/Sa]:_a?[xa/_a,Ma/_a]:[NaN,NaN]},n.bounds=function(n){return Da=Pa=-(Ta=Ra=1/0),to.geo.stream(n,i(Ua)),[[Ta,Ra],[Da,Pa]]},n.projection=function(n){return arguments.length?(i=(e=n)?n.stream||re(n):m,t()):e},n.context=function(n){return arguments.length?(u=null==(r=n)?new Wt:new te(n),"function"!=typeof a&&u.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(u.pointRadius(+t),+t),n):a},n.projection(to.geo.albersUsa()).context(null)},to.geo.transform=function(n){return{stream:function(t){var e=new ie(t);for(var r in n)e[r]=n[r];return e}}},ie.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},to.geo.projection=oe,to.geo.projectionMutator=ae,(to.geo.equirectangular=function(){return oe(ce)}).raw=ce.invert=ce,to.geo.rotation=function(n){function t(t){return t=n(t[0]*Do,t[1]*Do),t[0]*=Po,t[1]*=Po,t}return n=se(n[0]%360*Do,n[1]*Do,n.length>2?n[2]*Do:0),t.invert=function(t){return t=n.invert(t[0]*Do,t[1]*Do),t[0]*=Po,t[1]*=Po,t},t},fe.invert=ce,to.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=se(-n[0]*Do,-n[1]*Do,0).invert,i=[];return e(null,null,1,{point:function(n,e){i.push(n=t(n,e)),n[0]*=Po,n[1]*=Po}}),{type:"Polygon",coordinates:[i]}}var t,e,r=[0,0],i=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=de((t=+r)*Do,i*Do),n):t},n.precision=function(r){return arguments.length?(e=de(t*Do,(i=+r)*Do),n):i},n.angle(90)},to.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Do,i=n[1]*Do,u=t[1]*Do,o=Math.sin(r),a=Math.cos(r),l=Math.sin(i),c=Math.cos(i),f=Math.sin(u),s=Math.cos(u);return Math.atan2(Math.sqrt((e=s*o)*e+(e=c*f-l*s*a)*e),l*f+c*s*a)},to.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return to.range(Math.ceil(u/v)*v,i,v).map(h).concat(to.range(Math.ceil(c/y)*y,l,y).map(p)).concat(to.range(Math.ceil(r/g)*g,e,g).filter(function(n){return so(n%v)>Co}).map(f)).concat(to.range(Math.ceil(a/d)*d,o,d).filter(function(n){return so(n%y)>Co}).map(s))}var e,r,i,u,o,a,l,c,f,s,h,p,g=10,d=g,v=90,y=360,m=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(u).concat(p(l).slice(1),h(i).reverse().slice(1),p(c).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(u=+t[0][0],i=+t[1][0],c=+t[0][1],l=+t[1][1],u>i&&(t=u,u=i,i=t),c>l&&(t=c,c=l,l=t),n.precision(m)):[[u,c],[i,l]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),n.precision(m)):[[r,a],[e,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(v=+t[0],y=+t[1],n):[v,y]},n.minorStep=function(t){return arguments.length?(g=+t[0],d=+t[1],n):[g,d]},n.precision=function(t){return arguments.length?(m=+t,f=ye(a,o,90),s=me(r,e,m),h=ye(c,l,90),p=me(u,i,m),n):m},n.majorExtent([[-180,-90+Co],[180,90-Co]]).minorExtent([[-180,-80-Co],[180,80+Co]])},to.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||i.apply(this,arguments)]}}var t,e,r=xe,i=Me;return n.distance=function(){return to.geo.distance(t||r.apply(this,arguments),e||i.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(i=t,e="function"==typeof t?null:t,n):i},n.precision=function(){return arguments.length?n:0},n},to.geo.interpolate=function(n,t){return _e(n[0]*Do,n[1]*Do,t[0]*Do,t[1]*Do)},to.geo.length=function(n){return Ha=0,to.geo.stream(n,Oa),Ha};var Ha,Oa={sphere:_,point:_,lineStart:be,lineEnd:_,polygonStart:_,polygonEnd:_},Ya=we(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(to.geo.azimuthalEqualArea=function(){return oe(Ya)}).raw=Ya;var Ia=we(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},m);(to.geo.azimuthalEquidistant=function(){return oe(Ia)}).raw=Ia,(to.geo.conicConformal=function(){return Vt(Se)}).raw=Se,(to.geo.conicEquidistant=function(){return Vt(ke)}).raw=ke;var Za=we(function(n){return 1/n},Math.atan);(to.geo.gnomonic=function(){return oe(Za)}).raw=Za,Ne.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Ro]},(to.geo.mercator=function(){return Ee(Ne)}).raw=Ne;var Va=we(function(){return 1},Math.asin);(to.geo.orthographic=function(){return oe(Va)}).raw=Va;var Xa=we(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(to.geo.stereographic=function(){return oe(Xa)}).raw=Xa,Ae.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Ro]},(to.geo.transverseMercator=function(){var n=Ee(Ae),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Ae,to.geom={},to.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,i=En(e),u=En(r),o=n.length,a=[],l=[];for(t=0;t=0;--t)p.push(n[a[c[t]][2]]);for(t=+s;t=r&&c.x<=u&&c.y>=i&&c.y<=o?[[r,o],[u,o],[u,i],[r,i]]:[]).point=n[a]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(u(n,t)/Co)*Co,y:Math.round(o(n,t)/Co)*Co,i:t}})}var r=Ce,i=ze,u=r,o=i,a=tl;return n?t(n):(t.links=function(n){return ar(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return ar(e(n)).cells.forEach(function(e,r){for(var i,u=e.site,o=e.edges.sort(Ve),a=-1,l=o.length,c=o[l-1].edge,f=c.l===u?c.r:c.l;++a=c,h=r>=f,p=h<<1|s;n.leaf=!1,n=n.nodes[p]||(n.nodes[p]={leaf:!0,nodes:[],point:null,x:null,y:null}),s?i=c:a=c,h?o=f:l=f,u(n,t,e,r,i,o,a,l)}var f,s,h,p,g,d,v,y,m,x=En(a),M=En(l);if(null!=t)d=t,v=e,y=r,m=i;else if(y=m=-(d=v=1/0),s=[],h=[],g=n.length,o)for(p=0;py&&(y=f.x),f.y>m&&(m=f.y),s.push(f.x),h.push(f.y);else for(p=0;py&&(y=_),b>m&&(m=b),s.push(_),h.push(b)}var w=y-d,S=m-v;w>S?m=v+w:y=d+S;var k={leaf:!0,nodes:[],point:null,x:null,y:null};if(k.add=function(n){u(k,n,+x(n,++p),+M(n,p),d,v,y,m)},k.visit=function(n){hr(n,k,d,v,y,m)},k.find=function(n){return pr(k,n[0],n[1],d,v,y,m)},p=-1,null==t){for(;++p=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=ul.get(e)||il,r=ol.get(r)||m,Mr(r(e.apply(null,eo.call(arguments,1))))},to.interpolateHcl=Tr,to.interpolateHsl=Rr,to.interpolateLab=Dr,to.interpolateRound=Pr,to.transform=function(n){var t=io.createElementNS(to.ns.prefix.svg,"g");return(to.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new jr(e?e.matrix:al)})(n)},jr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var al={a:1,b:0,c:0,d:1,e:0,f:0};to.interpolateTransform=Xr,to.layout={},to.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e0?i=n:(e.c=null,e.t=NaN,e=null,c.end({type:"end",alpha:i=0})):n>0&&(c.start({type:"start",alpha:i=n}),e=qn(l.tick)),l):i},l.start=function(){function n(n,r){if(!e){for(e=new Array(i),l=0;l=0;)o.push(f=c[l]),f.parent=u,f.depth=u.depth+1;r&&(u.value=0),u.children=c}else r&&(u.value=+r.call(n,u,u.depth)||0),delete u.children;return ui(i,function(n){var e,i;t&&(e=n.children)&&e.sort(t),r&&(i=n.parent)&&(i.value+=n.value)}),a}var t=li,e=oi,r=ai;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(ii(t,function(n){n.children&&(n.value=0)}),ui(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},to.layout.partition=function(){function n(t,e,r,i){var u=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,u&&(o=u.length)){var o,a,l,c=-1;for(r=t.value?r/t.value:0;++ca&&(a=r),o.push(r)}for(e=0;e0)for(u=-1;++u=f[0]&&a<=f[1]&&((o=l[to.bisect(s,a,1,p)-1]).y+=g,o.push(n[u]));return l}var t=!0,e=Number,r=Mi,i=mi;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=En(t),n):r},n.bins=function(t){return arguments.length?(i="number"==typeof t?function(n){return xi(n,t)}:En(t),n):i},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},to.layout.pack=function(){function n(n,u){var o=e.call(this,n,u),a=o[0],l=i[0],c=i[1],f=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,ui(a,function(n){n.r=+f(n.value)}),ui(a,ki),r){var s=r*(t?1:Math.max(2*a.r/l,2*a.r/c))/2;ui(a,function(n){n.r+=s}),ui(a,ki),ui(a,function(n){n.r-=s})}return Ai(a,l/2,c/2,t?1:1/Math.max(2*a.r/l,2*a.r/c)),o}var t,e=to.layout.hierarchy().sort(_i),r=0,i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},ri(n,e)},to.layout.tree=function(){function n(n,r){var u=M.call(this,n,r),o=t(u[0]);return N=o,e(o,0),i(o),g(o,0),m(o),u}function t(n){var e={t:n,prelim:0,mod:0,shift:0,change:0,msel:0,mser:0};if(n.x=0,n.y=0,w)e.x_size=1,e.y_size=1;else if("object"==typeof S)e.x_size=S[0],e.y_size=S[1];else{var r=S(n);e.x_size=r[0],e.y_size=r[1]}k&&(n.x_size=e.x_size,n.y_size=e.y_size);for(var i=[],u=n.children?n.children.length:0,o=0;oe.lowY&&(e=e.nxt);var p=i+r.prelim-(o+u.prelim);null!=_?p+=_(r.t,u.t)*N.x_size:null!=b&&(p+=r.x_size/2+u.x_size/2+b(r.t,u.t)),p>0?(o+=p,a(n,t,e.index,p)):1===t&&0===o&&0===r.num_children&&u.num_children>1&&p<0&&(o+=p,a(n,t,e.index,p));var g=f(r),d=f(u);g<=d&&null!=(r=c(r))&&(i+=r.mod),g>=d&&null!=(u=l(u))&&(o+=u.mod)}null==r&&null!=u?s(n,t,u,o):null!=r&&null==u&&h(n,t,r,i)}function a(n,t,e,r){n.children[t].mod+=r,n.children[t].msel+=r,n.children[t].mser+=r,d(n,t,e,r)}function l(n){return 0==n.num_children?n.tl:n.children[0]}function c(n){return 0==n.num_children?n.tr:n.children[n.num_children-1]}function f(n){return n.t.y+n.y_size}function s(n,t,e,r){var i=n.children[0].el;i.tl=e;var u=r-e.mod-n.children[0].msel;i.mod+=u,i.prelim-=u,n.children[0].el=n.children[t].el,n.children[0].msel=n.children[t].msel}function h(n,t,e,r){var i=n.children[t].er;i.tr=e;var u=r-e.mod-n.children[t].mser;i.mod+=u,i.prelim-=u,n.children[t].er=n.children[t-1].er,n.children[t].mser=n.children[t-1].mser}function p(n){n.prelim=(n.children[0].prelim+n.children[0].mod-n.children[0].x_size/2+n.children[n.num_children-1].mod+n.children[n.num_children-1].prelim+n.children[n.num_children-1].x_size/2)/2}function g(n,t){t+=n.mod,n.t.x=n.prelim+t,v(n);for(var e=0;e=e.lowY;)e=e.nxt;return{lowY:n,index:t,nxt:e}}function m(n){if(null!=w){for(var t,e=n,r=n,i=n,u=[n];t=u.pop();)(f=t.t).xr.t.x&&(r=t),f.depth>i.t.depth&&(i=t),t.children&&(u=u.concat(t.children));var o=null==_?.5:_(e.t,r.t)/2,a=o-e.t.x,l=w[0]/(r.t.x+o+a),c=w[1]/(i.t.depth>0?i.t.depth:1);for(u=[n];t=u.pop();){var f=t.t;f.x=(f.x+a)*l,f.y=f.depth*c,k&&(f.x_size*=l,f.y_size*=c),t.children&&(u=u.concat(t.children))}}else x(n,-n.t.x)}function x(n,t){n.t.x+=t;for(var e=0;e0;)f.push(o=h[l-1]),f.area+=o.area,"squarify"!==p||(a=r(f,d))<=g?(h.pop(),g=a):(f.area-=f.pop().area,i(f,d,c,!1),d=Math.min(c.dx,c.dy),f.length=f.area=0,g=1/0);f.length&&(i(f,d,c,!0),f.length=f.area=0),u.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var u,o=s(t),a=r.slice(),l=[];for(n(a,o.dx*o.dy/t.value),l.area=0;u=a.pop();)l.push(u),l.area+=u.area,null!=u.z&&(i(l,u.z?o.dx:o.dy,o,!a.length),l.length=l.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,i=0,u=1/0,o=-1,a=n.length;++oi&&(i=e));return r*=r,t*=t,r?Math.max(t*i*g/r,r/(t*u*g)):1/0}function i(n,t,e,r){var i,u=-1,o=n.length,a=e.x,c=e.y,f=t?l(n.area/t):0;if(t==e.dx){for((r||f>e.dy)&&(f=e.dy);++ue.dx)&&(f=e.dx);++u1);return n+t*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var n=to.random.normal.apply(to,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=to.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;es?0:1;if(c=To)return t(c,p)+(n?t(n,1-p):"")+"Z";var g,d,v,y,m,x,M,_,b,w,S,k,N=0,E=0,A=[];if((y=(+l.apply(this,arguments)||0)/2)&&(v=u===bl?Math.sqrt(n*n+c*c):+u.apply(this,arguments),p||(E*=-1),c&&(E=tn(v/c*Math.sin(y))),n&&(N=tn(v/n*Math.sin(y)))),c){m=c*Math.cos(f+E),x=c*Math.sin(f+E),M=c*Math.cos(s-E),_=c*Math.sin(s-E);var C=Math.abs(s-f-2*E)<=Lo?0:1;if(E&&su(m,x,M,_)===p^C){var z=(f+s)/2;m=c*Math.cos(z),x=c*Math.sin(z),M=_=null}}else m=x=0;if(n){b=n*Math.cos(s-N),w=n*Math.sin(s-N),S=n*Math.cos(f+N),k=n*Math.sin(f+N);var L=Math.abs(f-s+2*N)<=Lo?0:1;if(N&&su(b,w,S,k)===1-p^L){var q=(f+s)/2;b=n*Math.cos(q),w=n*Math.sin(q),S=k=null}}else b=w=0;if(h>Co&&(g=Math.min(Math.abs(c-n)/2,+i.apply(this,arguments)))>.001){d=nLo)+",1 "+t}function i(n,t,e,r){return"Q 0,0 "+r}var u=xe,o=Me,a=Pu,l=lu,c=cu;return n.radius=function(t){return arguments.length?(a=En(t),n):a},n.source=function(t){return arguments.length?(u=En(t),n):u},n.target=function(t){return arguments.length?(o=En(t),n):o},n.startAngle=function(t){return arguments.length?(l=En(t),n):l},n.endAngle=function(t){return arguments.length?(c=En(t),n):c},n},to.svg.diagonal=function(){function n(n,i){var u=t.call(this,n,i),o=e.call(this,n,i),a=(u.y+o.y)/2,l=[u,{x:u.x,y:a},{x:o.x,y:a},o];return"M"+(l=l.map(r))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=xe,e=Me,r=ju;return n.source=function(e){return arguments.length?(t=En(e),n):t},n.target=function(t){return arguments.length?(e=En(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},to.svg.diagonal.radial=function(){var n=to.svg.diagonal(),t=ju,e=n.projection;return n.projection=function(n){return arguments.length?e(Uu(t=n)):t},n},to.svg.symbol=function(){function n(n,r){return(El.get(t.call(this,n,r))||Ou)(e.call(this,n,r))}var t=Hu,e=Fu;return n.type=function(e){return arguments.length?(t=En(e),n):t},n.size=function(t){return arguments.length?(e=En(t),n):e},n};var El=to.map({circle:Ou,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Cl)),e=t*Cl;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/Al),e=t*Al/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/Al),e=t*Al/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});to.svg.symbolTypes=El.keys();var Al=Math.sqrt(3),Cl=Math.tan(30*Do);_o.transition=function(n){for(var t,e,r=zl||++Rl,i=Xu(n),u=[],o=Ll||{time:Date.now(),ease:kr,delay:0,duration:250},a=-1,l=this.length;++arect,.s>rect").attr("width",s[1]-s[0])}function i(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function u(){function u(){32==to.event.keyCode&&(C||(x=null,L[0]-=s[1],L[1]-=h[1],C=2),S())}function d(){32==to.event.keyCode&&2==C&&(L[0]+=s[1],L[1]+=h[1],C=0,S())}function v(){var n=to.mouse(_),t=!1;M&&(n[0]+=M[0],n[1]+=M[1]),C||(to.event.altKey?(x||(x=[(s[0]+s[1])/2,(h[0]+h[1])/2]),L[0]=s[+(n[0]1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return u.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(t={onlyLeaves:!1,circularReference:"leaf",search:"dfsPreOrder",iterateOverObject:!0,skipIteration:function(){return!1}},void 0!==o.onlyLeaves&&(t.onlyLeaves=o.onlyLeaves),void 0!==o.circularReference&&(t.circularReference=o.circularReference),void 0!==o.iterateOverObject&&(t.iterateOverObject=o.iterateOverObject),void 0!==o.skipIteration&&(t.skipIteration=o.skipIteration),void 0===o.search){i.next=9;break}if(o.search in s){i.next=8;break}throw new Error("The search algorithm "+o.search+" is incorrect.");case 8:t.search=o.search;case 9:return r=new l.default(e,t),n=(0,d.default)(t.circularReference),i.delegateYield(s[t.search](r,t.onlyLeaves,n),"t0",12);case 12:case"end":return i.stop()}},_[0],this)}Object.defineProperty(r,"__esModule",{value:!0});var a=e("babel-runtime/regenerator"),u=o(a);r.default=i;var c=e("./search"),s=n(c),f=e("./root-node"),l=o(f),p=e("./seen"),d=o(p),_=[i].map(u.default.mark)},{"./root-node":5,"./search":6,"./seen":7,"babel-runtime/regenerator":115}],3:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var t;return l.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=l.default.keys(e);case 1:if((r.t1=r.t0()).done){r.next=7;break}return t=r.t1.value,r.next=5,[t,e[t]];case 5:r.next=1;break;case 7:case"end":return r.stop()}},p[0],this)}function i(e){var t;return l.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:t=0;case 1:if(!(tf;)if(u=c[f++],u!=u)return!0}else for(;s>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}}},{"./_to-index":88,"./_to-iobject":90,"./_to-length":91}],39:[function(e,t,r){var n=e("./_cof"),o=e("./_wks")("toStringTag"),i="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};t.exports=function(e){var t,r,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=a(t=Object(e),o))?r:i?n(t):"Object"==(u=n(t))&&"function"==typeof t.callee?"Arguments":u}},{"./_cof":40,"./_wks":97}],40:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],41:[function(e,t,r){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},{}],42:[function(e,t,r){"use strict";var n=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,r){t in e?n.f(e,t,o(0,r)):e[t]=r}},{"./_object-dp":70,"./_property-desc":81}],43:[function(e,t,r){var n=e("./_a-function");t.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":35}],44:[function(e,t,r){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],45:[function(e,t,r){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":50}],46:[function(e,t,r){var n=e("./_is-object"),o=e("./_global").document,i=n(o)&&n(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":51,"./_is-object":59}],47:[function(e,t,r){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],48:[function(e,t,r){var n=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=n(e),r=o.f;if(r)for(var a,u=r(e),c=i.f,s=0;u.length>s;)c.call(e,a=u[s++])&&t.push(a);return t}},{"./_object-gops":75,"./_object-keys":78,"./_object-pie":79}],49:[function(e,t,r){var n=e("./_global"),o=e("./_core"),i=e("./_ctx"),a=e("./_hide"),u="prototype",c=function(e,t,r){var s,f,l,p=e&c.F,d=e&c.G,_=e&c.S,b=e&c.P,h=e&c.B,y=e&c.W,v=d?o:o[t]||(o[t]={}),m=v[u],g=d?n:_?n[t]:(n[t]||{})[u];d&&(r=t);for(s in r)f=!p&&g&&void 0!==g[s],f&&s in v||(l=f?g[s]:r[s],v[s]=d&&"function"!=typeof g[s]?r[s]:h&&f?i(l,n):y&&g[s]==l?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[u]=e[u],t}(l):b&&"function"==typeof l?i(Function.call,l):l,b&&((v.virtual||(v.virtual={}))[s]=l,e&c.R&&m&&!m[s]&&a(m,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},{"./_core":41,"./_ctx":43,"./_global":51,"./_hide":53}],50:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],51:[function(e,t,r){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],52:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],53:[function(e,t,r){var n=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},{"./_descriptors":45,"./_object-dp":70,"./_property-desc":81}],54:[function(e,t,r){t.exports=e("./_global").document&&document.documentElement},{"./_global":51}],55:[function(e,t,r){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":45,"./_dom-create":46,"./_fails":50}],56:[function(e,t,r){var n=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},{"./_cof":40}],57:[function(e,t,r){var n=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||i[o]===e)}},{"./_iterators":65,"./_wks":97}],58:[function(e,t,r){var n=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"./_cof":40}],59:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],60:[function(e,t,r){var n=e("./_an-object");t.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},{"./_an-object":37}],61:[function(e,t,r){"use strict";var n=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),a={};e("./_hide")(a,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,r){e.prototype=n(a,{next:o(1,r)}),i(e,t+" Iterator")}},{"./_hide":53,"./_object-create":69,"./_property-desc":81,"./_set-to-string-tag":84,"./_wks":97}],62:[function(e,t,r){"use strict";var n=e("./_library"),o=e("./_export"),i=e("./_redefine"),a=e("./_hide"),u=e("./_has"),c=e("./_iterators"),s=e("./_iter-create"),f=e("./_set-to-string-tag"),l=e("./_object-gpo"),p=e("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),_="@@iterator",b="keys",h="values",y=function(){return this};t.exports=function(e,t,r,v,m,g,j){s(r,t,v);var w,x,k,O=function(e){if(!d&&e in M)return M[e];switch(e){case b:return function(){return new r(this,e)};case h:return function(){return new r(this,e)}}return function(){return new r(this,e)}},E=t+" Iterator",S=m==h,L=!1,M=e.prototype,A=M[p]||M[_]||m&&M[m],P=A||O(m),T=m?S?O("entries"):P:void 0,F="Array"==t?M.entries||A:A;if(F&&(k=l(F.call(new e)),k!==Object.prototype&&(f(k,E,!0),n||u(k,p)||a(k,p,y))),S&&A&&A.name!==h&&(L=!0,P=function(){return A.call(this)}),n&&!j||!d&&!L&&M[p]||a(M,p,P),c[t]=P,c[E]=y,m)if(w={values:S?P:O(h),keys:g?P:O(b),entries:T},j)for(x in w)x in M||i(M,x,w[x]);else o(o.P+o.F*(d||L),t,w);return w}},{"./_export":49,"./_has":52,"./_hide":53,"./_iter-create":61,"./_iterators":65,"./_library":67,"./_object-gpo":76,"./_redefine":82,"./_set-to-string-tag":84,"./_wks":97}],63:[function(e,t,r){var n=e("./_wks")("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},e(i)}catch(e){}return r}},{"./_wks":97}],64:[function(e,t,r){t.exports=function(e,t){return{value:t,done:!!e}}},{}],65:[function(e,t,r){t.exports={}},{}],66:[function(e,t,r){var n=e("./_object-keys"),o=e("./_to-iobject");t.exports=function(e,t){for(var r,i=o(e),a=n(i),u=a.length,c=0;u>c;)if(i[r=a[c++]]===t)return r}},{"./_object-keys":78,"./_to-iobject":90}],67:[function(e,t,r){t.exports=!0},{}],68:[function(e,t,r){var n=e("./_uid")("meta"),o=e("./_is-object"),i=e("./_has"),a=e("./_object-dp").f,u=0,c=Object.isExtensible||function(){return!0},s=!e("./_fails")(function(){return c(Object.preventExtensions({}))}),f=function(e){a(e,n,{value:{i:"O"+ ++u,w:{}}})},l=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,n)){if(!c(e))return"F";if(!t)return"E";f(e)}return e[n].i},p=function(e,t){if(!i(e,n)){if(!c(e))return!0;if(!t)return!1;f(e)}return e[n].w},d=function(e){return s&&_.NEED&&c(e)&&!i(e,n)&&f(e),e},_=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},{"./_fails":50,"./_has":52,"./_is-object":59,"./_object-dp":70,"./_uid":94}],69:[function(e,t,r){var n=e("./_an-object"),o=e("./_object-dps"),i=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),u=function(){},c="prototype",s=function(){var t,r=e("./_dom-create")("iframe"),n=i.length,o="<",a=">";for(r.style.display="none",e("./_html").appendChild(r),r.src="javascript:",t=r.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),s=t.F;n--;)delete s[c][i[n]];return s()};t.exports=Object.create||function(e,t){var r;return null!==e?(u[c]=n(e),r=new u,u[c]=null,r[a]=e):r=s(),void 0===t?r:o(r,t)}},{"./_an-object":37,"./_dom-create":46,"./_enum-bug-keys":47,"./_html":54,"./_object-dps":71,"./_shared-key":85}],70:[function(e,t,r){var n=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),a=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},{"./_an-object":37,"./_descriptors":45,"./_ie8-dom-define":55,"./_to-primitive":93}],71:[function(e,t,r){var n=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);for(var r,a=i(t),u=a.length,c=0;u>c;)n.f(e,r=a[c++],t[r]);return e}},{"./_an-object":37,"./_descriptors":45,"./_object-dp":70,"./_object-keys":78}],72:[function(e,t,r){ -var n=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),a=e("./_to-primitive"),u=e("./_has"),c=e("./_ie8-dom-define"),s=Object.getOwnPropertyDescriptor;r.f=e("./_descriptors")?s:function(e,t){if(e=i(e),t=a(t,!0),c)try{return s(e,t)}catch(e){}if(u(e,t))return o(!n.f.call(e,t),e[t])}},{"./_descriptors":45,"./_has":52,"./_ie8-dom-define":55,"./_object-pie":79,"./_property-desc":81,"./_to-iobject":90,"./_to-primitive":93}],73:[function(e,t,r){var n=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(e){return a.slice()}};t.exports.f=function(e){return a&&"[object Window]"==i.call(e)?u(e):o(n(e))}},{"./_object-gopn":74,"./_to-iobject":90}],74:[function(e,t,r){var n=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},{"./_enum-bug-keys":47,"./_object-keys-internal":77}],75:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],76:[function(e,t,r){var n=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),n(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},{"./_has":52,"./_shared-key":85,"./_to-object":92}],77:[function(e,t,r){var n=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),a=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var r,u=o(e),c=0,s=[];for(r in u)r!=a&&n(u,r)&&s.push(r);for(;t.length>c;)n(u,r=t[c++])&&(~i(s,r)||s.push(r));return s}},{"./_array-includes":38,"./_has":52,"./_shared-key":85,"./_to-iobject":90}],78:[function(e,t,r){var n=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return n(e,o)}},{"./_enum-bug-keys":47,"./_object-keys-internal":77}],79:[function(e,t,r){r.f={}.propertyIsEnumerable},{}],80:[function(e,t,r){var n=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var r=(o.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*i(function(){r(1)}),"Object",a)}},{"./_core":41,"./_export":49,"./_fails":50}],81:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],82:[function(e,t,r){t.exports=e("./_hide")},{"./_hide":53}],83:[function(e,t,r){var n=e("./_is-object"),o=e("./_an-object"),i=function(e,t){if(o(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,n){try{n=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2),n(t,[]),r=!(t instanceof Array)}catch(e){r=!0}return function(e,t){return i(e,t),r?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:i}},{"./_an-object":37,"./_ctx":43,"./_is-object":59,"./_object-gopd":72}],84:[function(e,t,r){var n=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},{"./_has":52,"./_object-dp":70,"./_wks":97}],85:[function(e,t,r){var n=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return n[e]||(n[e]=o(e))}},{"./_shared":86,"./_uid":94}],86:[function(e,t,r){var n=e("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});t.exports=function(e){return i[e]||(i[e]={})}},{"./_global":51}],87:[function(e,t,r){var n=e("./_to-integer"),o=e("./_defined");t.exports=function(e){return function(t,r){var i,a,u=String(o(t)),c=n(r),s=u.length;return c<0||c>=s?e?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?e?u.charAt(c):i:e?u.slice(c,c+2):(i-55296<<10)+(a-56320)+65536)}}},{"./_defined":44,"./_to-integer":89}],88:[function(e,t,r){var n=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return e=n(e),e<0?o(e+t,0):i(e,t)}},{"./_to-integer":89}],89:[function(e,t,r){var n=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},{}],90:[function(e,t,r){var n=e("./_iobject"),o=e("./_defined");t.exports=function(e){return n(o(e))}},{"./_defined":44,"./_iobject":56}],91:[function(e,t,r){var n=e("./_to-integer"),o=Math.min;t.exports=function(e){return e>0?o(n(e),9007199254740991):0}},{"./_to-integer":89}],92:[function(e,t,r){var n=e("./_defined");t.exports=function(e){return Object(n(e))}},{"./_defined":44}],93:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":59}],94:[function(e,t,r){var n=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},{}],95:[function(e,t,r){var n=e("./_global"),o=e("./_core"),i=e("./_library"),a=e("./_wks-ext"),u=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},{"./_core":41,"./_global":51,"./_library":67,"./_object-dp":70,"./_wks-ext":96}],96:[function(e,t,r){r.f=e("./_wks")},{"./_wks":97}],97:[function(e,t,r){var n=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,a="function"==typeof i,u=t.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))};u.store=n},{"./_global":51,"./_shared":86,"./_uid":94}],98:[function(e,t,r){var n=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[n(e)]}},{"./_classof":39,"./_core":41,"./_iterators":65,"./_wks":97}],99:[function(e,t,r){var n=e("./_an-object"),o=e("./core.get-iterator-method");t.exports=e("./_core").getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},{"./_an-object":37,"./_core":41,"./core.get-iterator-method":98}],100:[function(e,t,r){var n=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(n(t))}},{"./_classof":39,"./_core":41,"./_iterators":65,"./_wks":97}],101:[function(e,t,r){"use strict";var n=e("./_ctx"),o=e("./_export"),i=e("./_to-object"),a=e("./_iter-call"),u=e("./_is-array-iter"),c=e("./_to-length"),s=e("./_create-property"),f=e("./core.get-iterator-method");o(o.S+o.F*!e("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,o,l,p=i(e),d="function"==typeof this?this:Array,_=arguments.length,b=_>1?arguments[1]:void 0,h=void 0!==b,y=0,v=f(p);if(h&&(b=n(b,_>2?arguments[2]:void 0,2)),void 0==v||d==Array&&u(v))for(t=c(p.length),r=new d(t);t>y;y++)s(r,y,h?b(p[y],y):p[y]);else for(l=v.call(p),r=new d;!(o=l.next()).done;y++)s(r,y,h?a(l,b,[o.value,y],!0):o.value);return r.length=y,r}})},{"./_create-property":42,"./_ctx":43,"./_export":49,"./_is-array-iter":57,"./_iter-call":60,"./_iter-detect":63,"./_to-length":91,"./_to-object":92,"./core.get-iterator-method":98}],102:[function(e,t,r){"use strict";var n=e("./_add-to-unscopables"),o=e("./_iter-step"),i=e("./_iterators"),a=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,r):"values"==t?o(0,e[r]):o(0,[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":36,"./_iter-define":62,"./_iter-step":64,"./_iterators":65,"./_to-iobject":90}],103:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{create:e("./_object-create")})},{"./_export":49,"./_object-create":69}],104:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":45,"./_export":49,"./_object-dp":70}],105:[function(e,t,r){var n=e("./_to-object"),o=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(e){return o(n(e))}})},{"./_object-gpo":76,"./_object-sap":80,"./_to-object":92}],106:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{setPrototypeOf:e("./_set-proto").set})},{"./_export":49,"./_set-proto":83}],107:[function(e,t,r){},{}],108:[function(e,t,r){"use strict";var n=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":62,"./_string-at":87}],109:[function(e,t,r){"use strict";var n=e("./_global"),o=e("./_has"),i=e("./_descriptors"),a=e("./_export"),u=e("./_redefine"),c=e("./_meta").KEY,s=e("./_fails"),f=e("./_shared"),l=e("./_set-to-string-tag"),p=e("./_uid"),d=e("./_wks"),_=e("./_wks-ext"),b=e("./_wks-define"),h=e("./_keyof"),y=e("./_enum-keys"),v=e("./_is-array"),m=e("./_an-object"),g=e("./_to-iobject"),j=e("./_to-primitive"),w=e("./_property-desc"),x=e("./_object-create"),k=e("./_object-gopn-ext"),O=e("./_object-gopd"),E=e("./_object-dp"),S=e("./_object-keys"),L=O.f,M=E.f,A=k.f,P=n.Symbol,T=n.JSON,F=T&&T.stringify,I="prototype",C=d("_hidden"),N=d("toPrimitive"),R={}.propertyIsEnumerable,G=f("symbol-registry"),D=f("symbols"),U=f("op-symbols"),Y=Object[I],W="function"==typeof P,B=n.QObject,q=!B||!B[I]||!B[I].findChild,J=i&&s(function(){return 7!=x(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=L(Y,t);n&&delete Y[t],M(e,t,r),n&&e!==Y&&M(Y,t,n)}:M,K=function(e){var t=D[e]=x(P[I]);return t._k=e,t},z=W&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Q=function(e,t,r){return e===Y&&Q(U,t,r),m(e),t=j(t,!0),m(r),o(D,t)?(r.enumerable?(o(e,C)&&e[C][t]&&(e[C][t]=!1),r=x(r,{enumerable:w(0,!1)})):(o(e,C)||M(e,C,w(1,{})),e[C][t]=!0),J(e,t,r)):M(e,t,r)},H=function(e,t){m(e);for(var r,n=y(t=g(t)),o=0,i=n.length;i>o;)Q(e,r=n[o++],t[r]);return e},V=function(e,t){return void 0===t?x(e):H(x(e),t)},X=function(e){var t=R.call(this,e=j(e,!0));return!(this===Y&&o(D,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(D,e)||o(this,C)&&this[C][e])||t)},Z=function(e,t){if(e=g(e),t=j(t,!0),e!==Y||!o(D,t)||o(U,t)){var r=L(e,t);return!r||!o(D,t)||o(e,C)&&e[C][t]||(r.enumerable=!0),r}},$=function(e){for(var t,r=A(g(e)),n=[],i=0;r.length>i;)o(D,t=r[i++])||t==C||t==c||n.push(t);return n},ee=function(e){for(var t,r=e===Y,n=A(r?U:g(e)),i=[],a=0;n.length>a;)!o(D,t=n[a++])||r&&!o(Y,t)||i.push(D[t]);return i};W||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(r){this===Y&&t.call(U,r),o(this,C)&&o(this[C],e)&&(this[C][e]=!1),J(this,e,w(1,r))};return i&&q&&J(Y,e,{configurable:!0,set:t}),K(e)},u(P[I],"toString",function(){return this._k}),O.f=Z,E.f=Q,e("./_object-gopn").f=k.f=$,e("./_object-pie").f=X,e("./_object-gops").f=ee,i&&!e("./_library")&&u(Y,"propertyIsEnumerable",X,!0),_.f=function(e){return K(d(e))}),a(a.G+a.W+a.F*!W,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)d(te[re++]);for(var te=S(d.store),re=0;te.length>re;)b(te[re++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return o(G,e+="")?G[e]:G[e]=P(e)},keyFor:function(e){if(z(e))return h(G,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!W,"Object",{create:V,defineProperty:Q,defineProperties:H,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:ee}),T&&a(a.S+a.F*(!W||s(function(){var e=P();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!z(e)){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);return t=n[1],"function"==typeof t&&(r=t),!r&&v(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!z(t))return t}),n[1]=t,F.apply(T,n)}}}),P[I][N]||e("./_hide")(P[I],N,P[I].valueOf),l(P,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},{"./_an-object":37,"./_descriptors":45,"./_enum-keys":48,"./_export":49,"./_fails":50,"./_global":51,"./_has":52,"./_hide":53,"./_is-array":58,"./_keyof":66,"./_library":67,"./_meta":68,"./_object-create":69,"./_object-dp":70,"./_object-gopd":72,"./_object-gopn":74,"./_object-gopn-ext":73,"./_object-gops":75,"./_object-keys":78,"./_object-pie":79,"./_property-desc":81,"./_redefine":82,"./_set-to-string-tag":84,"./_shared":86,"./_to-iobject":90,"./_to-primitive":93,"./_uid":94,"./_wks":97,"./_wks-define":95,"./_wks-ext":96}],110:[function(e,t,r){e("./_wks-define")("asyncIterator")},{"./_wks-define":95}],111:[function(e,t,r){e("./_wks-define")("observable")},{"./_wks-define":95}],112:[function(e,t,r){e("./es6.array.iterator");for(var n=e("./_global"),o=e("./_hide"),i=e("./_iterators"),a=e("./_wks")("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var s=u[c],f=n[s],l=f&&f.prototype;l&&!l[a]&&o(l,a,s),i[s]=i.Array}},{"./_global":51,"./_hide":53,"./_iterators":65,"./_wks":97,"./es6.array.iterator":102}],113:[function(e,t,r){(function(r){var n="object"==typeof r?r:"object"==typeof window?window:"object"==typeof self?self:this,o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=e("./runtime"),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./runtime":114}],114:[function(e,t,r){(function(e,r){!function(r){"use strict";function n(e,t,r,n){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),u=new _(n||[]);return a._invoke=f(e,r,u),a}function o(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function i(){}function a(){}function u(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(t){function r(e,n,i,a){var u=o(t[e],t,n);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&m.call(s,"__await")?Promise.resolve(s.__await).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):Promise.resolve(s).then(function(e){c.value=e,i(c)},a)}a(u.arg)}function n(e,t){function n(){return new Promise(function(n,o){r(e,t,n,o)})}return i=i?i.then(n,n):n()}"object"==typeof e&&e.domain&&(r=e.domain.bind(r));var i;this._invoke=n}function f(e,t,r){var n=O;return function(i,a){if(n===S)throw new Error("Generator is already running");if(n===L){if("throw"===i)throw a;return h()}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=l(u,r);if(c){if(c===M)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===O)throw n=L,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=S;var s=o(e,t,r);if("normal"===s.type){if(n=r.done?L:E,s.arg===M)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=L,r.method="throw",r.arg=s.arg)}}}function l(e,t){var r=e.iterator[t.method];if(r===y){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=y,l(e,t),"throw"===t.method))return M;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return M}var n=o(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,M;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=y),t.delegate=null,M):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,M)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function b(e){if(e){var t=e[j];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),u=m.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),d(r),M}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;d(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:b(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=y),M}}}("object"==typeof r?r:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:1}],115:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":113}]},{},[2])(2)}); diff --git a/docs/js/libs/es6-shim.min.js b/docs/js/libs/es6-shim.min.js deleted file mode 100644 index 1c2d15c01..000000000 --- a/docs/js/libs/es6-shim.min.js +++ /dev/null @@ -1,11 +0,0 @@ -/*! - * https://github.com/paulmillr/es6-shim - * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) - * and contributors, MIT License - * es6-shim: v0.35.1 - * see https://github.com/paulmillr/es6-shim/blob/0.35.1/LICENSE - * Details and documentation: - * https://github.com/paulmillr/es6-shim/ - */ -(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=Function.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=Array.isArray;var n=Object.keys;var o=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var i=function(e){try{e();return false}catch(t){return true}};var a=function valueOrFalseIfThrows(e){try{return e()}catch(t){return false}};var u=o(i);var f=function(){return!i(function(){Object.defineProperty({},"x",{get:function(){}})})};var s=!!Object.defineProperty&&f();var c=function foo(){}.name==="foo";var l=Function.call.bind(Array.prototype.forEach);var p=Function.call.bind(Array.prototype.reduce);var v=Function.call.bind(Array.prototype.filter);var y=Function.call.bind(Array.prototype.some);var h=function(e,t,r,n){if(!n&&t in e){return}if(s){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var b=function(e,t,r){l(n(t),function(n){var o=t[n];h(e,n,o,!!r)})};var g=Function.call.bind(Object.prototype.toString);var d=typeof/abc/==="function"?function IsCallableSlow(e){return typeof e==="function"&&g(e)==="[object Function]"}:function IsCallableFast(e){return typeof e==="function"};var O={getter:function(e,t,r){if(!s){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!s){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function getKey(){return e[t]},set:function setKey(r){e[t]=r}})},redefine:function(e,t,r){if(s){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},defineByDescriptor:function(e,t,r){if(s){Object.defineProperty(e,t,r)}else if("value"in r){e[t]=r.value}},preserveToString:function(e,t){if(t&&d(t.toString)){h(e,"toString",t.toString.bind(t),true)}}};var m=Object.create||function(e,t){var r=function Prototype(){};r.prototype=e;var o=new r;if(typeof t!=="undefined"){n(t).forEach(function(e){O.defineByDescriptor(o,e,t[e])})}return o};var w=function(e,t){if(!Object.setPrototypeOf){return false}return a(function(){var r=function Subclass(t){var r=new e(t);Object.setPrototypeOf(r,Subclass.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=m(e.prototype,{constructor:{value:r}});return t(r)})};var j=function(){if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}throw new Error("unable to locate global object")};var S=j();var T=S.isFinite;var I=Function.call.bind(String.prototype.indexOf);var E=Function.apply.bind(Array.prototype.indexOf);var P=Function.call.bind(Array.prototype.concat);var C=Function.call.bind(String.prototype.slice);var M=Function.call.bind(Array.prototype.push);var x=Function.apply.bind(Array.prototype.push);var N=Function.call.bind(Array.prototype.shift);var A=Math.max;var R=Math.min;var _=Math.floor;var k=Math.abs;var F=Math.exp;var L=Math.log;var D=Math.sqrt;var z=Function.call.bind(Object.prototype.hasOwnProperty);var q;var W=function(){};var G=S.Symbol||{};var H=G.species||"@@species";var V=Number.isNaN||function isNaN(e){return e!==e};var B=Number.isFinite||function isFinite(e){return typeof e==="number"&&T(e)};var $=d(Math.sign)?Math.sign:function sign(e){var t=Number(e);if(t===0){return t}if(V(t)){return t}return t<0?-1:1};var U=function isArguments(e){return g(e)==="[object Arguments]"};var J=function isArguments(e){return e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&g(e)!=="[object Array]"&&g(e.callee)==="[object Function]"};var X=U(arguments)?U:J;var K={primitive:function(e){return e===null||typeof e!=="function"&&typeof e!=="object"},string:function(e){return g(e)==="[object String]"},regex:function(e){return g(e)==="[object RegExp]"},symbol:function(e){return typeof S.Symbol==="function"&&typeof e==="symbol"}};var Z=function overrideNative(e,t,r){var n=e[t];h(e,t,r,true);O.preserveToString(e[t],n)};var Y=typeof G==="function"&&typeof G["for"]==="function"&&K.symbol(G());var Q=K.symbol(G.iterator)?G.iterator:"_es6-shim iterator_";if(S.Set&&typeof(new S.Set)["@@iterator"]==="function"){Q="@@iterator"}if(!S.Reflect){h(S,"Reflect",{},true)}var ee=S.Reflect;var te=String;var re={Call:function Call(t,r){var n=arguments.length>2?arguments[2]:[];if(!re.IsCallable(t)){throw new TypeError(t+" is not a function")}return e(t,r,n)},RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||"Cannot call method on "+e)}return e},TypeIsObject:function(e){if(e===void 0||e===null||e===true||e===false){return false}return typeof e==="function"||typeof e==="object"},ToObject:function(e,t){return Object(re.RequireObjectCoercible(e,t))},IsCallable:d,IsConstructor:function(e){return re.IsCallable(e)},ToInt32:function(e){return re.ToNumber(e)>>0},ToUint32:function(e){return re.ToNumber(e)>>>0},ToNumber:function(e){if(g(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=re.ToNumber(e);if(V(t)){return 0}if(t===0||!B(t)){return t}return(t>0?1:-1)*_(k(t))},ToLength:function(e){var t=re.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return V(e)&&V(t)},SameValueZero:function(e,t){return e===t||V(e)&&V(t)},IsIterable:function(e){return re.TypeIsObject(e)&&(typeof e[Q]!=="undefined"||X(e))},GetIterator:function(e){if(X(e)){return new q(e,"value")}var t=re.GetMethod(e,Q);if(!re.IsCallable(t)){throw new TypeError("value is not an iterable")}var r=re.Call(t,e);if(!re.TypeIsObject(r)){throw new TypeError("bad iterator")}return r},GetMethod:function(e,t){var r=re.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!re.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,t){var r=re.GetMethod(e,"return");if(r===void 0){return}var n,o;try{n=re.Call(r,e)}catch(i){o=i}if(t){return}if(o){throw o}if(!re.TypeIsObject(n)){throw new TypeError("Iterator's return method returned a non-object.")}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!re.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=re.IteratorNext(e);var r=re.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){var o=typeof r==="undefined"?e:r;if(!n&&ee.construct){return ee.construct(e,t,o)}var i=o.prototype;if(!re.TypeIsObject(i)){i=Object.prototype}var a=m(i);var u=re.Call(e,a,t);return re.TypeIsObject(u)?u:a},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!re.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[H];if(n===void 0||n===null){return t}if(!re.IsConstructor(n)){throw new TypeError("Bad @@species")}return n},CreateHTML:function(e,t,r,n){var o=re.ToString(e);var i="<"+t;if(r!==""){var a=re.ToString(n);var u=a.replace(/"/g,""");i+=" "+r+'="'+u+'"'}var f=i+">";var s=f+o;return s+""},IsRegExp:function IsRegExp(e){if(!re.TypeIsObject(e)){return false}var t=e[G.match];if(typeof t!=="undefined"){return!!t}return K.regex(e)},ToString:function ToString(e){return te(e)}};if(s&&Y){var ne=function defineWellKnownSymbol(e){if(K.symbol(G[e])){return G[e]}var t=G["for"]("Symbol."+e);Object.defineProperty(G,e,{configurable:false,enumerable:false,writable:false,value:t});return t};if(!K.symbol(G.search)){var oe=ne("search");var ie=String.prototype.search;h(RegExp.prototype,oe,function search(e){return re.Call(ie,e,[this])});var ae=function search(e){var t=re.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var r=re.GetMethod(e,oe);if(typeof r!=="undefined"){return re.Call(r,e,[t])}}return re.Call(ie,t,[re.ToString(e)])};Z(String.prototype,"search",ae)}if(!K.symbol(G.replace)){var ue=ne("replace");var fe=String.prototype.replace;h(RegExp.prototype,ue,function replace(e,t){return re.Call(fe,e,[this,t])});var se=function replace(e,t){var r=re.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var n=re.GetMethod(e,ue);if(typeof n!=="undefined"){return re.Call(n,e,[r,t])}}return re.Call(fe,r,[re.ToString(e),t])};Z(String.prototype,"replace",se)}if(!K.symbol(G.split)){var ce=ne("split");var le=String.prototype.split;h(RegExp.prototype,ce,function split(e,t){return re.Call(le,e,[this,t])});var pe=function split(e,t){var r=re.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var n=re.GetMethod(e,ce);if(typeof n!=="undefined"){return re.Call(n,e,[r,t])}}return re.Call(le,r,[re.ToString(e),t])};Z(String.prototype,"split",pe)}var ve=K.symbol(G.match);var ye=ve&&function(){var e={};e[G.match]=function(){return 42};return"a".match(e)!==42}();if(!ve||ye){var he=ne("match");var be=String.prototype.match;h(RegExp.prototype,he,function match(e){return re.Call(be,e,[this])});var ge=function match(e){var t=re.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var r=re.GetMethod(e,he);if(typeof r!=="undefined"){return re.Call(r,e,[t])}}return re.Call(be,t,[re.ToString(e)])};Z(String.prototype,"match",ge)}}var de=function wrapConstructor(e,t,r){O.preserveToString(t,e);if(Object.setPrototypeOf){Object.setPrototypeOf(e,t)}if(s){l(Object.getOwnPropertyNames(e),function(n){if(n in W||r[n]){return}O.proxy(e,n,t)})}else{l(Object.keys(e),function(n){if(n in W||r[n]){return}t[n]=e[n]})}t.prototype=e.prototype;O.redefine(e.prototype,"constructor",t)};var Oe=function(){return this};var me=function(e){if(s&&!z(e,H)){O.getter(e,H,Oe)}};var we=function(e,t){var r=t||function iterator(){return this};h(e,Q,r);if(!e[Q]&&K.symbol(Q)){e[Q]=r}};var je=function createDataProperty(e,t,r){if(s){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}};var Se=function createDataPropertyOrThrow(e,t,r){je(e,t,r);if(!re.SameValue(e[t],r)){throw new TypeError("property is nonconfigurable")}};var Te=function(e,t,r,n){if(!re.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!re.TypeIsObject(o)){o=r}var i=m(o);for(var a in n){if(z(n,a)){var u=n[a];h(i,a,u,true)}}return i};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var Ie=String.fromCodePoint;Z(String,"fromCodePoint",function fromCodePoint(e){return re.Call(Ie,this,arguments)})}var Ee={fromCodePoint:function fromCodePoint(e){var t=[];var r;for(var n=0,o=arguments.length;n1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){M(t,String.fromCharCode(r))}else{r-=65536;M(t,String.fromCharCode((r>>10)+55296));M(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function raw(e){var t=re.ToObject(e,"bad callSite");var r=re.ToObject(t.raw,"bad raw value");var n=r.length;var o=re.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,f,s,c;while(a=o){break}f=a+1=Ce){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return Pe(t,r)},startsWith:function startsWith(e){var t=re.ToString(re.RequireObjectCoercible(this));if(re.IsRegExp(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}var r=re.ToString(e);var n;if(arguments.length>1){n=arguments[1]}var o=A(re.ToInteger(n),0);return C(t,o,o+r.length)===r},endsWith:function endsWith(e){var t=re.ToString(re.RequireObjectCoercible(this));if(re.IsRegExp(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}var r=re.ToString(e);var n=t.length;var o;if(arguments.length>1){o=arguments[1]}var i=typeof o==="undefined"?n:re.ToInteger(o);var a=R(A(i,0),n);return C(t,a-r.length,a)===r},includes:function includes(e){if(re.IsRegExp(e)){throw new TypeError('"includes" does not accept a RegExp')}var t=re.ToString(e);var r;if(arguments.length>1){r=arguments[1]}return I(this,t,r)!==-1},codePointAt:function codePointAt(e){var t=re.ToString(re.RequireObjectCoercible(this));var r=re.ToInteger(e);var n=t.length;if(r>=0&&r56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",Infinity)!==false){Z(String.prototype,"includes",Me.includes)}if(String.prototype.startsWith&&String.prototype.endsWith){var xe=i(function(){"/a/".startsWith(/a/)});var Ne=a(function(){return"abc".startsWith("a",Infinity)===false});if(!xe||!Ne){Z(String.prototype,"startsWith",Me.startsWith);Z(String.prototype,"endsWith",Me.endsWith)}}if(Y){var Ae=a(function(){var e=/a/;e[G.match]=false;return"/a/".startsWith(e)});if(!Ae){Z(String.prototype,"startsWith",Me.startsWith)}var Re=a(function(){var e=/a/;e[G.match]=false;return"/a/".endsWith(e)});if(!Re){Z(String.prototype,"endsWith",Me.endsWith)}var _e=a(function(){var e=/a/;e[G.match]=false;return"/a/".includes(e)});if(!_e){Z(String.prototype,"includes",Me.includes)}}b(String.prototype,Me);var ke=[" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join("");var Fe=new RegExp("(^["+ke+"]+)|(["+ke+"]+$)","g");var Le=function trim(){return re.ToString(re.RequireObjectCoercible(this)).replace(Fe,"")};var De=["\x85","\u200b","\ufffe"].join("");var ze=new RegExp("["+De+"]","g");var qe=/^[\-+]0x[0-9a-f]+$/i;var We=De.trim().length!==De.length;h(String.prototype,"trim",Le,We);var Ge=function(e){return{value:e,done:arguments.length===0}};var He=function(e){re.RequireObjectCoercible(e);this._s=re.ToString(e);this._i=0};He.prototype.next=function(){var e=this._s;var t=this._i;if(typeof e==="undefined"||t>=e.length){this._s=void 0;return Ge()}var r=e.charCodeAt(t);var n,o;if(r<55296||r>56319||t+1===e.length){o=1}else{n=e.charCodeAt(t+1);o=n<56320||n>57343?1:2}this._i=t+o;return Ge(e.substr(t,o))};we(He.prototype);we(String.prototype,function(){return new He(this)});var Ve={from:function from(e){var r=this;var n;if(arguments.length>1){n=arguments[1]}var o,i;if(typeof n==="undefined"){o=false}else{if(!re.IsCallable(n)){throw new TypeError("Array.from: when provided, the second argument must be a function")}if(arguments.length>2){i=arguments[2]}o=true}var a=typeof(X(e)||re.GetMethod(e,Q))!=="undefined";var u,f,s;if(a){f=re.IsConstructor(r)?Object(new r):[];var c=re.GetIterator(e);var l,p;s=0;while(true){l=re.IteratorStep(c);if(l===false){break}p=l.value;try{if(o){p=typeof i==="undefined"?n(p,s):t(n,i,p,s)}f[s]=p}catch(v){re.IteratorClose(c,true);throw v}s+=1}u=s}else{var y=re.ToObject(e);u=re.ToLength(y.length);f=re.IsConstructor(r)?Object(new r(u)):new Array(u);var h;for(s=0;s2){f=arguments[2]}var s=typeof f==="undefined"?n:re.ToInteger(f);var c=s<0?A(n+s,0):R(s,n);var l=R(c-u,n-a);var p=1;if(u0){if(u in r){r[a]=r[u]}else{delete r[a]}u+=p;a+=p;l-=1}return r},fill:function fill(e){var t;if(arguments.length>1){t=arguments[1]}var r;if(arguments.length>2){r=arguments[2]}var n=re.ToObject(this);var o=re.ToLength(n.length);t=re.ToInteger(typeof t==="undefined"?0:t);r=re.ToInteger(typeof r==="undefined"?o:r);var i=t<0?A(o+t,0):R(t,o);var a=r<0?o+r:r;for(var u=i;u1?arguments[1]:null;for(var i=0,a;i1?arguments[1]:null;for(var i=0;i1&&typeof arguments[1]!=="undefined"){return re.Call(Ze,this,arguments)}else{return t(Ze,this,e)}})}var Ye=-(Math.pow(2,32)-1);var Qe=function(e,r){var n={length:Ye};n[r?(n.length>>>0)-1:0]=true;return a(function(){t(e,n,function(){throw new RangeError("should not reach here")},[]);return true})};if(!Qe(Array.prototype.forEach)){var et=Array.prototype.forEach;Z(Array.prototype,"forEach",function forEach(e){return re.Call(et,this.length>=0?this:[],arguments)},true)}if(!Qe(Array.prototype.map)){var tt=Array.prototype.map;Z(Array.prototype,"map",function map(e){return re.Call(tt,this.length>=0?this:[],arguments)},true)}if(!Qe(Array.prototype.filter)){var rt=Array.prototype.filter;Z(Array.prototype,"filter",function filter(e){return re.Call(rt,this.length>=0?this:[],arguments)},true)}if(!Qe(Array.prototype.some)){var nt=Array.prototype.some;Z(Array.prototype,"some",function some(e){return re.Call(nt,this.length>=0?this:[],arguments)},true)}if(!Qe(Array.prototype.every)){var ot=Array.prototype.every;Z(Array.prototype,"every",function every(e){return re.Call(ot,this.length>=0?this:[],arguments)},true)}if(!Qe(Array.prototype.reduce)){var it=Array.prototype.reduce;Z(Array.prototype,"reduce",function reduce(e){return re.Call(it,this.length>=0?this:[],arguments)},true)}if(!Qe(Array.prototype.reduceRight,true)){var at=Array.prototype.reduceRight;Z(Array.prototype,"reduceRight",function reduceRight(e){return re.Call(at,this.length>=0?this:[],arguments)},true)}var ut=Number("0o10")!==8;var ft=Number("0b10")!==2;var st=y(De,function(e){return Number(e+0+e)===0});if(ut||ft||st){var ct=Number;var lt=/^0b[01]+$/i;var pt=/^0o[0-7]+$/i;var vt=lt.test.bind(lt);var yt=pt.test.bind(pt);var ht=function(e){var t;if(typeof e.valueOf==="function"){t=e.valueOf();if(K.primitive(t)){return t}}if(typeof e.toString==="function"){t=e.toString();if(K.primitive(t)){return t}}throw new TypeError("No default value")};var bt=ze.test.bind(ze);var gt=qe.test.bind(qe);var dt=function(){var e=function Number(t){var r;if(arguments.length>0){r=K.primitive(t)?t:ht(t,"number")}else{r=0}if(typeof r==="string"){r=re.Call(Le,r);if(vt(r)){r=parseInt(C(r,2),2)}else if(yt(r)){r=parseInt(C(r,2),8)}else if(bt(r)||gt(r)){r=NaN}}var n=this;var o=a(function(){ct.prototype.valueOf.call(n);return true});if(n instanceof e&&!o){return new ct(r)}return ct(r)};return e}();de(ct,dt,{});b(dt,{NaN:ct.NaN,MAX_VALUE:ct.MAX_VALUE,MIN_VALUE:ct.MIN_VALUE,NEGATIVE_INFINITY:ct.NEGATIVE_INFINITY,POSITIVE_INFINITY:ct.POSITIVE_INFINITY});Number=dt;O.redefine(S,"Number",dt)}var Ot=Math.pow(2,53)-1;b(Number,{MAX_SAFE_INTEGER:Ot,MIN_SAFE_INTEGER:-Ot,EPSILON:2.220446049250313e-16,parseInt:S.parseInt,parseFloat:S.parseFloat,isFinite:B,isInteger:function isInteger(e){return B(e)&&re.ToInteger(e)===e},isSafeInteger:function isSafeInteger(e){return Number.isInteger(e)&&k(e)<=Number.MAX_SAFE_INTEGER},isNaN:V});h(Number,"parseInt",S.parseInt,Number.parseInt!==S.parseInt);if(![,1].find(function(e,t){return t===0})){Z(Array.prototype,"find",$e.find)}if([,1].findIndex(function(e,t){return t===0})!==0){Z(Array.prototype,"findIndex",$e.findIndex)}var mt=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var wt=function ensureEnumerable(e,t){if(s&&mt(e,t)){Object.defineProperty(e,t,{enumerable:false})}};var jt=function sliceArgs(){var e=Number(this);var t=arguments.length;var r=t-e;var n=new Array(r<0?0:r);for(var o=e;o1){return NaN}if(t===-1){return-Infinity}if(t===1){return Infinity}if(t===0){return t}return.5*L((1+t)/(1-t))},cbrt:function cbrt(e){var t=Number(e);if(t===0){return t}var r=t<0;var n;if(r){t=-t}if(t===Infinity){n=Infinity}else{n=F(L(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function clz32(e){var t=Number(e);var r=re.ToUint32(t);if(r===0){return 32}return Or?re.Call(Or,r):31-_(L(r+.5)*gr)},cosh:function cosh(e){var t=Number(e);if(t===0){return 1}if(V(t)){return NaN}if(!T(t)){return Infinity}if(t<0){t=-t}if(t>21){return F(t)/2}return(F(t)+F(-t))/2},expm1:function expm1(e){var t=Number(e);if(t===-Infinity){return-1}if(!T(t)||t===0){return t}if(k(t)>.5){return F(t)-1}var r=t;var n=0;var o=1;while(n+r!==n){n+=r;o+=1;r*=t/o}return n},hypot:function hypot(e,t){var r=0;var n=0;for(var o=0;o0?i/n*(i/n):i}}return n===Infinity?Infinity:n*D(r)},log2:function log2(e){return L(e)*gr},log10:function log10(e){return L(e)*dr},log1p:function log1p(e){var t=Number(e);if(t<-1||V(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(L(1+t)/(1+t-1))},sign:$,sinh:function sinh(e){var t=Number(e);if(!T(t)||t===0){return t}if(k(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(F(t-1)-F(-t-1))*br/2},tanh:function tanh(e){var t=Number(e);if(V(t)||t===0){return t}if(t>=20){return 1}if(t<=-20){return-1}return(Math.expm1(t)-Math.expm1(-t))/(F(t)+F(-t))},trunc:function trunc(e){var t=Number(e);return t<0?-_(-t):_(t)},imul:function imul(e,t){var r=re.ToUint32(e);var n=re.ToUint32(t);var o=r>>>16&65535;var i=r&65535;var a=n>>>16&65535;var u=n&65535;return i*u+(o*u+i*a<<16>>>0)|0},fround:function fround(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||V(t)){return t}var r=$(t);var n=k(t);if(nyr||V(i)){return r*Infinity}return r*i}};b(Math,mr);h(Math,"log1p",mr.log1p,Math.log1p(-1e-17)!==-1e-17);h(Math,"asinh",mr.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));h(Math,"tanh",mr.tanh,Math.tanh(-2e-17)!==-2e-17);h(Math,"acosh",mr.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);h(Math,"cbrt",mr.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);h(Math,"sinh",mr.sinh,Math.sinh(-2e-17)!==-2e-17);var wr=Math.expm1(10);h(Math,"expm1",mr.expm1,wr>22025.465794806718||wr<22025.465794806718);var jr=Math.round;var Sr=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var Tr=lr+1;var Ir=2*lr-1;var Er=[Tr,Ir].every(function(e){return Math.round(e)===e});h(Math,"round",function round(e){var t=_(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!Sr||!Er);O.preserveToString(Math.round,jr);var Pr=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=mr.imul;O.preserveToString(Math.imul,Pr)}if(Math.imul.length!==2){Z(Math,"imul",function imul(e,t){return re.Call(Pr,Math,arguments); -})}var Cr=function(){var e=S.setTimeout;if(typeof e!=="function"&&typeof e!=="object"){return}re.IsPromise=function(e){if(!re.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var r=function(e){if(!re.IsConstructor(e)){throw new TypeError("Bad promise constructor")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){throw new TypeError("Bad Promise implementation!")}t.resolve=e;t.reject=r};t.resolve=void 0;t.reject=void 0;t.promise=new e(r);if(!(re.IsCallable(t.resolve)&&re.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var n;if(typeof window!=="undefined"&&re.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){M(e,r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=N(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=S.Promise;var t=e&&e.resolve&&e.resolve();return t&&function(e){return t.then(e)}};var i=re.IsCallable(S.setImmediate)?S.setImmediate:typeof process==="object"&&process.nextTick?process.nextTick:o()||(re.IsCallable(n)?n():function(t){e(t,0)});var a=function(e){return e};var u=function(e){throw e};var f=0;var s=1;var c=2;var l=0;var p=1;var v=2;var y={};var h=function(e,t,r){i(function(){g(e,t,r)})};var g=function(e,t,r){var n,o;if(t===y){return e(r)}try{n=e(r);o=t.resolve}catch(i){n=i;o=t.reject}o(n)};var d=function(e,t){var r=e._promise;var n=r.reactionLength;if(n>0){h(r.fulfillReactionHandler0,r.reactionCapability0,t);r.fulfillReactionHandler0=void 0;r.rejectReactions0=void 0;r.reactionCapability0=void 0;if(n>1){for(var o=1,i=0;o0){h(r.rejectReactionHandler0,r.reactionCapability0,t);r.fulfillReactionHandler0=void 0;r.rejectReactions0=void 0;r.reactionCapability0=void 0;if(n>1){for(var o=1,i=0;o2&&arguments[2]===y;if(b&&o===E){i=y}else{i=new r(o)}var g=re.IsCallable(e)?e:a;var d=re.IsCallable(t)?t:u;var O=n._promise;var m;if(O.state===f){if(O.reactionLength===0){O.fulfillReactionHandler0=g;O.rejectReactionHandler0=d;O.reactionCapability0=i}else{var w=3*(O.reactionLength-1);O[w+l]=g;O[w+p]=d;O[w+v]=i}O.reactionLength+=1}else if(O.state===s){m=O.result;h(g,i,m)}else if(O.state===c){m=O.result;h(d,i,m)}else{throw new TypeError("unexpected Promise state")}return i.promise}});y=new r(E);I=T.then;return E}();if(S.Promise){delete S.Promise.accept;delete S.Promise.defer;delete S.Promise.prototype.chain}if(typeof Cr==="function"){b(S,{Promise:Cr});var Mr=w(S.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var xr=!i(function(){S.Promise.reject(42).then(null,5).then(null,W)});var Nr=i(function(){S.Promise.call(3,W)});var Ar=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);try{r.then(null,W).then(null,W)}catch(n){return true}return t===r}(S.Promise);var Rr=s&&function(){var e=0;var t=Object.defineProperty({},"then",{get:function(){e+=1}});Promise.resolve(t);return e===1}();var _r=function BadResolverPromise(e){var t=new Promise(e);e(3,function(){});this.then=t.then;this.constructor=BadResolverPromise};_r.prototype=Promise.prototype;_r.all=Promise.all;var kr=a(function(){return!!_r.all([1,2])});if(!Mr||!xr||!Nr||Ar||!Rr||kr){Promise=Cr;Z(S,"Promise",Cr)}if(Promise.all.length!==1){var Fr=Promise.all;Z(Promise,"all",function all(e){return re.Call(Fr,this,arguments)})}if(Promise.race.length!==1){var Lr=Promise.race;Z(Promise,"race",function race(e){return re.Call(Lr,this,arguments)})}if(Promise.resolve.length!==1){var Dr=Promise.resolve;Z(Promise,"resolve",function resolve(e){return re.Call(Dr,this,arguments)})}if(Promise.reject.length!==1){var zr=Promise.reject;Z(Promise,"reject",function reject(e){return re.Call(zr,this,arguments)})}wt(Promise,"all");wt(Promise,"race");wt(Promise,"resolve");wt(Promise,"reject");me(Promise)}var qr=function(e){var t=n(p(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var Wr=qr(["z","a","bb"]);var Gr=qr(["z",1,"a","3",2]);if(s){var Hr=function fastkey(e){if(!Wr){return null}if(typeof e==="undefined"||e===null){return"^"+re.ToString(e)}else if(typeof e==="string"){return"$"+e}else if(typeof e==="number"){if(!Gr){return"n"+e}return e}else if(typeof e==="boolean"){return"b"+e}return null};var Vr=function emptyObject(){return Object.create?Object.create(null):{}};var Br=function addIterableToMap(e,n,o){if(r(o)||K.string(o)){l(o,function(e){if(!re.TypeIsObject(e)){throw new TypeError("Iterator value "+e+" is not an entry object")}n.set(e[0],e[1])})}else if(o instanceof e){t(e.prototype.forEach,o,function(e,t){n.set(t,e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.set;if(!re.IsCallable(a)){throw new TypeError("bad map")}i=re.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=re.IteratorStep(i);if(u===false){break}var f=u.value;try{if(!re.TypeIsObject(f)){throw new TypeError("Iterator value "+f+" is not an entry object")}t(a,n,f[0],f[1])}catch(s){re.IteratorClose(i,true);throw s}}}}};var $r=function addIterableToSet(e,n,o){if(r(o)||K.string(o)){l(o,function(e){n.add(e)})}else if(o instanceof e){t(e.prototype.forEach,o,function(e){n.add(e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.add;if(!re.IsCallable(a)){throw new TypeError("bad set")}i=re.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=re.IteratorStep(i);if(u===false){break}var f=u.value;try{t(a,n,f)}catch(s){re.IteratorClose(i,true);throw s}}}}};var Ur={Map:function(){var e={};var r=function MapEntry(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function isRemoved(){return this.key===e};var n=function isMap(e){return!!e._es6map};var o=function requireMapSlot(e,t){if(!re.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+re.ToString(e))}};var i=function MapIterator(e,t){o(e,"[[MapIterator]]");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function next(){var e=this.i;var t=this.kind;var r=this.head;if(typeof this.i==="undefined"){return Ge()}while(e.isRemoved()&&e!==r){e=e.prev}var n;while(e.next!==r){e=e.next;if(!e.isRemoved()){if(t==="key"){n=e.key}else if(t==="value"){n=e.value}else{n=[e.key,e.value]}this.i=e;return Ge(n)}}this.i=void 0;return Ge()}};we(i.prototype);var a;var u=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=Te(this,Map,a,{_es6map:true,_head:null,_storage:Vr(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Br(Map,e,arguments[0])}return e};a=u.prototype;O.getter(a,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});b(a,{get:function get(e){o(this,"get");var t=Hr(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head;var i=n;while((i=i.next)!==n){if(re.SameValueZero(i.key,e)){return i.value}}},has:function has(e){o(this,"has");var t=Hr(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head;var n=r;while((n=n.next)!==r){if(re.SameValueZero(n.key,e)){return true}}return false},set:function set(e,t){o(this,"set");var n=this._head;var i=n;var a;var u=Hr(e);if(u!==null){if(typeof this._storage[u]!=="undefined"){this._storage[u].value=t;return this}else{a=this._storage[u]=new r(e,t);i=n.prev}}while((i=i.next)!==n){if(re.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(re.SameValue(-0,e)){a.key=+0}a.next=this._head;a.prev=this._head.prev;a.prev.next=a;a.next.prev=a;this._size+=1;return this},"delete":function(t){o(this,"delete");var r=this._head;var n=r;var i=Hr(t);if(i!==null){if(typeof this._storage[i]==="undefined"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(re.SameValueZero(n.key,t)){n.key=n.value=e;n.prev.next=n.next;n.next.prev=n.prev;this._size-=1;return true}}return false},clear:function clear(){o(this,"clear");this._size=0;this._storage=Vr();var t=this._head;var r=t;var n=r.next;while((r=n)!==t){r.key=r.value=e;n=r.next;r.next=r.prev=t}t.next=t.prev=t},keys:function keys(){o(this,"keys");return new i(this,"key")},values:function values(){o(this,"values");return new i(this,"value")},entries:function entries(){o(this,"entries");return new i(this,"key+value")},forEach:function forEach(e){o(this,"forEach");var r=arguments.length>1?arguments[1]:null;var n=this.entries();for(var i=n.next();!i.done;i=n.next()){if(r){t(e,r,i.value[1],i.value[0],this)}else{e(i.value[1],i.value[0],this)}}}});we(a,a.entries);return u}(),Set:function(){var e=function isSet(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function requireSetSlot(t,r){if(!re.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+re.ToString(t))}};var o;var i=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=Te(this,Set,o,{_es6set:true,"[[SetData]]":null,_storage:Vr()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){$r(Set,e,arguments[0])}return e};o=i.prototype;var a=function(e){var t=e;if(t==="^null"){return null}else if(t==="^undefined"){return void 0}else{var r=t.charAt(0);if(r==="$"){return C(t,1)}else if(r==="n"){return+C(t,1)}else if(r==="b"){return t==="btrue"}}return+t};var u=function ensureMap(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new Ur.Map;l(n(e._storage),function(e){var r=a(e);t.set(r,r)});e["[[SetData]]"]=t}e._storage=null};O.getter(i.prototype,"size",function(){r(this,"size");if(this._storage){return n(this._storage).length}u(this);return this["[[SetData]]"].size});b(i.prototype,{has:function has(e){r(this,"has");var t;if(this._storage&&(t=Hr(e))!==null){return!!this._storage[t]}u(this);return this["[[SetData]]"].has(e)},add:function add(e){r(this,"add");var t;if(this._storage&&(t=Hr(e))!==null){this._storage[t]=true;return this}u(this);this["[[SetData]]"].set(e,e);return this},"delete":function(e){r(this,"delete");var t;if(this._storage&&(t=Hr(e))!==null){var n=z(this._storage,t);return delete this._storage[t]&&n}u(this);return this["[[SetData]]"]["delete"](e)},clear:function clear(){r(this,"clear");if(this._storage){this._storage=Vr()}if(this["[[SetData]]"]){this["[[SetData]]"].clear()}},values:function values(){r(this,"values");u(this);return this["[[SetData]]"].values()},entries:function entries(){r(this,"entries");u(this);return this["[[SetData]]"].entries()},forEach:function forEach(e){r(this,"forEach");var n=arguments.length>1?arguments[1]:null;var o=this;u(o);this["[[SetData]]"].forEach(function(r,i){if(n){t(e,n,i,i,o)}else{e(i,i,o)}})}});h(i.prototype,"keys",i.prototype.values,true);we(i.prototype,i.prototype.values);return i}()};if(S.Map||S.Set){var Jr=a(function(){return new Map([[1,2]]).get(1)===2});if(!Jr){var Xr=S.Map;S.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new Xr;if(arguments.length>0){Br(Map,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,S.Map.prototype);return e};S.Map.prototype=m(Xr.prototype);h(S.Map.prototype,"constructor",S.Map,true);O.preserveToString(S.Map,Xr)}var Kr=new Map;var Zr=function(){var e=new Map([[1,0],[2,0],[3,0],[4,0]]);e.set(-0,e);return e.get(0)===e&&e.get(-0)===e&&e.has(0)&&e.has(-0)}();var Yr=Kr.set(1,2)===Kr;if(!Zr||!Yr){var Qr=Map.prototype.set;Z(Map.prototype,"set",function set(e,r){t(Qr,this,e===0?0:e,r);return this})}if(!Zr){var en=Map.prototype.get;var tn=Map.prototype.has;b(Map.prototype,{get:function get(e){return t(en,this,e===0?0:e)},has:function has(e){return t(tn,this,e===0?0:e)}},true);O.preserveToString(Map.prototype.get,en);O.preserveToString(Map.prototype.has,tn)}var rn=new Set;var nn=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(rn);var on=rn.add(1)===rn;if(!nn||!on){var an=Set.prototype.add;Set.prototype.add=function add(e){t(an,this,e===0?0:e);return this};O.preserveToString(Set.prototype.add,an)}if(!nn){var un=Set.prototype.has;Set.prototype.has=function has(e){return t(un,this,e===0?0:e)};O.preserveToString(Set.prototype.has,un);var fn=Set.prototype["delete"];Set.prototype["delete"]=function SetDelete(e){return t(fn,this,e===0?0:e)};O.preserveToString(Set.prototype["delete"],fn)}var sn=w(S.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var cn=Object.setPrototypeOf&&!sn;var ln=function(){try{return!(S.Map()instanceof S.Map)}catch(e){return e instanceof TypeError}}();if(S.Map.length!==0||cn||!ln){var pn=S.Map;S.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new pn;if(arguments.length>0){Br(Map,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,Map.prototype);return e};S.Map.prototype=pn.prototype;h(S.Map.prototype,"constructor",S.Map,true);O.preserveToString(S.Map,pn)}var vn=w(S.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var yn=Object.setPrototypeOf&&!vn;var hn=function(){try{return!(S.Set()instanceof S.Set)}catch(e){return e instanceof TypeError}}();if(S.Set.length!==0||yn||!hn){var bn=S.Set;S.Set=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}var e=new bn;if(arguments.length>0){$r(Set,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,Set.prototype);return e};S.Set.prototype=bn.prototype;h(S.Set.prototype,"constructor",S.Set,true);O.preserveToString(S.Set,bn)}var gn=new S.Map;var dn=!a(function(){return gn.keys().next().done});if(typeof S.Map.prototype.clear!=="function"||(new S.Set).size!==0||gn.size!==0||typeof S.Map.prototype.keys!=="function"||typeof S.Set.prototype.keys!=="function"||typeof S.Map.prototype.forEach!=="function"||typeof S.Set.prototype.forEach!=="function"||u(S.Map)||u(S.Set)||typeof gn.keys().next!=="function"||dn||!sn){b(S,{Map:Ur.Map,Set:Ur.Set},true)}if(S.Set.prototype.keys!==S.Set.prototype.values){h(S.Set.prototype,"keys",S.Set.prototype.values,true)}we(Object.getPrototypeOf((new S.Map).keys()));we(Object.getPrototypeOf((new S.Set).keys()));if(c&&S.Set.prototype.has.name!=="has"){var On=S.Set.prototype.has;Z(S.Set.prototype,"has",function has(e){return t(On,this,e)})}}b(S,Ur);me(S.Map);me(S.Set)}var mn=function throwUnlessTargetIsObject(e){if(!re.TypeIsObject(e)){throw new TypeError("target must be an object")}};var wn={apply:function apply(){return re.Call(re.Call,null,arguments)},construct:function construct(e,t){if(!re.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length>2?arguments[2]:e;if(!re.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return re.Construct(e,t,r,"internal")},deleteProperty:function deleteProperty(e,t){mn(e);if(s){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},has:function has(e,t){mn(e);return t in e}};if(Object.getOwnPropertyNames){Object.assign(wn,{ownKeys:function ownKeys(e){mn(e);var t=Object.getOwnPropertyNames(e);if(re.IsCallable(Object.getOwnPropertySymbols)){x(t,Object.getOwnPropertySymbols(e))}return t}})}var jn=function ConvertExceptionToBoolean(e){return!i(e)};if(Object.preventExtensions){Object.assign(wn,{isExtensible:function isExtensible(e){mn(e);return Object.isExtensible(e)},preventExtensions:function preventExtensions(e){mn(e);return jn(function(){Object.preventExtensions(e)})}})}if(s){var Sn=function get(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n){var o=Object.getPrototypeOf(e);if(o===null){return void 0}return Sn(o,t,r)}if("value"in n){return n.value}if(n.get){return re.Call(n.get,r)}return void 0};var Tn=function set(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return Tn(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!re.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return ee.defineProperty(o,r,{value:n})}else{return ee.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};Object.assign(wn,{defineProperty:function defineProperty(e,t,r){mn(e);return jn(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){mn(e);return Object.getOwnPropertyDescriptor(e,t)},get:function get(e,t){mn(e);var r=arguments.length>2?arguments[2]:e;return Sn(e,t,r)},set:function set(e,t,r){mn(e);var n=arguments.length>3?arguments[3]:e;return Tn(e,t,r,n)}})}if(Object.getPrototypeOf){var In=Object.getPrototypeOf;wn.getPrototypeOf=function getPrototypeOf(e){mn(e);return In(e)}}if(Object.setPrototypeOf&&wn.getPrototypeOf){var En=function(e,t){var r=t;while(r){if(e===r){return true}r=wn.getPrototypeOf(r)}return false};Object.assign(wn,{setPrototypeOf:function setPrototypeOf(e,t){mn(e);if(t!==null&&!re.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===ee.getPrototypeOf(e)){return true}if(ee.isExtensible&&!ee.isExtensible(e)){return false}if(En(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}var Pn=function(e,t){if(!re.IsCallable(S.Reflect[e])){h(S.Reflect,e,t)}else{var r=a(function(){S.Reflect[e](1);S.Reflect[e](NaN);S.Reflect[e](true);return true});if(r){Z(S.Reflect,e,t)}}};Object.keys(wn).forEach(function(e){Pn(e,wn[e])});var Cn=S.Reflect.getPrototypeOf;if(c&&Cn&&Cn.name!=="getPrototypeOf"){Z(S.Reflect,"getPrototypeOf",function getPrototypeOf(e){return t(Cn,S.Reflect,e)})}if(S.Reflect.setPrototypeOf){if(a(function(){S.Reflect.setPrototypeOf(1,{});return true})){Z(S.Reflect,"setPrototypeOf",wn.setPrototypeOf)}}if(S.Reflect.defineProperty){if(!a(function(){var e=!S.Reflect.defineProperty(1,"test",{value:1});var t=typeof Object.preventExtensions!=="function"||!S.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return e&&t})){Z(S.Reflect,"defineProperty",wn.defineProperty)}}if(S.Reflect.construct){if(!a(function(){var e=function F(){};return S.Reflect.construct(function(){},[],e)instanceof e})){Z(S.Reflect,"construct",wn.construct)}}if(String(new Date(NaN))!=="Invalid Date"){var Mn=Date.prototype.toString;var xn=function toString(){var e=+this;if(e!==e){return"Invalid Date"}return re.Call(Mn,this)};Z(Date.prototype,"toString",xn)}var Nn={anchor:function anchor(e){return re.CreateHTML(this,"a","name",e)},big:function big(){return re.CreateHTML(this,"big","","")},blink:function blink(){return re.CreateHTML(this,"blink","","")},bold:function bold(){return re.CreateHTML(this,"b","","")},fixed:function fixed(){return re.CreateHTML(this,"tt","","")},fontcolor:function fontcolor(e){return re.CreateHTML(this,"font","color",e)},fontsize:function fontsize(e){return re.CreateHTML(this,"font","size",e)},italics:function italics(){return re.CreateHTML(this,"i","","")},link:function link(e){return re.CreateHTML(this,"a","href",e)},small:function small(){return re.CreateHTML(this,"small","","")},strike:function strike(){return re.CreateHTML(this,"strike","","")},sub:function sub(){return re.CreateHTML(this,"sub","","")},sup:function sub(){return re.CreateHTML(this,"sup","","")}};l(Object.keys(Nn),function(e){var r=String.prototype[e];var n=false;if(re.IsCallable(r)){var o=t(r,"",' " ');var i=P([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){Z(String.prototype,e,Nn[e])}});var An=function(){if(!Y){return false}var e=typeof JSON==="object"&&typeof JSON.stringify==="function"?JSON.stringify:null;if(!e){return false}if(typeof e(G())!=="undefined"){return true}if(e([G()])!=="[null]"){return true}var t={a:G()};t[G()]=true;if(e(t)!=="{}"){return true}return false}();var Rn=a(function(){if(!Y){return true}return JSON.stringify(Object(G()))==="{}"&&JSON.stringify([Object(G())])==="[{}]"});if(An||!Rn){var _n=JSON.stringify;Z(JSON,"stringify",function stringify(e){if(typeof e==="symbol"){return}var n;if(arguments.length>1){n=arguments[1]}var o=[e];if(!r(n)){var i=re.IsCallable(n)?n:null;var a=function(e,r){var n=i?t(i,this,e,r):r;if(typeof n!=="symbol"){if(K.symbol(n)){return St({})(n)}else{return n}}};o.push(a)}else{o.push(n)}if(arguments.length>2){o.push(arguments[2])}return _n.apply(this,o)})}return S}); \ No newline at end of file diff --git a/docs/js/libs/htmlparser.js b/docs/js/libs/htmlparser.js deleted file mode 100644 index 522b39cae..000000000 --- a/docs/js/libs/htmlparser.js +++ /dev/null @@ -1,23 +0,0 @@ -/*********************************************** -Copyright 2010 - 2012 Chris Winberry . All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -***********************************************/ -/* v2.0.0 */ - -!function(){function t(t,e){var a=function(){};a.prototype=e.prototype,t.super_=e,t.prototype=new a,t.prototype.constructor=t}function e(t,e){this._options=e||{},this._validateBuilder(t);this._builder=t,this.reset()}function a(t,e){this.reset(),this._options=e||{},void 0===this._options.ignoreWhitespace&&(this._options.ignoreWhitespace=!1),void 0===this._options.includeLocation&&(this._options.includeLocation=!1),void 0===this._options.verbose&&(this._options.verbose=!0),void 0===this._options.enforceEmptyTags&&(this._options.enforceEmptyTags=!0),void 0===this._options.caseSensitiveTags&&(this._options.caseSensitiveTags=!1),void 0===this._options.caseSensitiveAttr&&(this._options.caseSensitiveAttr=!1),"function"==typeof t&&(this._callback=t)}function n(t){n.super_.call(this,t,{ignoreWhitespace:!0,verbose:!1,enforceEmptyTags:!1,caseSensitiveTags:!0})}var i;if("undefined"!=typeof module&&void 0!==module.exports)i=module.exports;else{if(i={},this.Tautologistics||(this.Tautologistics={}),this.Tautologistics.NodeHtmlParser)return;this.Tautologistics.NodeHtmlParser=i}var s={Text:"text",Tag:"tag",Attr:"attr",CData:"cdata",Doctype:"doctype",Comment:"comment"};"undefined"!=typeof module&&void 0!==module.exports&&(t(e,require("stream")),e.prototype.writable=!0,e.prototype.write=function(t){t instanceof Buffer&&(t=t.toString()),this.parseChunk(t)},e.prototype.end=function(t){arguments.length&&this.write(t),this.writable=!1,this.done()},e.prototype.destroy=function(){this.writable=!1}),e.prototype.reset=function(){this._state={mode:s.Text,pos:0,data:null,pendingText:null,pendingWrite:null,lastTag:null,isScript:!1,needData:!1,output:[],done:!1},this._builder.reset()},e.prototype.parseChunk=function(t){for(this._state.needData=!1,this._state.data=null!==this._state.data?this._state.data.substr(this.pos)+t:t;this._state.pos\/]+)(\s*)\??(>?)/g,e.prototype._parseTag=function(){var t=this._state;e.re_parseTag.lastIndex=t.pos;var a=e.re_parseTag.exec(t.data);if(a){if(!a[1]&&"!--"===a[2].substr(0,3))return t.mode=s.Comment,void(t.pos+=3);if(!a[1]&&"![CDATA["===a[2].substr(0,8))return t.mode=s.CData,void(t.pos+=8);if(!a[1]&&"!DOCTYPE"===a[2].substr(0,8))return t.mode=s.Doctype,void(t.pos+=8);if(!t.done&&t.pos+a[0].length===t.data.length)return void(t.needData=!0);var n;">"===a[4]?(t.mode=s.Text,n=a[0].substr(0,a[0].length-1)):(t.mode=s.Attr,n=a[0]),t.pos+=a[0].length;var i={type:s.Tag,name:a[1]+a[2],raw:n};t.mode===s.Attr&&(t.lastTag=i),"script"===i.name.toLowerCase()?t.isScript=!0:"/script"===i.name.toLowerCase()&&(t.isScript=!1),t.mode===s.Attr?this._writePending(i):this._write(i)}else t.needData=!0},e.re_parseAttr_findName=/\s*([^=<>\s'"\/]+)\s*/g,e.prototype._parseAttr_findName=function(){e.re_parseAttr_findName.lastIndex=this._state.pos;var t=e.re_parseAttr_findName.exec(this._state.data);return t?this._state.pos+t[0].length!==e.re_parseAttr_findName.lastIndex?null:{match:t[0],name:t[1]}:null},e.re_parseAttr_findValue=/\s*=\s*(?:'([^']*)'|"([^"]*)"|([^'"\s\/>]+))\s*/g,e.re_parseAttr_findValue_last=/\s*=\s*['"]?(.*)$/g,e.prototype._parseAttr_findValue=function(){var t=this._state;e.re_parseAttr_findValue.lastIndex=t.pos;var a=e.re_parseAttr_findValue.exec(t.data);return a?t.pos+a[0].length!==e.re_parseAttr_findValue.lastIndex?null:{match:a[0],value:a[1]||a[2]||a[3]}:t.done?(e.re_parseAttr_findValue_last.lastIndex=t.pos,a=e.re_parseAttr_findValue_last.exec(t.data),a?{match:a[0],value:""!==a[1]?a[1]:null}:null):null},e.re_parseAttr_splitValue=/\s*=\s*['"]?/g,e.re_parseAttr_selfClose=/(\s*\/\s*)(>?)/g,e.prototype._parseAttr=function(){var t=this._state,a=this._parseAttr_findName(t);if(a&&"?"!==a.name){if(!t.done&&t.pos+a.match.length===t.data.length)return t.needData=!0,null;t.pos+=a.match.length;var n=this._parseAttr_findValue(t);t.data.indexOf(" ",t.pos);if(n){if(!t.done&&t.pos+n.match.length===t.data.length)return t.needData=!0,void(t.pos-=a.match.length);t.pos+=n.match.length}else if(t.data.indexOf(" ",t.pos-1))n={match:"",value:a.name};else{if(e.re_parseAttr_splitValue.lastIndex=t.pos,e.re_parseAttr_splitValue.exec(t.data))return t.needData=!0,void(t.pos-=a.match.length);n={match:"",value:null}}t.lastTag.raw+=a.match+n.match,this._writePending({type:s.Attr,name:a.name,data:n.value})}else{e.re_parseAttr_selfClose.lastIndex=t.pos;var i=e.re_parseAttr_selfClose.exec(t.data);if(i&&i.index===t.pos){if(!t.done&&!i[2]&&t.pos+i[0].length===t.data.length)return void(t.needData=!0);t.lastTag.raw+=i[1],this._write({type:s.Tag,name:"/"+t.lastTag.name,raw:null}),t.pos+=i[1].length}var r=t.data.indexOf(">",t.pos);if(r<0){if(t.done)return t.lastTag.raw+=t.data.substr(t.pos),void(t.pos=t.data.length);t.needData=!0}else t.pos=r+1,t.mode=s.Text}},e.re_parseCData_findEnding=/\]{1,2}$/,e.prototype._parseCData=function(){var t=this._state,a=t.data.indexOf("]]>",t.pos);if(a<0&&t.done&&(a=t.data.length),a<0){if(e.re_parseCData_findEnding.lastIndex=t.pos,e.re_parseCData_findEnding.exec(t.data))return void(t.needData=!0);t.pendingText||(t.pendingText=[]),t.pendingText.push(t.data.substr(t.pos,t.data.length)),t.pos=t.data.length,t.needData=!0}else{var n;t.pendingText?(t.pendingText.push(t.data.substring(t.pos,a)),n=t.pendingText.join(""),t.pendingText=null):n=t.data.substring(t.pos,a),this._write({type:s.CData,data:n}),t.mode=s.Text,t.pos=a+3}},e.prototype._parseDoctype=function(){var t=this._state,a=t.data.indexOf(">",t.pos);if(a<0&&t.done&&(a=t.data.length),a<0)e.re_parseCData_findEnding.lastIndex=t.pos,t.pendingText||(t.pendingText=[]),t.pendingText.push(t.data.substr(t.pos,t.data.length)),t.pos=t.data.length,t.needData=!0;else{var n;t.pendingText?(t.pendingText.push(t.data.substring(t.pos,a)),n=t.pendingText.join(""),t.pendingText=null):n=t.data.substring(t.pos,a),this._write({type:s.Doctype,data:n}),t.mode=s.Text,t.pos=a+1}},e.re_parseComment_findEnding=/\-{1,2}$/,e.prototype._parseComment=function(){var t=this._state,a=t.data.indexOf("--\x3e",t.pos);if(a<0&&t.done&&(a=t.data.length),a<0){if(e.re_parseComment_findEnding.lastIndex=t.pos,e.re_parseComment_findEnding.exec(t.data))return void(t.needData=!0);t.pendingText||(t.pendingText=[]),t.pendingText.push(t.data.substr(t.pos,t.data.length)),t.pos=t.data.length,t.needData=!0}else{var n;t.pendingText?(t.pendingText.push(t.data.substring(t.pos,a)),n=t.pendingText.join(""),t.pendingText=null):n=t.data.substring(t.pos,a),this._write({type:s.Comment,data:n}),t.mode=s.Text,t.pos=a+3}},a._emptyTags={area:1,base:1,basefont:1,br:1,col:1,frame:1,hr:1,img:1,input:1,isindex:1,link:1,meta:1,param:1,embed:1,"?xml":1},a.reWhitespace=/^\s*$/,a.prototype.dom=null,a.prototype.reset=function(){this.dom=[],this._done=!1,this._tagStack=[],this._lastTag=null,this._tagStack.last=function(){return this.length?this[this.length-1]:null},this._line=1,this._col=1},a.prototype.done=function(){this._done=!0,this.handleCallback(null)},a.prototype.error=function(t){this.handleCallback(t)},a.prototype.handleCallback=function(t){if("function"==typeof this._callback)this._callback(t,this.dom);else if(t)throw t},a.prototype.isEmptyTag=function(t){var e=t.name.toLowerCase();return"?"==e.charAt(0)||("/"==e.charAt(0)&&(e=e.substring(1)),this._options.enforceEmptyTags&&!!a._emptyTags[e])},a.prototype._getLocation=function(){return{line:this._line,col:this._col}},a.prototype._updateLocation=function(t){var e=t.type===s.Tag?t.raw:t.data;if(null!==e){var a=e.split("\n");this._line+=a.length-1,a.length>1&&(this._col=1),this._col+=a[a.length-1].length,t.type===s.Tag?this._col+=2:t.type===s.Comment?this._col+=7:t.type===s.CData&&(this._col+=12)}},a.prototype._copyElement=function(t){var e={type:t.type};if(this._options.verbose&&void 0!==t.raw&&(e.raw=t.raw),void 0!==t.name)switch(t.type){case s.Tag:e.name=this._options.caseSensitiveTags?t.name:t.name.toLowerCase();break;case s.Attr:e.name=this._options.caseSensitiveAttr?t.name:t.name.toLowerCase();break;default:e.name=this._options.caseSensitiveTags?t.name:t.name.toLowerCase()}return void 0!==t.data&&(e.data=t.data),t.location&&(e.location={line:t.location.line,col:t.location.col}),e},a.prototype.write=function(t){if(this._done&&this.handleCallback(new Error("Writing to the builder after done() called is not allowed without a reset()")),this._options.includeLocation&&t.type!==s.Attr&&(t.location=this._getLocation(),this._updateLocation(t)),t.type!==s.Text||!this._options.ignoreWhitespace||!a.reWhitespace.test(t.data)){var e,n;if(this._tagStack.last())if(t.type===s.Tag)if("/"==t.name.charAt(0)){var i=this._options.caseSensitiveTags?t.name.substring(1):t.name.substring(1).toLowerCase();if(!this.isEmptyTag(t)){for(var r=this._tagStack.length-1;r>-1&&this._tagStack[r--].name!=i;);if(r>-1||this._tagStack[0].name==i)for(;r=0&&s.length>=n)return s;if(a&&e.children)i=e.children;else{if(!(e instanceof Array))return s;i=e}for(var d=0;d=0&&s.length>=n));d++);return s},getElementById:function(t,e,a){var n=r.getElements({id:t},e,a,1);return n.length?n[0]:null},getElementsByTagName:function(t,e,a,n){return r.getElements({tag_name:t},e,a,n)},getElementsByTagType:function(t,e,a,n){return r.getElements({tag_type:t},e,a,n)}};i.Parser=e,i.HtmlBuilder=a,i.RssBuilder=n,i.ElementType=s,i.DomUtils=r}(); diff --git a/docs/js/libs/innersvg.js b/docs/js/libs/innersvg.js deleted file mode 100644 index b1099deb2..000000000 --- a/docs/js/libs/innersvg.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * innerHTML property for SVGElement - * Copyright(c) 2010, Jeff Schiller - * - * Licensed under the Apache License, Version 2 - * - * Minor modifications by Chris Price to only polyfill when required. - */ -!function(e){if(e&&!("innerHTML"in e.prototype)){var t=function(e,r){var i=e.nodeType;if(3==i)r.push(e.textContent.replace(/&/,"&").replace(/",">"));else if(1==i){if(r.push("<",e.tagName),e.hasAttributes())for(var n=e.attributes,s=0,o=n.length;s");for(var h=e.childNodes,s=0,o=h.length;s")}else r.push("/>")}else{if(8!=i)throw"Error serializing XML. Unhandled node of type: "+i;r.push("\x3c!--",e.nodeValue,"--\x3e")}};Object.defineProperty(e.prototype,"innerHTML",{get:function(){for(var e=[],r=this.firstChild;r;)t(r,e),r=r.nextSibling;return e.join("")},set:function(e){for(;this.firstChild;)this.removeChild(this.firstChild);try{var t=new DOMParser;t.async=!1,sXML=""+e+"";for(var r=t.parseFromString(sXML,"text/xml").documentElement.firstChild;r;)this.appendChild(this.ownerDocument.importNode(r,!0)),r=r.nextSibling}catch(e){throw new Error("Error parsing XML string")}}})}}((0,eval)("this").SVGElement); \ No newline at end of file diff --git a/docs/js/libs/lit-html.js b/docs/js/libs/lit-html.js deleted file mode 100644 index 082938164..000000000 --- a/docs/js/libs/lit-html.js +++ /dev/null @@ -1,2 +0,0 @@ -// lit-html v0.10.0 | © Polymer team -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.lithtml={})}(this,function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},r=function(){function e(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:x;i(this,e),this.strings=t,this.values=n,this.type=r,this.partCallback=o}return r(e,[{key:"getHTML",value:function(){for(var e,t,n=this.strings.length-1,r="",i=!0,o=0;o"),e.indexOf("<",t+1)>-1?e.length:t);r+=(i=s>-1?s"+n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getHTML",this).call(this)+""}},{key:"getTemplateElement",value:function(){var e=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getTemplateElement",this).call(this),r=e.content,i=r.firstChild;return r.removeChild(i),T(r,i.firstChild),e}}]),t}();function l(e){var t=o.get(e.type);void 0===t&&(t=new Map,o.set(e.type,t));var n=t.get(e.strings);return void 0===n&&(n=new v(e,e.getTemplateElement()),t.set(e.strings,n)),n}var u="{{lit-"+String(Math.random()).slice(2)+"}}",c="\x3c!--"+u+"--\x3e",h=new RegExp(u+"|"+c),f=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;var p=function e(t,n,r,o,a){i(this,e),this.type=t,this.index=n,this.name=r,this.rawName=o,this.strings=a},v=function e(t,n){i(this,e),this.parts=[],this.element=n;for(var r=this.element.content,o=document.createTreeWalker(r,133,null,!1),a=-1,s=0,l=[],c=void 0,v=void 0;o.nextNode();){a++,c=v;var d=v=o.currentNode;if(1===d.nodeType){if(!d.hasAttributes())continue;for(var y=d.attributes,m=0,_=0;_=0&&m++;for(;m-- >0;){var g=t.strings[s],b=f.exec(g)[1],x=y.getNamedItem(b),N=x.value.split(h);this.parts.push(new p("attribute",a,x.name,b,N)),d.removeAttribute(x.name),s+=N.length-1}}else if(3===d.nodeType){var T=d.nodeValue;if(T.indexOf(u)<0)continue;var w=d.parentNode,V=T.split(h),k=V.length-1;s+=k;for(var O=0;O0)h=n[r-1].endNode=document.createTextNode(""),this._insert(h);c=new e(this.instance,h,this.endNode),n.push(c)}c.setValue(u),r++}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}if(0===r)this.clear(),this._previousValue=void 0;else if(r0&&void 0!==arguments[0]?arguments[0]:this.startNode;w(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),x=function(e,t,n){if("attribute"===t.type)return new g(e,n,t.name,t.strings);if("node"===t.type)return new b(e,n,n.nextSibling);throw new Error("Unknown part type "+t.type)},N=function(){function e(t,n,r){i(this,e),this._parts=[],this.template=t,this._partCallback=n,this._getTemplate=r}return r(e,[{key:"update",value:function(e){var t=0,n=!0,r=!1,i=void 0;try{for(var o,a=this._parts[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;void 0===s.size?(s.setValue(e[t]),t++):(s.setValue(e,t),t+=s.size)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}},{key:"_clone",value:function(){var e=document.importNode(this.template.element.content,!0),t=this.template.parts;if(t.length>0)for(var n=document.createTreeWalker(e,133,null,!1),r=-1,i=0;i2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=t;i!==n;){var o=i.nextSibling;e.insertBefore(i,r),i=o}},w=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t;r!==n;){var i=r.nextSibling;e.removeChild(r),r=i}};e.templateCaches=o,e.html=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:l,r=n(e),i=t.__templateInstance;if(void 0===i||i.template!==r||i._partCallback!==e.partCallback){i=new N(r,e.partCallback,n),t.__templateInstance=i;var o=i._clone();i.update(e.values),w(t,t.firstChild),t.appendChild(o)}else i.update(e.values)},e.TemplatePart=p,e.Template=v,e.getValue=d,e.directive=function(e){return e.__litDirective=!0,e},e.directiveValue=m,e.AttributePart=g,e.NodePart=b,e.defaultPartCallback=x,e.TemplateInstance=N,e.reparentNodes=T,e.removeNodes=w,Object.defineProperty(e,"__esModule",{value:!0})}); \ No newline at end of file diff --git a/docs/js/libs/prism.js b/docs/js/libs/prism.js deleted file mode 100644 index 1756bcc96..000000000 --- a/docs/js/libs/prism.js +++ /dev/null @@ -1,14 +0,0 @@ -/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+json+markdown+scss+typescript&plugins=line-highlight+line-numbers+toolbar+copy-to-clipboard */ -var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-([\w-]+)\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof r?new r(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(!(w instanceof s)){if(m&&b!=t.length-1){h.lastIndex=k;var _=h.exec(e);if(!_)break;for(var j=_.index+(d?_[1].length:0),P=_.index+_[0].length,A=b,x=k,O=t.length;O>A&&(P>x||!t[A].type&&!t[A-1].greedy);++A)x+=t[A].length,j>=x&&(++b,k=x);if(t[b]instanceof s)continue;I=A-b,w=e.slice(k,x),_.index-=k}else{h.lastIndex=0;var _=h.exec(w),I=1}if(_){d&&(p=_[1]?_[1].length:0);var j=_.index+p,_=_[0].slice(p),P=j+_.length,N=w.slice(0,j),S=w.slice(P),C=[b,I];N&&(++b,k+=N.length,C.push(N));var E=new s(u,f?n.tokenize(_,f):_,y,_,m);if(C.push(E),S&&C.push(S),Array.prototype.splice.apply(t,C),1!=I&&n.matchGrammar(e,t,r,b,k,!0,u),i)break}else if(i)break}}}}},tokenize:function(e,t){var r=[e],a=t.rest;if(a){for(var l in a)t[l]=a[l];delete t.rest}return n.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var a,l=0;a=r[l++];)a(t)}}},r=n.Token=function(e,t,n,r,a){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!a};if(r.stringify=function(e,t,a){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return r.stringify(n,t,e)}).join("");var l={type:e.type,content:r.stringify(e.content,t,a),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:a};if(e.alias){var i="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(l.classes,i)}n.hooks.run("wrap",l);var o=Object.keys(l.attributes).map(function(e){return e+'="'+(l.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+l.tag+' class="'+l.classes.join(" ")+'"'+(o?" "+o:"")+">"+l.content+""},!_self.document)return _self.addEventListener?(n.disableWorkerMessageHandler||_self.addEventListener("message",function(e){var t=JSON.parse(e.data),r=t.language,a=t.code,l=t.immediateClose;_self.postMessage(n.highlight(a,n.languages[r],r)),l&&_self.close()},!1),_self.Prism):_self.Prism;var a=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return a&&(n.filename=a.src,n.manual||a.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism); -Prism.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup; -Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.languages.css,Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css",greedy:!0}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)); -Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(?:true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/}; -Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,"function":/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},constant:/\b[A-Z][A-Z\d_]*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}}}),Prism.languages.javascript["template-string"].inside.interpolation.inside.rest=Prism.languages.javascript,Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript",greedy:!0}}),Prism.languages.js=Prism.languages.javascript; -Prism.languages.json={property:/"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,string:{pattern:/"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,greedy:!0},number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,punctuation:/[{}[\]);,]/,operator:/:/g,"boolean":/\b(?:true|false)\b/i,"null":/\bnull\b/i},Prism.languages.jsonp=Prism.languages.json; -Prism.languages.markdown=Prism.languages.extend("markup",{}),Prism.languages.insertBefore("markdown","prolog",{blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},code:[{pattern:/^(?: {4}|\t).+/m,alias:"keyword"},{pattern:/``.+?``|`[^`\n]+`/,alias:"keyword"}],title:[{pattern:/\w+.*(?:\r?\n|\r)(?:==+|--+)/,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#+.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:/(^|[^\\])(\*\*|__)(?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?\2/,lookbehind:!0,inside:{punctuation:/^\*\*|^__|\*\*$|__$/}},italic:{pattern:/(^|[^\\])([*_])(?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?\2/,lookbehind:!0,inside:{punctuation:/^[*_]|[*_]$/}},url:{pattern:/!?\[[^\]]+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)| ?\[[^\]\n]*\])/,inside:{variable:{pattern:/(!?\[)[^\]]+(?=\]$)/,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\])*"(?=\)$)/}}}}),Prism.languages.markdown.bold.inside.url=Prism.languages.markdown.url,Prism.languages.markdown.italic.inside.url=Prism.languages.markdown.url,Prism.languages.markdown.bold.inside.italic=Prism.languages.markdown.italic,Prism.languages.markdown.italic.inside.bold=Prism.languages.markdown.bold; -Prism.languages.typescript=Prism.languages.extend("javascript",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield|module|declare|constructor|namespace|abstract|require|type)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console)\b/}),Prism.languages.ts=Prism.languages.typescript; -Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-]+(?:\([^()]+\)|[^(])*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)*url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()]|&|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}]+[:{][^}]+))/m,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:if|else(?: if)?|for|each|while|import|extend|debug|warn|mixin|include|function|return|content)/i,{pattern:/( +)(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.scss.property={pattern:/(?:[\w-]|\$[-\w]+|#\{\$[-\w]+\})+(?=\s*:)/i,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}},Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},"boolean":/\b(?:true|false)\b/,"null":/\bnull\b/,operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss; -!function(){function e(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function t(e,t){return t=" "+t+" ",(" "+e.className+" ").replace(/[\n\t]/g," ").indexOf(t)>-1}function n(e,n,i){n="string"==typeof n?n:e.getAttribute("data-line");for(var o,l=n.replace(/\s+/g,"").split(","),a=+e.getAttribute("data-line-offset")||0,s=r()?parseInt:parseFloat,d=s(getComputedStyle(e).lineHeight),u=t(e,"line-numbers"),c=0;o=l[c++];){var p=o.split("-"),m=+p[0],f=+p[1]||m,h=e.querySelector('.line-highlight[data-range="'+o+'"]')||document.createElement("div");if(h.setAttribute("aria-hidden","true"),h.setAttribute("data-range",o),h.className=(i||"")+" line-highlight",u&&Prism.plugins.lineNumbers){var g=Prism.plugins.lineNumbers.getLine(e,m),y=Prism.plugins.lineNumbers.getLine(e,f);g&&(h.style.top=g.offsetTop+"px"),y&&(h.style.height=y.offsetTop-g.offsetTop+y.offsetHeight+"px")}else h.setAttribute("data-start",m),f>m&&h.setAttribute("data-end",f),h.style.top=(m-a-1)*d+"px",h.textContent=new Array(f-m+2).join(" \n");u?e.appendChild(h):(e.querySelector("code")||e).appendChild(h)}}function i(){var t=location.hash.slice(1);e(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)});var i=(t.match(/\.([\d,-]+)$/)||[,""])[1];if(i&&!document.getElementById(t)){var r=t.slice(0,t.lastIndexOf(".")),o=document.getElementById(r);o&&(o.hasAttribute("data-line")||o.setAttribute("data-line",""),n(o,i,"temporary "),document.querySelector(".temporary.line-highlight").scrollIntoView())}}if("undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector){var r=function(){var e;return function(){if("undefined"==typeof e){var t=document.createElement("div");t.style.fontSize="13px",t.style.lineHeight="1.5",t.style.padding=0,t.style.border=0,t.innerHTML=" 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ",document.body.appendChild(t),e=38===t.offsetHeight,document.body.removeChild(t)}return e}}(),o=0;Prism.hooks.add("before-sanity-check",function(t){var n=t.element.parentNode,i=n&&n.getAttribute("data-line");if(n&&i&&/pre/i.test(n.nodeName)){var r=0;e(".line-highlight",n).forEach(function(e){r+=e.textContent.length,e.parentNode.removeChild(e)}),r&&/^( \n)+$/.test(t.code.slice(-r))&&(t.code=t.code.slice(0,-r))}}),Prism.hooks.add("complete",function l(e){var r=e.element.parentNode,a=r&&r.getAttribute("data-line");if(r&&a&&/pre/i.test(r.nodeName)){clearTimeout(o);var s=Prism.plugins.lineNumbers,d=e.plugins&&e.plugins.lineNumbers;t(r,"line-numbers")&&s&&!d?Prism.hooks.add("line-numbers",l):(n(r,a),o=setTimeout(i,1))}}),window.addEventListener("hashchange",i),window.addEventListener("resize",function(){var e=document.querySelectorAll("pre[data-line]");Array.prototype.forEach.call(e,function(e){n(e)})})}}(); -!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e="line-numbers",t=/\n(?!$)/g,n=function(e){var n=r(e),s=n["white-space"];if("pre-wrap"===s||"pre-line"===s){var l=e.querySelector("code"),i=e.querySelector(".line-numbers-rows"),a=e.querySelector(".line-numbers-sizer"),o=l.textContent.split(t);a||(a=document.createElement("span"),a.className="line-numbers-sizer",l.appendChild(a)),a.style.display="block",o.forEach(function(e,t){a.textContent=e||"\n";var n=a.getBoundingClientRect().height;i.children[t].style.height=n+"px"}),a.textContent="",a.style.display="none"}},r=function(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null};window.addEventListener("resize",function(){Array.prototype.forEach.call(document.querySelectorAll("pre."+e),n)}),Prism.hooks.add("complete",function(e){if(e.code){var r=e.element.parentNode,s=/\s*\bline-numbers\b\s*/;if(r&&/pre/i.test(r.nodeName)&&(s.test(r.className)||s.test(e.element.className))&&!e.element.querySelector(".line-numbers-rows")){s.test(e.element.className)&&(e.element.className=e.element.className.replace(s," ")),s.test(r.className)||(r.className+=" line-numbers");var l,i=e.code.match(t),a=i?i.length+1:1,o=new Array(a+1);o=o.join(""),l=document.createElement("span"),l.setAttribute("aria-hidden","true"),l.className="line-numbers-rows",l.innerHTML=o,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),e.element.appendChild(l),n(r),Prism.hooks.run("line-numbers",e)}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows"),s=parseInt(t.getAttribute("data-start"),10)||1,l=s+(r.children.length-1);s>n&&(n=s),n>l&&(n=l);var i=n-s;return r.children[i]}}}}}(); -!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var t=[],e={},n=function(){};Prism.plugins.toolbar={};var a=Prism.plugins.toolbar.registerButton=function(n,a){var o;o="function"==typeof a?a:function(t){var e;return"function"==typeof a.onClick?(e=document.createElement("button"),e.type="button",e.addEventListener("click",function(){a.onClick.call(this,t)})):"string"==typeof a.url?(e=document.createElement("a"),e.href=a.url):e=document.createElement("span"),e.textContent=a.text,e},t.push(e[n]=o)},o=Prism.plugins.toolbar.hook=function(a){var o=a.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var r=document.createElement("div");r.classList.add("code-toolbar"),o.parentNode.insertBefore(r,o),r.appendChild(o);var i=document.createElement("div");i.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(t=document.body.getAttribute("data-toolbar-order").split(",").map(function(t){return e[t]||n})),t.forEach(function(t){var e=t(a);if(e){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(e),i.appendChild(n)}}),r.appendChild(i)}};a("label",function(t){var e=t.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&e.hasAttribute("data-label")){var n,a,o=e.getAttribute("data-label");try{a=document.querySelector("template#"+o)}catch(r){}return a?n=a.content:(e.hasAttribute("data-url")?(n=document.createElement("a"),n.href=e.getAttribute("data-url")):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",o)}}(); -!function(){if("undefined"!=typeof self&&self.Prism&&self.document){if(!Prism.plugins.toolbar)return console.warn("Copy to Clipboard plugin loaded before Toolbar plugin."),void 0;var o=window.ClipboardJS||void 0;o||"function"!=typeof require||(o=require("clipboard"));var e=[];if(!o){var t=document.createElement("script"),n=document.querySelector("head");t.onload=function(){if(o=window.ClipboardJS)for(;e.length;)e.pop()()},t.src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js",n.appendChild(t)}Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(t){function n(){var e=new o(i,{text:function(){return t.code}});e.on("success",function(){i.textContent="Copied!",r()}),e.on("error",function(){i.textContent="Press Ctrl+C to copy",r()})}function r(){setTimeout(function(){i.textContent="Copy"},5e3)}var i=document.createElement("a");return i.textContent="Copy",o?n():e.push(n),i})}}(); \ No newline at end of file diff --git a/docs/js/libs/promise.min.js b/docs/js/libs/promise.min.js deleted file mode 100644 index 59d3feec2..000000000 --- a/docs/js/libs/promise.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Copyright 2012-2013 (c) Pierre Duquesne - * Licensed under the New BSD License. - * https://github.com/stackp/promisejs - */ -(function(a){function b(){this._callbacks=[];}b.prototype.then=function(a,c){var d;if(this._isdone)d=a.apply(c,this.result);else{d=new b();this._callbacks.push(function(){var b=a.apply(c,arguments);if(b&&typeof b.then==='function')b.then(d.done,d);});}return d;};b.prototype.done=function(){this.result=arguments;this._isdone=true;for(var a=0;a=300)&&j.status!==304);h.done(a,j.responseText,j);}};j.send(k);return h;}function h(a){return function(b,c,d){return g(a,b,c,d);};}var i={Promise:b,join:c,chain:d,ajax:g,get:h('GET'),post:h('POST'),put:h('PUT'),del:h('DELETE'),ENOXHR:1,ETIMEOUT:2,ajaxTimeout:0};if(typeof define==='function'&&define.amd)define(function(){return i;});else a.promise=i;})(this); \ No newline at end of file diff --git a/docs/js/libs/svg-pan-zoom.min.js b/docs/js/libs/svg-pan-zoom.min.js deleted file mode 100644 index 6156a996b..000000000 --- a/docs/js/libs/svg-pan-zoom.min.js +++ /dev/null @@ -1,3 +0,0 @@ -// svg-pan-zoom v3.5.2 -// https://github.com/ariutta/svg-pan-zoom -!function t(e,o,n){function i(r,a){if(!o[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(s)return s(r,!0);var u=new Error("Cannot find module '"+r+"'");throw u.code="MODULE_NOT_FOUND",u}var h=o[r]={exports:{}};e[r][0].call(h.exports,function(t){var o=e[r][1][t];return i(o?o:t)},h,h.exports,t,e,o,n)}return o[r].exports}for(var s="function"==typeof require&&require,r=0;r=0;n--)this.eventListeners.hasOwnProperty(o[n])&&delete this.eventListeners[o[n]]}for(var i in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(i,this.eventListeners[i],!1);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},l.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var t=this;this.wheelListener=function(e){return t.handleMouseWheel(e)},n.on(this.options.eventsListenerElement||this.svg,this.wheelListener,!1),this.options.mouseWheelZoomEnabled=!0}},l.prototype.disableMouseWheelZoom=function(){this.options.mouseWheelZoomEnabled&&(n.off(this.options.eventsListenerElement||this.svg,this.wheelListener,!1),this.options.mouseWheelZoomEnabled=!1)},l.prototype.handleMouseWheel=function(t){if(this.options.zoomEnabled&&"none"===this.state){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var e=t.deltaY||1,o=Date.now()-this.lastMouseWheelEventTime,n=3+Math.max(0,30-o);this.lastMouseWheelEventTime=Date.now(),"deltaMode"in t&&0===t.deltaMode&&t.wheelDelta&&(e=0===t.deltaY?0:Math.abs(t.wheelDelta)/t.deltaY),e=-.30?1:-1)*Math.log(Math.abs(e)+10)/n;var i=this.svg.getScreenCTM().inverse(),s=r.getEventPoint(t,this.svg).matrixTransform(i),a=Math.pow(1+this.options.zoomScaleSensitivity,-1*e);this.zoomAtPoint(a,s)}},l.prototype.zoomAtPoint=function(t,e,o){var n=this.viewport.getOriginalState();o?(t=Math.max(this.options.minZoom*n.zoom,Math.min(this.options.maxZoom*n.zoom,t)),t/=this.getZoom()):this.getZoom()*tthis.options.maxZoom*n.zoom&&(t=this.options.maxZoom*n.zoom/this.getZoom());var i=this.viewport.getCTM(),s=e.matrixTransform(i.inverse()),r=this.svg.createSVGMatrix().translate(s.x,s.y).scale(t).translate(-s.x,-s.y),a=i.multiply(r);a.a!==i.a&&this.viewport.setCTM(a)},l.prototype.zoom=function(t,e){this.zoomAtPoint(t,r.getSvgCenterPoint(this.svg,this.width,this.height),e)},l.prototype.publicZoom=function(t,e){e&&(t=this.computeFromRelativeZoom(t)),this.zoom(t,e)},l.prototype.publicZoomAtPoint=function(t,e,o){if(o&&(t=this.computeFromRelativeZoom(t)),"SVGPoint"!==s.getType(e)){if(!("x"in e&&"y"in e))throw new Error("Given point is invalid");e=r.createSVGPoint(this.svg,e.x,e.y)}this.zoomAtPoint(t,e,o)},l.prototype.getZoom=function(){return this.viewport.getZoom()},l.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},l.prototype.computeFromRelativeZoom=function(t){return t*this.viewport.getOriginalState().zoom},l.prototype.resetZoom=function(){var t=this.viewport.getOriginalState();this.zoom(t.zoom,!0)},l.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},l.prototype.reset=function(){this.resetZoom(),this.resetPan()},l.prototype.handleDblClick=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.options.controlIconsEnabled){var e=t.target.getAttribute("class")||"";if(e.indexOf("svg-pan-zoom-control")>-1)return!1}var o;o=t.shiftKey?1/(2*(1+this.options.zoomScaleSensitivity)):2*(1+this.options.zoomScaleSensitivity);var n=r.getEventPoint(t,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(o,n)},l.prototype.handleMouseDown=function(t,e){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),s.mouseAndTouchNormalize(t,this.svg),this.options.dblClickZoomEnabled&&s.isDblClick(t,e)?this.handleDblClick(t):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=r.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()))},l.prototype.handleMouseMove=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),"pan"===this.state&&this.options.panEnabled){var e=r.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()),o=this.firstEventCTM.translate(e.x-this.stateOrigin.x,e.y-this.stateOrigin.y);this.viewport.setCTM(o)}},l.prototype.handleMouseUp=function(t){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),"pan"===this.state&&(this.state="none")},l.prototype.fit=function(){var t=this.viewport.getViewBox(),e=Math.min(this.width/t.width,this.height/t.height);this.zoom(e,!0)},l.prototype.contain=function(){var t=this.viewport.getViewBox(),e=Math.max(this.width/t.width,this.height/t.height);this.zoom(e,!0)},l.prototype.center=function(){var t=this.viewport.getViewBox(),e=.5*(this.width-(t.width+2*t.x)*this.getZoom()),o=.5*(this.height-(t.height+2*t.y)*this.getZoom());this.getPublicInstance().pan({x:e,y:o})},l.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},l.prototype.pan=function(t){var e=this.viewport.getCTM();e.e=t.x,e.f=t.y,this.viewport.setCTM(e)},l.prototype.panBy=function(t){var e=this.viewport.getCTM();e.e+=t.x,e.f+=t.y,this.viewport.setCTM(e)},l.prototype.getPan=function(){var t=this.viewport.getState();return{x:t.x,y:t.y}},l.prototype.resize=function(){var t=r.getBoundingClientRectNormalized(this.svg);this.width=t.width,this.height=t.height;var e=this.viewport;e.options.width=this.width,e.options.height=this.height,e.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},l.prototype.destroy=function(){var t=this;this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,null!=this.options.customEventsHandler&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});for(var e in this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(e,this.eventListeners[e],!1);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),h=h.filter(function(e){return e.svg!==t.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},l.prototype.getPublicInstance=function(){var t=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return t.options.panEnabled=!0,t.pi},disablePan:function(){return t.options.panEnabled=!1,t.pi},isPanEnabled:function(){return!!t.options.panEnabled},pan:function(e){return t.pan(e),t.pi},panBy:function(e){return t.panBy(e),t.pi},getPan:function(){return t.getPan()},setBeforePan:function(e){return t.options.beforePan=null===e?null:s.proxy(e,t.publicInstance),t.pi},setOnPan:function(e){return t.options.onPan=null===e?null:s.proxy(e,t.publicInstance),t.pi},enableZoom:function(){return t.options.zoomEnabled=!0,t.pi},disableZoom:function(){return t.options.zoomEnabled=!1,t.pi},isZoomEnabled:function(){return!!t.options.zoomEnabled},enableControlIcons:function(){return t.options.controlIconsEnabled||(t.options.controlIconsEnabled=!0,i.enable(t)),t.pi},disableControlIcons:function(){return t.options.controlIconsEnabled&&(t.options.controlIconsEnabled=!1,i.disable(t)),t.pi},isControlIconsEnabled:function(){return!!t.options.controlIconsEnabled},enableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!0,t.pi},disableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!1,t.pi},isDblClickZoomEnabled:function(){return!!t.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return t.enableMouseWheelZoom(),t.pi},disableMouseWheelZoom:function(){return t.disableMouseWheelZoom(),t.pi},isMouseWheelZoomEnabled:function(){return!!t.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(e){return t.options.zoomScaleSensitivity=e,t.pi},setMinZoom:function(e){return t.options.minZoom=e,t.pi},setMaxZoom:function(e){return t.options.maxZoom=e,t.pi},setBeforeZoom:function(e){return t.options.beforeZoom=null===e?null:s.proxy(e,t.publicInstance),t.pi},setOnZoom:function(e){return t.options.onZoom=null===e?null:s.proxy(e,t.publicInstance),t.pi},zoom:function(e){return t.publicZoom(e,!0),t.pi},zoomBy:function(e){return t.publicZoom(e,!1),t.pi},zoomAtPoint:function(e,o){return t.publicZoomAtPoint(e,o,!0),t.pi},zoomAtPointBy:function(e,o){return t.publicZoomAtPoint(e,o,!1),t.pi},zoomIn:function(){return this.zoomBy(1+t.options.zoomScaleSensitivity),t.pi},zoomOut:function(){return this.zoomBy(1/(1+t.options.zoomScaleSensitivity)),t.pi},getZoom:function(){return t.getRelativeZoom()},setOnUpdatedCTM:function(e){return t.options.onUpdatedCTM=null===e?null:s.proxy(e,t.publicInstance),t.pi},resetZoom:function(){return t.resetZoom(),t.pi},resetPan:function(){return t.resetPan(),t.pi},reset:function(){return t.reset(),t.pi},fit:function(){return t.fit(),t.pi},contain:function(){return t.contain(),t.pi},center:function(){return t.center(),t.pi},updateBBox:function(){return t.updateBBox(),t.pi},resize:function(){return t.resize(),t.pi},getSizes:function(){return{width:t.width,height:t.height,realZoom:t.getZoom(),viewBox:t.viewport.getViewBox()}},destroy:function(){return t.destroy(),t.pi}}),this.publicInstance};var h=[],c=function(t,e){var o=s.getSvg(t);if(null===o)return null;for(var n=h.length-1;n>=0;n--)if(h[n].svg===o)return h[n].instance.getPublicInstance();return h.push({svg:o,instance:new l(o,e)}),h[h.length-1].instance.getPublicInstance()};e.exports=c},{"./control-icons":2,"./shadow-viewport":3,"./svg-utilities":5,"./uniwheel":6,"./utilities":7}],5:[function(t,e,o){var n=t("./utilities"),i="unknown";document.documentMode&&(i="ie"),e.exports={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(t){if(t.clientWidth&&t.clientHeight)return{width:t.clientWidth,height:t.clientHeight};if(t.getBoundingClientRect())return t.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(t,e){var o=null;if(o=n.isElement(e)?e:t.querySelector(e),!o){var i=Array.prototype.slice.call(t.childNodes||t.children).filter(function(t){return"defs"!==t.nodeName&&"#text"!==t.nodeName});1===i.length&&"g"===i[0].nodeName&&null===i[0].getAttribute("transform")&&(o=i[0])}if(!o){var s="viewport-"+(new Date).toISOString().replace(/\D/g,"");o=document.createElementNS(this.svgNS,"g"),o.setAttribute("id",s);var r=t.childNodes||t.children;if(r&&r.length>0)for(var a=r.length;a>0;a--)"defs"!==r[r.length-a].nodeName&&o.appendChild(r[r.length-a]);t.appendChild(o)}var l=[];return o.getAttribute("class")&&(l=o.getAttribute("class").split(" ")),~l.indexOf("svg-pan-zoom_viewport")||(l.push("svg-pan-zoom_viewport"),o.setAttribute("class",l.join(" "))),o},setupSvgAttributes:function(t){if(t.setAttribute("xmlns",this.svgNS),t.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),t.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),null!==t.parentNode){var e=t.getAttribute("style")||"";e.toLowerCase().indexOf("overflow")===-1&&t.setAttribute("style","overflow: hidden; "+e)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:n.throttle(function(){for(var t=document.querySelectorAll("defs"),e=t.length,o=0;oe?(clearTimeout(a),a=null,l=h,s=t.apply(n,i),a||(n=i=null)):a||o.trailing===!1||(a=setTimeout(u,c)),s}},createRequestAnimationFrame:function(t){var e=null;return"auto"!==t&&t<60&&t>1&&(e=Math.floor(1e3/t)),null===e?window.requestAnimationFrame||n(33):n(e)}}},{}]},{},[1]); diff --git a/docs/js/libs/tablesort.min.js b/docs/js/libs/tablesort.min.js deleted file mode 100644 index 293109079..000000000 --- a/docs/js/libs/tablesort.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! - * tablesort v5.0.2 (2017-11-12) - * http://tristen.ca/tablesort/demo/ - * Copyright (c) 2017 ; Licensed MIT -*/!function(){function a(b,c){if(!(this instanceof a))return new a(b,c);if(!b||"TABLE"!==b.tagName)throw new Error("Element must be a table");this.init(b,c||{})}var b=[],c=function(a){var b;return window.CustomEvent&&"function"==typeof window.CustomEvent?b=new CustomEvent(a):(b=document.createEvent("CustomEvent"),b.initCustomEvent(a,!1,!1,void 0)),b},d=function(a){return a.getAttribute("data-sort")||a.textContent||a.innerText||""},e=function(a,b){return a=a.trim().toLowerCase(),b=b.trim().toLowerCase(),a===b?0:a0)if(a.tHead&&a.tHead.rows.length>0){for(e=0;e0&&l.push(k),m++;if(!l)return}for(m=0;m2&&void 0!==arguments[2]&&arguments[2];for(var s in t)void 0!==i[s]&&(null===i[s]||"object"!==(0,c.default)(i[s])?n(t,i,s,o):"object"===(0,c.default)(t[s])&&e.fillIfDefined(t[s],i[s],o))},e.extend=function(t,e){for(var i=1;i3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(o))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(o))throw new TypeError("Arrays are not supported by deepExtend");for(var r in o)if(o.hasOwnProperty(r)&&-1===t.indexOf(r))if(o[r]&&o[r].constructor===Object)void 0===i[r]&&(i[r]={}),i[r].constructor===Object?e.deepExtend(i[r],o[r]):n(i,o,r,s);else if(Array.isArray(o[r])){i[r]=[];for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in i)if(i.hasOwnProperty(r)||!0===o)if(i[r]&&i[r].constructor===Object)void 0===t[r]&&(t[r]={}),t[r].constructor===Object?e.deepExtend(t[r],i[r],o):n(t,i,r,s);else if(Array.isArray(i[r])){t[r]=[];for(var a=0;a=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,o)):t.attachEvent("on"+e,i)},e.removeEventListener=function(t,e,i,o){t.removeEventListener?(void 0===o&&(o=!1),"mousewheel"===e&&navigator.userAgent.indexOf("Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,o)):t.detachEvent("on"+e,i)},e.preventDefault=function(t){t||(t=window.event),t.preventDefault?t.preventDefault():t.returnValue=!1},e.getTarget=function(t){t||(t=window.event);var e;return t.target?e=t.target:t.srcElement&&(e=t.srcElement),void 0!=e.nodeType&&3==e.nodeType&&(e=e.parentNode),e},e.hasParent=function(t,e){for(var i=t;i;){if(i===e)return!0;i=i.parentNode}return!1},e.option={},e.option.asBoolean=function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},e.option.asNumber=function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},e.option.asString=function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},e.option.asSize=function(t,i){return"function"==typeof t&&(t=t()),e.isString(t)?t:e.isNumber(t)?t+"px":i||null},e.option.asElement=function(t,e){return"function"==typeof t&&(t=t()),t||e||null},e.hexToRGB=function(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,function(t,e,i,o){return e+e+i+i+o+o});var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null},e.overrideOpacity=function(t,i){var o;return-1!=t.indexOf("rgba")?t:-1!=t.indexOf("rgb")?(o=t.substr(t.indexOf("(")+1).replace(")","").split(","),"rgba("+o[0]+","+o[1]+","+o[2]+","+i+")"):(o=e.hexToRGB(t),null==o?t:"rgba("+o.r+","+o.g+","+o.b+","+i+")")},e.RGBToHex=function(t,e,i){return"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)},e.parseColor=function(t){var i;if(!0===e.isString(t)){if(!0===e.isValidRGB(t)){var o=t.substr(4).substr(0,t.length-5).split(",").map(function(t){return parseInt(t)});t=e.RGBToHex(o[0],o[1],o[2])}if(!0===e.isValidHex(t)){var n=e.hexToHSV(t),s={h:n.h,s:.8*n.s,v:Math.min(1,1.02*n.v)},r={h:n.h,s:Math.min(1,1.25*n.s),v:.8*n.v},a=e.HSVToHex(r.h,r.s,r.v),h=e.HSVToHex(s.h,s.s,s.v);i={background:t,border:a,highlight:{background:h,border:a},hover:{background:h,border:a}}}else i={background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else i={},i.background=t.background||void 0,i.border=t.border||void 0,e.isString(t.highlight)?i.highlight={border:t.highlight,background:t.highlight}:(i.highlight={},i.highlight.background=t.highlight&&t.highlight.background||void 0,i.highlight.border=t.highlight&&t.highlight.border||void 0),e.isString(t.hover)?i.hover={border:t.hover,background:t.hover}:(i.hover={},i.hover.background=t.hover&&t.hover.background||void 0,i.hover.border=t.hover&&t.hover.border||void 0);return i},e.RGBToHSV=function(t,e,i){t/=255,e/=255,i/=255;var o=Math.min(t,Math.min(e,i)),n=Math.max(t,Math.max(e,i));if(o==n)return{h:0,s:0,v:o};var s=t==o?e-i:i==o?t-e:i-t;return{h:60*((t==o?3:i==o?1:5)-s/(n-o))/360,s:(n-o)/n,v:n}};var v={split:function(t){var e={};return t.split(";").forEach(function(t){if(""!=t.trim()){var i=t.split(":"),o=i[0].trim(),n=i[1].trim();e[o]=n}}),e},join:function(t){return(0,l.default)(t).map(function(e){return e+": "+t[e]}).join("; ")}};e.addCssText=function(t,i){var o=v.split(t.style.cssText),n=v.split(i),s=e.extend(o,n);t.style.cssText=v.join(s)},e.removeCssText=function(t,e){var i=v.split(t.style.cssText),o=v.split(e);for(var n in o)o.hasOwnProperty(n)&&delete i[n];t.style.cssText=v.join(i)},e.HSVToRGB=function(t,e,i){var o,n,s,r=Math.floor(6*t),a=6*t-r,h=i*(1-e),d=i*(1-a*e),l=i*(1-(1-a)*e);switch(r%6){case 0:o=i,n=l,s=h;break;case 1:o=d,n=i,s=h;break;case 2:o=h,n=i,s=l;break;case 3:o=h,n=d,s=i;break;case 4:o=l,n=h,s=i;break;case 5:o=i,n=h,s=d}return{r:Math.floor(255*o),g:Math.floor(255*n),b:Math.floor(255*s)}},e.HSVToHex=function(t,i,o){var n=e.HSVToRGB(t,i,o);return e.RGBToHex(n.r,n.g,n.b)},e.hexToHSV=function(t){var i=e.hexToRGB(t);return e.RGBToHSV(i.r,i.g,i.b)},e.isValidHex=function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},e.isValidRGB=function(t){return t=t.replace(" ",""),/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(t)},e.isValidRGBA=function(t){return t=t.replace(" ",""),/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(.{1,3})\)/i.test(t)},e.selectiveBridgeObject=function(t,i){if(null!==i&&"object"===(void 0===i?"undefined":(0,c.default)(i))){for(var o=(0,h.default)(i),n=0;n0&&e(o,t[n-1])<0;n--)t[n]=t[n-1];t[n]=o}return t},e.mergeOptions=function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=function(t){return null!==t&&void 0!==t},s=function(t){return null!==t&&"object"===(void 0===t?"undefined":(0,c.default)(t))};if(!s(t))throw new Error("Parameter mergeTarget must be an object");if(!s(e))throw new Error("Parameter options must be an object");if(!n(i))throw new Error("Parameter option must have a value");if(!s(o))throw new Error("Parameter globalOptions must be an object");var r=e[i],a=s(o)&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(o),d=a?o[i]:void 0,l=d?d.enabled:void 0;if(void 0!==r){if("boolean"==typeof r)return s(t[i])||(t[i]={}),void(t[i].enabled=r);if(null===r&&!s(t[i])){if(!n(d))return;t[i]=(0,h.default)(d)}if(s(r)){var u=!0;void 0!==r.enabled?u=r.enabled:void 0!==l&&(u=d.enabled),function(t,e,i){s(t[i])||(t[i]={});var o=e[i],n=t[i];for(var r in o)o.hasOwnProperty(r)&&(n[r]=o[r])}(t,e,i),t[i].enabled=u}}},e.binarySearchCustom=function(t,e,i,o){for(var n=0,s=0,r=t.length-1;s<=r&&n<1e4;){var a=Math.floor((s+r)/2),h=t[a],d=void 0===o?h[i]:h[i][o],l=e(d);if(0==l)return a;-1==l?s=a+1:r=a-1,n++}return-1},e.binarySearchValue=function(t,e,i,o,n){var s,r,a,h,d=0,l=0,u=t.length-1;for(n=void 0!=n?n:function(t,e){return t==e?0:t0)return"before"==o?Math.max(0,h-1):h;if(n(r,e)<0&&n(a,e)>0)return"before"==o?h:Math.min(t.length-1,h+1);n(r,e)<0?l=h+1:u=h-1,d++}return-1},e.easingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},e.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;return i==o&&(o=e.clientWidth),document.body.removeChild(e),i-o},e.topMost=function(t,e){var i=void 0;Array.isArray(e)||(e=[e]);var o=!0,n=!1,s=void 0;try{for(var a,h=(0,r.default)(t);!(o=(a=h.next()).done);o=!0){var d=a.value;if(d){i=d[e[0]];for(var l=1;ln?1:or)&&(s=h,r=d)}return s},n.prototype.min=function(t){var e,i,o=this._data,n=(0,l.default)(o),s=null,r=null;for(e=0,i=n.length;e0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElementNS("http://www.w3.org/2000/svg",t),i.appendChild(o)):(o=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},i.appendChild(o)),e[t].used.push(o),o},e.getDOMElement=function(t,e,i,o){var n;return e.hasOwnProperty(t)?e[t].redundant.length>0?(n=e[t].redundant[0],e[t].redundant.shift()):(n=document.createElement(t),void 0!==o?i.insertBefore(n,o):i.appendChild(n)):(n=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==o?i.insertBefore(n,o):i.appendChild(n)),e[t].used.push(n),n},e.drawPoint=function(t,i,o,n,s,r){var a;if("circle"==o.style?(a=e.getSVGElement("circle",n,s),a.setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",i),a.setAttributeNS(null,"r",.5*o.size)):(a=e.getSVGElement("rect",n,s),a.setAttributeNS(null,"x",t-.5*o.size),a.setAttributeNS(null,"y",i-.5*o.size),a.setAttributeNS(null,"width",o.size),a.setAttributeNS(null,"height",o.size)),void 0!==o.styles&&a.setAttributeNS(null,"style",o.styles),a.setAttributeNS(null,"class",o.className+" vis-point"),r){var h=e.getSVGElement("text",n,s);r.xOffset&&(t+=r.xOffset),r.yOffset&&(i+=r.yOffset),r.content&&(h.textContent=r.content),r.className&&h.setAttributeNS(null,"class",r.className+" vis-label"),h.setAttributeNS(null,"x",t),h.setAttributeNS(null,"y",i)}return a},e.drawBar=function(t,i,o,n,s,r,a,h){if(0!=n){n<0&&(n*=-1,i-=n);var d=e.getSVGElement("rect",r,a);d.setAttributeNS(null,"x",t-.5*o),d.setAttributeNS(null,"y",i),d.setAttributeNS(null,"width",o),d.setAttributeNS(null,"height",n),d.setAttributeNS(null,"class",s),h&&d.setAttributeNS(null,"style",h)}}},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.printStyle=void 0;var n=i(19),s=o(n),r=i(6),a=o(r),h=i(8),d=o(h),l=i(0),u=o(l),c=i(1),p=o(c),f=i(2),m=!1,v=void 0,g="background: #FFeeee; color: #dd0000",y=function(){function t(){(0,u.default)(this,t)}return(0,p.default)(t,null,[{key:"validate",value:function(e,i,o){m=!1,v=i;var n=i;return void 0!==o&&(n=i[o]),t.parse(e,n,[]),m}},{key:"parse",value:function(e,i,o){for(var n in e)e.hasOwnProperty(n)&&t.check(n,e,i,o)}},{key:"check",value:function(e,i,o,n){if(void 0===o[e]&&void 0===o.__any__)return void t.getSuggestion(e,o,n);var s=e,r=!0;void 0===o[e]&&void 0!==o.__any__&&(s="__any__",r="object"===t.getType(i[e]));var a=o[s];r&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,o,s,a,n)}},{key:"checkFields",value:function(e,i,o,n,s,r){var a=function(i){console.log("%c"+i+t.printLocation(r,e),g)},h=t.getType(i[e]),l=s[h];void 0!==l?"array"===t.getType(l)&&-1===l.indexOf(i[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(l)+' not "'+i[e]+'". '),m=!0):"object"===h&&"__any__"!==n&&(r=f.copyAndExtendArray(r,e),t.parse(i[e],o[n],r)):void 0===s.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print((0,d.default)(s))+". Received ["+h+'] "'+i[e]+'"'),m=!0)}},{key:"getType",value:function(t){var e=void 0===t?"undefined":(0,a.default)(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Array.isArray(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,i,o){var n=t.findInOptions(e,i,o,!1),s=t.findInOptions(e,v,[],!0),r=void 0 -;r=void 0!==n.indexMatch?" in "+t.printLocation(n.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+n.indexMatch+'"?\n\n':s.distance<=4&&n.distance>s.distance?" in "+t.printLocation(n.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):n.distance<=8?'. Did you mean "'+n.closestMatch+'"?'+t.printLocation(n.path,e):". Did you mean one of these: "+t.print((0,d.default)(i))+t.printLocation(o,e),console.log('%cUnknown option detected: "'+e+'"'+r,g),m=!0}},{key:"findInOptions",value:function(e,i,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=1e9,r="",a=[],h=e.toLowerCase(),d=void 0;for(var l in i){var u=void 0;if(void 0!==i[l].__type__&&!0===n){var c=t.findInOptions(e,i[l],f.copyAndExtendArray(o,l));s>c.distance&&(r=c.closestMatch,a=c.path,s=c.distance,d=c.indexMatch)}else-1!==l.toLowerCase().indexOf(h)&&(d=l),u=t.levenshteinDistance(e,l),s>u&&(r=l,a=f.copyArray(o),s=u)}return{closestMatch:r,path:a,distance:s,indexMatch:d}}},{key:"printLocation",value:function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",o="\n\n"+i+"options = {\n",n=0;n0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:"performFill",value:function(t,e){this.enableShadow(t,e),t.fill(),this.disableShadow(t,e),this.performStroke(t,e)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,e,i,o,n){void 0!==i&&this.resize(i,o,n),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,e,i,o,n){this._updateBoundingBox(t,e,i,o,n)}},{key:"getDimensionsFromLabel",value:function(t,e,i){this.textSize=this.labelModule.getTextSize(t,e,i);var o=this.textSize.width,n=this.textSize.height;return 0===o&&(o=14,n=14),{width:o,height:n}}}]),t}();e.default=l},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(23),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,i)){this.labelModule.getTextSize(t,e,i);var n=2*o.size;this.width=n,this.height=n,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,e,i,o,n,s,r,a){if(this.resize(t,s,r,a),this.left=o-this.width/2,this.top=n-this.height/2,this.initContextForDraw(t,a),t[e](o,n,a.size),this.performFill(t,a),void 0!==this.options.label){this.labelModule.calculateLabelSize(t,s,r,o,n,"hanging");var h=n+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(t,o,h,s,r,"hanging")}this.updateBoundingBox(o,n)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),e}(m.default);e.default=v},function(t,e,i){var o=i(78),n=i(51);t.exports=function(t){return o(n(t))}},function(t,e,i){var o=i(20),n=i(39);t.exports=i(21)?function(t,e,i){return o.f(t,e,n(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var o=i(32);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){t.exports={default:i(138),__esModule:!0}},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=i(188),s=o(n),r=i(77),a=o(r);e.default=function(){function t(t,e){var i=[],o=!0,n=!1,s=void 0;try{for(var r,h=(0,a.default)(t);!(o=(r=h.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){n=!0,s=t}finally{try{!o&&h.return&&h.return()}finally{if(n)throw s}}return i}return function(e,i){if(Array.isArray(e))return e;if((0,s.default)(Object(e)))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e){t.exports={}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){var o=i(84),n=i(58);t.exports=Object.keys||function(t){return o(t,n)}},function(t,e,i){function o(t,e,i){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0,this.z=void 0!==i?i:0}o.subtract=function(t,e){var i=new o;return i.x=t.x-e.x,i.y=t.y-e.y,i.z=t.z-e.z,i},o.add=function(t,e){var i=new o;return i.x=t.x+e.x,i.y=t.y+e.y,i.z=t.z+e.z,i},o.avg=function(t,e){return new o((t.x+e.x)/2,(t.y+e.y)/2,(t.z+e.z)/2)},o.crossProduct=function(t,e){var i=new o;return i.x=t.y*e.z-t.z*e.y,i.y=t.z*e.x-t.x*e.z,i.z=t.x*e.y-t.y*e.x,i},o.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},t.exports=o},function(t,e,i){var o,n,s;!function(i,r){n=[],o=r,void 0!==(s="function"==typeof o?o.apply(e,n):o)&&(t.exports=s)}(0,function(){function t(t){var e,i=t&&t.preventDefault||!1,o=t&&t.container||window,n={},s={keydown:{},keyup:{}},r={};for(e=97;e<=122;e++)r[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)r[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)r[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)r["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)r["num"+e]={code:96+e,shift:!1};r["num*"]={code:106,shift:!1},r["num+"]={code:107,shift:!1},r["num-"]={code:109,shift:!1},r["num/"]={code:111,shift:!1},r["num."]={code:110,shift:!1},r.left={code:37,shift:!1},r.up={code:38,shift:!1},r.right={code:39,shift:!1},r.down={code:40,shift:!1},r.space={code:32,shift:!1},r.enter={code:13,shift:!1},r.shift={code:16,shift:void 0},r.esc={code:27,shift:!1},r.backspace={code:8,shift:!1},r.tab={code:9,shift:!1},r.ctrl={code:17,shift:!1},r.alt={code:18,shift:!1},r.delete={code:46,shift:!1},r.pageup={code:33,shift:!1},r.pagedown={code:34,shift:!1},r["="]={code:187,shift:!1},r["-"]={code:189,shift:!1},r["]"]={code:221,shift:!1},r["["]={code:219,shift:!1};var a=function(t){d(t,"keydown")},h=function(t){d(t,"keyup")},d=function(t,e){if(void 0!==s[e][t.keyCode]){for(var o=s[e][t.keyCode],n=0;n=4*a){var c=0,p=s.clone();switch(o[h].repeat){case"daily":d.day()!=l.day()&&(c=1),d.dayOfYear(n.dayOfYear()),d.year(n.year()),d.subtract(7,"days"),l.dayOfYear(n.dayOfYear()),l.year(n.year()),l.subtract(7-c,"days"),p.add(1,"weeks");break;case"weekly":var f=l.diff(d,"days"),m=d.day();d.date(n.date()),d.month(n.month()),d.year(n.year()),l=d.clone(),d.day(m),l.day(m),l.add(f,"days"),d.subtract(1,"weeks"),l.subtract(1,"weeks"),p.add(1,"weeks");break;case"monthly":d.month()!=l.month()&&(c=1),d.month(n.month()),d.year(n.year()),d.subtract(1,"months"),l.month(n.month()),l.year(n.year()),l.subtract(1,"months"),l.add(c,"months"),p.add(1,"months");break;case"yearly":d.year()!=l.year()&&(c=1),d.year(n.year()),d.subtract(1,"years"),l.year(n.year()),l.subtract(1,"years"),l.add(c,"years"),p.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",o[h].repeat)}for(;d=e[o].start&&e[n].end<=e[o].end?e[n].remove=!0:e[n].start>=e[o].start&&e[n].start<=e[o].end?(e[o].end=e[n].end,e[n].remove=!0):e[n].end>=e[o].start&&e[n].end<=e[o].end&&(e[o].start=e[n].start,e[n].remove=!0));for(o=0;o=r&&nt.range.end){var h={start:t.range.start,end:i};return i=e.correctTimeForHidden(t.options.moment,t.body.hiddenDates,h,i),n=t.range.conversion(o,r),(i.valueOf()-n.offset)*n.scale}return i=e.correctTimeForHidden(t.options.moment,t.body.hiddenDates,t.range,i),n=t.range.conversion(o,r),(i.valueOf()-n.offset)*n.scale},e.toTime=function(t,i,o){if(0==t.body.hiddenDates.length){var n=t.range.conversion(o);return new Date(i/n.scale+n.offset)}var s=e.getHiddenDurationBetween(t.body.hiddenDates,t.range.start,t.range.end),r=t.range.end-t.range.start-s,a=r*i/o,h=e.getAccumulatedHiddenDuration(t.body.hiddenDates,t.range,a);return new Date(h+a+t.range.start)},e.getHiddenDurationBetween=function(t,e,i){for(var o=0,n=0;n=e&&r=e&&r<=i&&(o+=r-s)}return o},e.correctTimeForHidden=function(t,i,o,n){return n=t(n).toDate().valueOf(),n-=e.getHiddenDurationBefore(t,i,o,n)},e.getHiddenDurationBefore=function(t,e,i,o){var n=0;o=t(o).toDate().valueOf();for(var s=0;s=i.start&&a=a&&(n+=a-r)}return n},e.getAccumulatedHiddenDuration=function(t,e,i){for(var o=0,n=0,s=e.start,r=0;r=e.start&&h=i)break;o+=h-a}}return o},e.snapAwayFromHidden=function(t,i,o,n){var s=e.isHidden(i,t);return 1==s.hidden?o<0?1==n?s.startDate-(s.endDate-i)-1:s.startDate-1:1==n?s.endDate+(i-s.startDate)+1:s.endDate+1:i},e.isHidden=function(t,e){for(var i=0;i=o&&t0){var e=[];if(Array.isArray(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=(0,h.default)(this.data)}for(var i=0;ithis.max&&this.flush(),clearTimeout(this._timeout),this.queue.length>0&&"number"==typeof this.delay){var t=this;this._timeout=setTimeout(function(){t.flush()},this.delay)}},o.prototype.flush=function(){for(;this._queue.length>0;){var t=this._queue.shift();t.fn.apply(t.context||t.fn,t.args||[])}},t.exports=o},function(t,e){function i(t){if(t)return o(t)}function o(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},i.prototype.once=function(t,e){function i(){o.off(t,i),e.apply(this,arguments)}var o=this;return this._callbacks=this._callbacks||{},i.fn=e,this.on(t,i),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i=this._callbacks[t];if(!i)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var o,n=0;n=.4*v}if(this.options.showMinorLabels&&m){var k=this._repaintMinorText(c,y,t,b);k.style.width=_+"px"}f&&this.options.showMajorLabels?(c>0&&(void 0==w&&(w=c),k=this._repaintMajorText(c,s.getLabelMajor(),t,b)),g=this._repaintMajorLine(c,_,t,b)):m?g=this._repaintMinorLine(c,_,t,b):g&&(g.style.width=parseInt(g.style.width)+_+"px")}if(1e3!==x||u||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to 1000 lines."),u=!0),this.options.showMajorLabels){var S=this.body.util.toTime(0),D=s.getLabelMajor(S),M=D.length*(this.props.majorCharWidth||10)+10;(void 0==w||Mt.left&&this.shape.topt.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.leftt.left&&this.shape.boundingBox.topt.top}}],[{key:"updateGroupOptions",value:function(t,e,i){if(void 0!==i){var o=t.group;if(void 0!==e&&void 0!==e.group&&o!==e.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof o||"string"==typeof o&&""!=o){var n=i.get(o);h.selectiveNotDeepExtend(["font"],t,n),t.color=h.parseColor(t.color)}}}},{key:"parseOptions",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments[4],r=["color","fixed","shadow"];if(h.selectiveNotDeepExtend(r,e,i,o),t.checkMass(i),h.mergeOptions(e,i,"shadow",n),void 0!==i.color&&null!==i.color){var a=h.parseColor(i.color);h.fillIfDefined(e.color,a)}else!0===o&&null===i.color&&(e.color=h.bridgeObject(n.color));void 0!==i.fixed&&null!==i.fixed&&("boolean"==typeof i.fixed?(e.fixed.x=i.fixed,e.fixed.y=i.fixed):(void 0!==i.fixed.x&&"boolean"==typeof i.fixed.x&&(e.fixed.x=i.fixed.x),void 0!==i.fixed.y&&"boolean"==typeof i.fixed.y&&(e.fixed.y=i.fixed.y))),!0===o&&null===i.font&&(e.font=h.bridgeObject(n.font)),t.updateGroupOptions(e,i,s),void 0!==i.scaling&&h.mergeOptions(e.scaling,i.scaling,"label",n.scaling)}},{key:"checkMass",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var i="";void 0!==e&&(i=" in node id: "+e),console.log("%cNegative or zero mass disallowed"+i+", setting mass to 1.",C),t.mass=1}}}]),t}();e.default=O},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(6),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(2),u=function(){function t(){(0,a.default)(this,t)}return(0,d.default)(t,null,[{key:"choosify",value:function(t,e){var i=["node","edge","label"],o=!0,n=l.topMost(e,"chosen");if("boolean"==typeof n)o=n;else if("object"===(void 0===n?"undefined":(0,s.default)(n))){if(-1===i.indexOf(t))throw new Error("choosify: subOption '"+t+"' should be one of '"+i.join("', '")+"'");var r=l.topMost(e,["chosen",t]);"boolean"!=typeof r&&"function"!=typeof r||(o=r)}return o}},{key:"pointInRect",value:function(t,e,i){if(t.width<=0||t.height<=0)return!1;if(void 0!==i){var o={x:e.x-i.x,y:e.y-i.y};if(0!==i.angle){var n=-i.angle;e={x:Math.cos(n)*o.x-Math.sin(n)*o.y,y:Math.sin(n)*o.x+Math.cos(n)*o.y}}else e=o}var s=t.x+t.width,r=t.y+t.width;return t.lefte.x&&t.tope.y}},{key:"isValidLabel",value:function(t){return"string"==typeof t&&""!==t}}]),t}();e.default=u},function(t,e,i){i(125);for(var o=i(18),n=i(26),s=i(31),r=i(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),h=0;hdocument.F=Object<\/script>"),t.close(),h=t.F;o--;)delete h.prototype[s[o]];return h()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=o(t),i=new a,a.prototype=null,i[r]=t):i=h(),void 0===e?i:n(i,e)}},function(t,e){var i=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:i)(t)}},function(t,e,i){var o=i(57)("keys"),n=i(40);t.exports=function(t){return o[t]||(o[t]=n(t))}},function(t,e,i){var o=i(18),n=o["__core-js_shared__"]||(o["__core-js_shared__"]={});t.exports=function(t){return n[t]||(n[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var o=i(20).f,n=i(22),s=i(13)("toStringTag");t.exports=function(t,e,i){t&&!n(t=i?t:t.prototype,s)&&o(t,s,{configurable:!0,value:e})}},function(t,e,i){var o=i(135)(!0);i(79)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=o(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){e.f=i(13)},function(t,e,i){var o=i(18),n=i(7),s=i(52),r=i(61),a=i(20).f;t.exports=function(t){var e=n.Symbol||(n.Symbol=s?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:r.f(t)})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){var i=p().hours(0).minutes(0).seconds(0).milliseconds(0),o=i.clone().add(-3,"days").valueOf(),n=i.clone().add(3,"days").valueOf();this.millisecondsPerPixelCache=void 0,void 0===e?(this.start=o,this.end=n):(this.start=e.start||o,this.end=e.end||n),this.rolling=!1,this.body=t,this.deltaDifference=0,this.scaleOffset=0,this.startToFront=!1,this.endToFront=!0,this.defaultOptions={rtl:!1,start:null,end:null,moment:p,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},this.options=c.extend({},this.defaultOptions),this.props={touch:{}},this.animationTimer=null,this.body.emitter.on("panstart",this._onDragStart.bind(this)),this.body.emitter.on("panmove",this._onDrag.bind(this)),this.body.emitter.on("panend",this._onDragEnd.bind(this)),this.body.emitter.on("mousewheel",this._onMouseWheel.bind(this)),this.body.emitter.on("touch",this._onTouch.bind(this)),this.body.emitter.on("pinch",this._onPinch.bind(this)),this.body.dom.rollingModeBtn.addEventListener("click",this.startRolling.bind(this)),this.setOptions(e)}function s(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'+t+'". Choose "horizontal" or "vertical".')}var r=i(8),a=o(r),h=i(19),d=o(h),l=i(6),u=o(l),c=i(2),p=i(9),f=i(16),m=i(36);n.prototype=new f,n.prototype.setOptions=function(t){if(t){var e=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","rtl","showCurrentTime","rollingMode","horizontalScroll"];c.selectiveExtend(e,this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),("start"in t||"end"in t)&&this.setRange(t.start,t.end)}},n.prototype.startRolling=function(){function t(){e.stopRolling(),e.rolling=!0;var i=e.end-e.start,o=c.convert(new Date,"Date").valueOf(),n=o-i*e.options.rollingMode.offset,s=o+i*(1-e.options.rollingMode.offset),r={animation:!1};e.setRange(n,s,r),i=1/e.conversion(e.body.domProps.center.width).scale/10,i<30&&(i=30),i>1e3&&(i=1e3),e.body.dom.rollingModeBtn.style.visibility="hidden",e.currentTimeTimer=setTimeout(t,i)}var e=this;t()},n.prototype.stopRolling=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")},n.prototype.setRange=function(t,e,i,o,n){i||(i={}),!0!==i.byUser&&(i.byUser=!1);var s=this,r=void 0!=t?c.convert(t,"Date").valueOf():null,h=void 0!=e?c.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){var l=this.start,p=this.end,f="object"===(0,u.default)(i.animation)&&"duration"in i.animation?i.animation.duration:500,v="object"===(0,u.default)(i.animation)&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",g=c.easingFunctions[v];if(!g)throw new Error("Unknown easing function "+(0,d.default)(v)+". Choose from: "+(0,a.default)(c.easingFunctions).join(", "));var y=(new Date).valueOf(),b=!1;return function t(){if(!s.props.touch.dragging){var e=(new Date).valueOf(),a=e-y,d=g(a/f),u=a>f,c=u||null===r?r:l+(r-l)*d,v=u||null===h?h:p+(h-p)*d;_=s._applyRange(c,v),m.updateHiddenDates(s.options.moment,s.body,s.options.hiddenDates),b=b||_;var w={start:new Date(s.start),end:new Date(s.end),byUser:i.byUser,event:i.event};if(n&&n(d,_,u),_&&s.body.emitter.emit("rangechange",w),u){if(b&&(s.body.emitter.emit("rangechanged",w),o))return o()}else s.animationTimer=setTimeout(t,20)}}()}var _=this._applyRange(r,h);if(m.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),_){var w={start:new Date(this.start),end:new Date(this.end),byUser:i.byUser,event:i.event};if(this.body.emitter.emit("rangechange",w),clearTimeout(s.timeoutID),s.timeoutID=setTimeout(function(){s.body.emitter.emit("rangechanged",w)},200),o)return o()}},n.prototype.getMillisecondsPerPixel=function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache},n.prototype._cancelAnimation=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},n.prototype._applyRange=function(t,e){var i,o=null!=t?c.convert(t,"Date").valueOf():this.start,n=null!=e?c.convert(e,"Date").valueOf():this.end,s=null!=this.options.max?c.convert(this.options.max,"Date").valueOf():null,r=null!=this.options.min?c.convert(this.options.min,"Date").valueOf():null;if(isNaN(o)||null===o)throw new Error('Invalid start "'+t+'"');if(isNaN(n)||null===n)throw new Error('Invalid end "'+e+'"');if(ns&&(n=s)),null!==s&&n>s&&(i=n-s,o-=i,n-=i,null!=r&&o=this.start-.5&&n<=this.end?(o=this.start,n=this.end):(i=a-(n-o),o-=i/2,n+=i/2)}}if(null!==this.options.zoomMax){var h=parseFloat(this.options.zoomMax);h<0&&(h=0),n-o>h&&(this.end-this.start===h&&othis.end?(o=this.start,n=this.end):(i=n-o-h,o+=i/2,n-=i/2))}var d=this.start!=o||this.end!=n;return o>=this.start&&o<=this.end||n>=this.start&&n<=this.end||this.start>=o&&this.start<=n||this.end>=o&&this.end<=n||this.body.emitter.emit("checkRangedItems"),this.start=o,this.end=n,d},n.prototype.getRange=function(){return{start:this.start,end:this.end}},n.prototype.conversion=function(t,e){return n.conversion(this.start,this.end,t,e)},n.conversion=function(t,e,i,o){return void 0===o&&(o=0),0!=i&&e-t!=0?{offset:t,scale:i/(e-t-o)}:{offset:0,scale:1}},n.prototype._onDragStart=function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))},n.prototype._onDrag=function(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e=this.options.direction;s(e);var i="horizontal"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;var o=this.props.touch.end-this.props.touch.start;o-=m.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var n,r="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;n=this.options.rtl?i/r*o:-i/r*o;var a=this.props.touch.start+n,h=this.props.touch.end+n,d=m.snapAwayFromHidden(this.body.hiddenDates,a,this.previousDelta-i,!0),l=m.snapAwayFromHidden(this.body.hiddenDates,h,this.previousDelta-i,!0);if(d!=a||l!=h)return this.deltaDifference+=i,this.props.touch.start=d,this.props.touch.end=l,void this._onDrag(t);this.previousDelta=i,this._applyRange(a,h);var u=new Date(this.start),c=new Date(this.end);this.body.emitter.emit("rangechange",{start:u,end:c,byUser:!0,event:t}),this.body.emitter.emit("panmove")}},n.prototype._onDragEnd=function(t){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:t}))},n.prototype._onMouseWheel=function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),!(this.options.zoomKey&&!t[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&e){var i;i=e<0?1-e/5:1/(1+e/5);var o;if(this.rolling)o=this.start+(this.end-this.start)*this.options.rollingMode.offset;else{var n=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);o=this._pointerToDate(n)}this.zoom(i,o,e,t),t.preventDefault()}},n.prototype._onTouch=function(t){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.scaleOffset=0,this.deltaDifference=0,c.preventDefault(t)},n.prototype._onPinch=function(t){if(this.options.zoomable&&this.options.moveable){c.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),i=this._pointerToDate(this.props.touch.center),o=m.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),n=m.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,i),s=o-n,r=i-n+(this.props.touch.start-(i-n))*e,a=i+s+(this.props.touch.end-(i+s))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var h=m.snapAwayFromHidden(this.body.hiddenDates,r,1-e,!0),d=m.snapAwayFromHidden(this.body.hiddenDates,a,e-1,!0);h==r&&d==a||(this.props.touch.start=h,this.props.touch.end=d,this.scaleOffset=1-t.scale,r=h,a=d);var l={animation:!1,byUser:!0,event:t};this.setRange(r,a,l),this.startToFront=!1,this.endToFront=!0}},n.prototype._isInsideRange=function(t){var e,i=t.center?t.center.x:t.clientX;e=this.options.rtl?i-c.getAbsoluteLeft(this.body.dom.centerContainer):c.getAbsoluteRight(this.body.dom.centerContainer)-i;var o=this.body.util.toTime(e);return o>=this.start&&o<=this.end},n.prototype._pointerToDate=function(t){var e,i=this.options.direction;if(s(i),"horizontal"==i)return this.body.util.toTime(t.x).valueOf();var o=this.body.domProps.center.height;return e=this.conversion(o),t.y/e.scale+e.offset},n.prototype.getPointer=function(t,e){return this.options.rtl?{x:c.getAbsoluteRight(e)-t.x,y:t.y-c.getAbsoluteTop(e)}:{x:t.x-c.getAbsoluteLeft(e),y:t.y-c.getAbsoluteTop(e)}},n.prototype.zoom=function(t,e,i,o){null==e&&(e=(this.start+this.end)/2);var n=m.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),s=m.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,e),r=n-s,a=e-s+(this.start-(e-s))*t,h=e+r+(this.end-(e+r))*t;this.startToFront=!(i>0),this.endToFront=!(-i>0) -;var d=m.snapAwayFromHidden(this.body.hiddenDates,a,i,!0),l=m.snapAwayFromHidden(this.body.hiddenDates,h,-i,!0);d==a&&l==h||(a=d,h=l);var u={animation:!1,byUser:!0,event:o};this.setRange(a,h,u),this.startToFront=!1,this.endToFront=!0},n.prototype.move=function(t){var e=this.end-this.start,i=this.start+e*t,o=this.end+e*t;this.start=i,this.end=o},n.prototype.moveTo=function(t){var e=(this.start+this.end)/2,i=e-t,o=this.start-i,n=this.end-i,s={animation:!1,byUser:!0,event:null};this.setRange(o,n,s)},t.exports=n},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}function n(){}var s=i(19),r=o(s),a=i(6),h=o(a),d=i(44),l=i(10),u=i(37),c=i(2),p=i(45),f=i(97),m=i(36),v=i(46);d(n.prototype),n.prototype._create=function(t){function e(t){this.isActive()&&this.emit("mousewheel",t);var e=0,i=0;if("detail"in t&&(i=-1*t.detail),"wheelDelta"in t&&(i=t.wheelDelta),"wheelDeltaY"in t&&(i=t.wheelDeltaY),"wheelDeltaX"in t&&(e=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=-1*i,i=0),"deltaY"in t&&(i=-1*t.deltaY),"deltaX"in t&&(e=t.deltaX),this.options.zoomKey&&!t[this.options.zoomKey])if(t.preventDefault(),this.options.verticalScroll&&Math.abs(i)>=Math.abs(e)){var o=this.props.scrollTop,n=o+i;this.isActive()&&(this._setScrollTop(n),this._redraw(),this.emit("scroll",t))}else if(this.options.horizontalScroll){var s=Math.abs(e)>=Math.abs(i)?e:i,r=s/120*(this.range.end-this.range.start)/20,a=this.range.start+r,h=this.range.end+r,d={animation:!1,byUser:!0,event:t};this.range.setRange(a,h,d)}}function i(t){if(s.options.verticalScroll&&(t.preventDefault(),s.isActive())){var e=-t.target.scrollTop;s._setScrollTop(e),s._redraw(),s.emit("scrollSide",t)}}function o(t){if(t.preventDefault&&t.preventDefault(),!(!t.target.className.indexOf("vis")>-1||a))return t.dataTransfer.dropEffect="move",a=!0,!1}function n(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData("text"));if(!e||!e.content)return}catch(t){return!1}return a=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?s.itemSet._onAddItem(t):s.itemSet._onDropObjectOnItem(t),s.emit("drop",s.getEventProperties(t)),!1}this.dom={},this.dom.container=t,this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){!0===this.initialDrawDone&&this._redraw()}.bind(this)),this.on("rangechanged",function(){this.initialRangeChangeDone||(this.initialRangeChangeDone=!0)}.bind(this)),this.on("touch",this._onTouch.bind(this)),this.on("panmove",this._onDrag.bind(this));var s=this;this._origRedraw=this._redraw.bind(this),this._redraw=c.throttle(this._origRedraw),this.on("_change",function(t){s.itemSet&&s.itemSet.initialItemSetDrawn&&t&&1==t.queue?s._redraw():s._origRedraw()}),this.hammer=new l(this.dom.root);var r=this.hammer.get("pinch").set({enable:!0});u.disablePreventDefaultVertically(r),this.hammer.get("pan").set({threshold:5,direction:l.DIRECTION_HORIZONTAL}),this.listeners={},["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach(function(t){var e=function(e){s.isActive()&&s.emit(t,e)};s.hammer.on(t,e),s.listeners[t]=e}),u.onTouch(this.hammer,function(t){s.emit("touch",t)}.bind(this)),u.onRelease(this.hammer,function(t){s.emit("release",t)}.bind(this)),this.dom.centerContainer.addEventListener?(this.dom.centerContainer.addEventListener("mousewheel",e.bind(this),!1),this.dom.centerContainer.addEventListener("DOMMouseScroll",e.bind(this),!1)):this.dom.centerContainer.attachEvent("onmousewheel",e.bind(this)),this.dom.left.parentNode.addEventListener("scroll",i.bind(this)),this.dom.right.parentNode.addEventListener("scroll",i.bind(this));var a=!1;if(this.dom.center.addEventListener("dragover",o.bind(this),!1),this.dom.center.addEventListener("drop",n.bind(this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root)},n.prototype.setOptions=function(t){if(t){var e=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","rtl","zoomKey","horizontalScroll","verticalScroll"];if(c.selectiveExtend(e,this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==(0,h.default)(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation={item:t.orientation,axis:t.orientation}:"object"===(0,h.default)(t.orientation)&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var i=this.timeAxis2=new p(this.body);i.setOptions=function(t){var e=t?c.extend({},t):{};e.orientation="top",p.prototype.setOptions.call(i,e)},this.components.push(i)}}else if(this.timeAxis2){var o=this.components.indexOf(this.timeAxis2);-1!==o&&this.components.splice(o,1),this.timeAxis2.destroy(),this.timeAxis2=null}if("function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&m.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new f(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),"showCustomTime"in t)throw new Error("Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])");this._initAutoResize()}if(this.components.forEach(function(e){return e.setOptions(t)}),"configure"in t){this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var n=c.deepExtend({},this.options);this.components.forEach(function(t){c.deepExtend(n,t.options)}),this.configurator.setModuleOptions({global:n})}this._redraw()},n.prototype.isActive=function(){return!this.activator||this.activator.active},n.prototype.destroy=function(){this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var t in this.listeners)this.listeners.hasOwnProperty(t)&&delete this.listeners[t];this.listeners=null,this.hammer=null,this.components.forEach(function(t){return t.destroy()}),this.body=null},n.prototype.setCustomTime=function(t,e){var i=this.customTimes.filter(function(t){return e===t.options.id});if(0===i.length)throw new Error("No custom time bar found with id "+(0,r.default)(e));i.length>0&&i[0].setCustomTime(t)},n.prototype.getCustomTime=function(t){var e=this.customTimes.filter(function(e){return e.options.id===t});if(0===e.length)throw new Error("No custom time bar found with id "+(0,r.default)(t));return e[0].getCustomTime()},n.prototype.setCustomTimeTitle=function(t,e){var i=this.customTimes.filter(function(t){return t.options.id===e});if(0===i.length)throw new Error("No custom time bar found with id "+(0,r.default)(e));if(i.length>0)return i[0].setCustomTitle(t)},n.prototype.getEventProperties=function(t){return{event:t}},n.prototype.addCustomTime=function(t,e){var i=void 0!==t?c.convert(t,"Date").valueOf():new Date;if(this.customTimes.some(function(t){return t.options.id===e}))throw new Error("A custom time with id "+(0,r.default)(e)+" already exists");var o=new v(this.body,c.extend({},this.options,{time:i,id:e}));return this.customTimes.push(o),this.components.push(o),this._redraw(),e},n.prototype.removeCustomTime=function(t){var e=this.customTimes.filter(function(e){return e.options.id===t});if(0===e.length)throw new Error("No custom time bar found with id "+(0,r.default)(t));e.forEach(function(t){this.customTimes.splice(this.customTimes.indexOf(t),1),this.components.splice(this.components.indexOf(t),1),t.destroy()}.bind(this))},n.prototype.getVisibleItems=function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]},n.prototype.fit=function(t,e){var i=this.getDataRange();if(null!==i.min||null!==i.max){var o=i.max-i.min,n=new Date(i.min.valueOf()-.01*o),s=new Date(i.max.valueOf()+.01*o),r=!t||void 0===t.animation||t.animation;this.range.setRange(n,s,{animation:r},e)}},n.prototype.getDataRange=function(){throw new Error("Cannot invoke abstract method getDataRange")},n.prototype.setWindow=function(t,e,i,o){"function"==typeof arguments[2]&&(o=arguments[2],i={});var n,s;1==arguments.length?(s=arguments[0],n=void 0===s.animation||s.animation,this.range.setRange(s.start,s.end,{animation:n})):2==arguments.length&&"function"==typeof arguments[1]?(s=arguments[0],o=arguments[1],n=void 0===s.animation||s.animation,this.range.setRange(s.start,s.end,{animation:n},o)):(n=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:n},o))},n.prototype.moveTo=function(t,e,i){"function"==typeof arguments[1]&&(i=arguments[1],e={});var o=this.range.end-this.range.start,n=c.convert(t,"Date").valueOf(),s=n-o/2,r=n+o/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(s,r,{animation:a},i)},n.prototype.getWindow=function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}},n.prototype.zoomIn=function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var o=this.getWindow(),n=o.start.valueOf(),s=o.end.valueOf(),r=s-n,a=r/(1+t),h=(r-a)/2,d=n+h,l=s-h;this.setWindow(d,l,e,i)}},n.prototype.zoomOut=function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var o=this.getWindow(),n=o.start.valueOf(),s=o.end.valueOf(),r=s-n,a=n-r*t/2,h=s+r*t/2;this.setWindow(a,h,e,i)}},n.prototype.redraw=function(){this._redraw()},n.prototype._redraw=function(){this.redrawCount++;var t=!1,e=this.options,i=this.props,o=this.dom;if(o&&o.container&&0!=o.root.offsetWidth){m.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),"top"==e.orientation?(c.addClassName(o.root,"vis-top"),c.removeClassName(o.root,"vis-bottom")):(c.removeClassName(o.root,"vis-top"),c.addClassName(o.root,"vis-bottom")),o.root.style.maxHeight=c.option.asSize(e.maxHeight,""),o.root.style.minHeight=c.option.asSize(e.minHeight,""),o.root.style.width=c.option.asSize(e.width,""),i.border.left=(o.centerContainer.offsetWidth-o.centerContainer.clientWidth)/2,i.border.right=i.border.left,i.border.top=(o.centerContainer.offsetHeight-o.centerContainer.clientHeight)/2,i.border.bottom=i.border.top,i.borderRootHeight=o.root.offsetHeight-o.root.clientHeight,i.borderRootWidth=o.root.offsetWidth-o.root.clientWidth,0===o.centerContainer.clientHeight&&(i.border.left=i.border.top,i.border.right=i.border.left),0===o.root.clientHeight&&(i.borderRootWidth=i.borderRootHeight),i.center.height=o.center.offsetHeight,i.left.height=o.left.offsetHeight,i.right.height=o.right.offsetHeight,i.top.height=o.top.clientHeight||-i.border.top,i.bottom.height=o.bottom.clientHeight||-i.border.bottom;var n=Math.max(i.left.height,i.center.height,i.right.height),s=i.top.height+n+i.bottom.height+i.borderRootHeight+i.border.top+i.border.bottom;o.root.style.height=c.option.asSize(e.height,s+"px"),i.root.height=o.root.offsetHeight,i.background.height=i.root.height-i.borderRootHeight;var r=i.root.height-i.top.height-i.bottom.height-i.borderRootHeight;i.centerContainer.height=r,i.leftContainer.height=r,i.rightContainer.height=i.leftContainer.height,i.root.width=o.root.offsetWidth,i.background.width=i.root.width-i.borderRootWidth,this.initialDrawDone||(i.scrollbarWidth=c.getScrollBarWidth()),e.verticalScroll?e.rtl?(i.left.width=o.leftContainer.clientWidth||-i.border.left,i.right.width=o.rightContainer.clientWidth+i.scrollbarWidth||-i.border.right):(i.left.width=o.leftContainer.clientWidth+i.scrollbarWidth||-i.border.left,i.right.width=o.rightContainer.clientWidth||-i.border.right):(i.left.width=o.leftContainer.clientWidth||-i.border.left,i.right.width=o.rightContainer.clientWidth||-i.border.right),this._setDOM();var a=this._updateScrollTop();"top"!=e.orientation.item&&(a+=Math.max(i.centerContainer.height-i.center.height-i.border.top-i.border.bottom,0)),o.center.style.top=a+"px";var h=0==i.scrollTop?"hidden":"",d=i.scrollTop==i.scrollTopMin?"hidden":"";o.shadowTop.style.visibility=h,o.shadowBottom.style.visibility=d,o.shadowTopLeft.style.visibility=h,o.shadowBottomLeft.style.visibility=d,o.shadowTopRight.style.visibility=h,o.shadowBottomRight.style.visibility=d,e.verticalScroll&&(o.rightContainer.className="vis-panel vis-right vis-vertical-scroll",o.leftContainer.className="vis-panel vis-left vis-vertical-scroll",o.shadowTopRight.style.visibility="hidden",o.shadowBottomRight.style.visibility="hidden",o.shadowTopLeft.style.visibility="hidden",o.shadowBottomLeft.style.visibility="hidden",o.left.style.top="0px",o.right.style.top="0px"),(!e.verticalScroll||i.center.heighti.centerContainer.height;this.hammer.get("pan").set({direction:u?l.DIRECTION_ALL:l.DIRECTION_HORIZONTAL}),this.components.forEach(function(e){t=e.redraw()||t});if(t){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}},n.prototype._setDOM=function(){var t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var i=t.root.width-t.left.width-t.right.width-t.borderRootWidth;t.center.width=i,t.centerContainer.width=i,t.top.width=i,t.bottom.width=i,e.background.style.height=t.background.height+"px",e.backgroundVertical.style.height=t.background.height+"px",e.backgroundHorizontal.style.height=t.centerContainer.height+"px",e.centerContainer.style.height=t.centerContainer.height+"px",e.leftContainer.style.height=t.leftContainer.height+"px",e.rightContainer.style.height=t.rightContainer.height+"px",e.background.style.width=t.background.width+"px",e.backgroundVertical.style.width=t.centerContainer.width+"px",e.backgroundHorizontal.style.width=t.background.width+"px",e.centerContainer.style.width=t.center.width+"px",e.top.style.width=t.top.width+"px",e.bottom.style.width=t.bottom.width+"px",e.background.style.left="0",e.background.style.top="0",e.backgroundVertical.style.left=t.left.width+t.border.left+"px",e.backgroundVertical.style.top="0",e.backgroundHorizontal.style.left="0",e.backgroundHorizontal.style.top=t.top.height+"px",e.centerContainer.style.left=t.left.width+"px",e.centerContainer.style.top=t.top.height+"px",e.leftContainer.style.left="0",e.leftContainer.style.top=t.top.height+"px",e.rightContainer.style.left=t.left.width+t.center.width+"px",e.rightContainer.style.top=t.top.height+"px",e.top.style.left=t.left.width+"px",e.top.style.top="0",e.bottom.style.left=t.left.width+"px",e.bottom.style.top=t.top.height+t.centerContainer.height+"px",e.center.style.left="0",e.left.style.left="0",e.right.style.left="0"},n.prototype.repaint=function(){throw new Error("Function repaint is deprecated. Use redraw instead.")},n.prototype.setCurrentTime=function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)},n.prototype.getCurrentTime=function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()},n.prototype._toTime=function(t){return m.toTime(this,t,this.props.center.width)},n.prototype._toGlobalTime=function(t){return m.toTime(this,t,this.props.root.width)},n.prototype._toScreen=function(t){return m.toScreen(this,t,this.props.center.width)},n.prototype._toGlobalScreen=function(t){return m.toScreen(this,t,this.props.root.width)},n.prototype._initAutoResize=function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()},n.prototype._startAutoResize=function(){var t=this;this._stopAutoResize(),this._onResize=function(){if(1!=t.options.autoResize)return void t._stopAutoResize();t.dom.root&&(t.dom.root.offsetWidth==t.props.lastWidth&&t.dom.root.offsetHeight==t.props.lastHeight||(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight,t.props.scrollbarWidth=c.getScrollBarWidth(),t.body.emitter.emit("_change")))},c.addEventListener(window,"resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=setInterval(this._onResize,1e3)},n.prototype._stopAutoResize=function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(c.removeEventListener(window,"resize",this._onResize),this._onResize=null)},n.prototype._onTouch=function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop},n.prototype._onPinch=function(t){this.touch.allowDragging=!1},n.prototype._onDrag=function(t){if(t&&this.touch.allowDragging){var e=t.deltaY,i=this._getScrollTop(),o=this._setScrollTop(this.touch.initialScrollTop+e);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),o!=i&&this.emit("verticalDrag")}},n.prototype._setScrollTop=function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop},n.prototype._updateScrollTop=function(){var t=Math.min(this.props.centerContainer.height-this.props.center.height,0);return t!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop0&&this.current.milliseconds()0&&this.current.seconds()0&&this.current.minutes()0&&this.current.hours()0?t.step:1,this.autoScale=!1)},o.prototype.setAutoScale=function(t){this.autoScale=t},o.prototype.setMinimumStep=function(t){if(void 0!=t){31104e9>t&&(this.scale="year",this.step=1e3),15552e9>t&&(this.scale="year",this.step=500),31104e8>t&&(this.scale="year",this.step=100),15552e8>t&&(this.scale="year",this.step=50),31104e7>t&&(this.scale="year",this.step=10),15552e7>t&&(this.scale="year",this.step=5),31104e6>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),2592e6>t&&(this.scale="month",this.step=1),432e6>t&&(this.scale="day",this.step=5),1728e5>t&&(this.scale="day",this.step=2),864e5>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),36e5>t&&(this.scale="hour",this.step=1),9e5>t&&(this.scale="minute",this.step=15),6e5>t&&(this.scale="minute",this.step=10),3e5>t&&(this.scale="minute",this.step=5),6e4>t&&(this.scale="minute",this.step=1),15e3>t&&(this.scale="second",this.step=15),1e4>t&&(this.scale="second",this.step=10),5e3>t&&(this.scale="second",this.step=5),1e3>t&&(this.scale="second",this.step=1),200>t&&(this.scale="millisecond",this.step=200),100>t&&(this.scale="millisecond",this.step=100),50>t&&(this.scale="millisecond",this.step=50),10>t&&(this.scale="millisecond",this.step=10),5>t&&(this.scale="millisecond",this.step=5),1>t&&(this.scale="millisecond",this.step=1)}},o.snap=function(t,e,i){var o=n(t);if("year"==e){var s=o.year()+Math.round(o.month()/12);o.year(Math.round(s/i)*i),o.month(0),o.date(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("month"==e)o.date()>15?(o.date(1),o.add(1,"month")):o.date(1),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if("week"==e)o.weekday()>2?(o.weekday(0),o.add(1,"week")):o.weekday(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if("day"==e){switch(i){case 5:case 2:o.hours(24*Math.round(o.hours()/24));break;default:o.hours(12*Math.round(o.hours()/12))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("weekday"==e){switch(i){case 5:case 2:o.hours(12*Math.round(o.hours()/12));break;default:o.hours(6*Math.round(o.hours()/6))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("hour"==e){switch(i){case 4:o.minutes(60*Math.round(o.minutes()/60));break;default:o.minutes(30*Math.round(o.minutes()/30))}o.seconds(0),o.milliseconds(0)}else if("minute"==e){switch(i){case 15:case 10:o.minutes(5*Math.round(o.minutes()/5)),o.seconds(0);break;case 5:o.seconds(60*Math.round(o.seconds()/60));break;default:o.seconds(30*Math.round(o.seconds()/30))}o.milliseconds(0)}else if("second"==e)switch(i){case 15:case 10:o.seconds(5*Math.round(o.seconds()/5)),o.milliseconds(0);break;case 5:o.milliseconds(1e3*Math.round(o.milliseconds()/1e3));break;default:o.milliseconds(500*Math.round(o.milliseconds()/500))}else if("millisecond"==e){var r=i>5?i/2:1;o.milliseconds(Math.round(o.milliseconds()/r)*r)}return o},o.prototype.isMajor=function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return 0==t.milliseconds();case"second":return 0==t.seconds();case"minute":return 0==t.hours()&&0==t.minutes();case"hour":return 0==t.hours();case"weekday":case"day":case"week":return 1==t.date();case"month":return 0==t.month();case"year":default:return!1}},o.prototype.getLabelMinor=function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(t,this.scale,this.step);var e=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(this.isMajor()&&0!==t.weekday())return"";default:return e&&e.length>0?this.moment(t).format(e):""}},o.prototype.getLabelMajor=function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(t,this.scale,this.step);var e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""},o.prototype.getClassName=function(){function t(t){return t/a%2==0?" vis-even":" vis-odd"}function e(t){return t.isSame(new Date,"day")?" vis-today":t.isSame(n().add(1,"day"),"day")?" vis-tomorrow":t.isSame(n().add(-1,"day"),"day")?" vis-yesterday":""}function i(t){return t.isSame(new Date,"week")?" vis-current-week":""}function o(t){return t.isSame(new Date,"month")?" vis-current-month":""}var n=this.moment,s=this.moment(this.current),r=s.locale?s.locale("en"):s.lang("en"),a=this.step,h=[];switch(this.scale){case"millisecond":h.push(e(r)),h.push(t(r.milliseconds()));break;case"second":h.push(e(r)),h.push(t(r.seconds()));break;case"minute":h.push(e(r)),h.push(t(r.minutes()));break;case"hour":h.push("vis-h"+r.hours()+(4==this.step?"-h"+(r.hours()+4):"")),h.push(e(r)),h.push(t(r.hours()));break;case"weekday":h.push("vis-"+r.format("dddd").toLowerCase()),h.push(e(r)),h.push(i(r)),h.push(t(r.date()));break;case"day":h.push("vis-day"+r.date()),h.push("vis-"+r.format("MMMM").toLowerCase()),h.push(e(r)),h.push(o(r)),h.push(this.step<=2?e(r):""),h.push(this.step<=2?"vis-"+r.format("dddd").toLowerCase():""), -h.push(t(r.date()-1));break;case"week":h.push("vis-week"+r.format("w")),h.push(i(r)),h.push(t(r.week()));break;case"month":h.push("vis-"+r.format("MMMM").toLowerCase()),h.push(o(r)),h.push(t(r.month()));break;case"year":h.push("vis-year"+r.year()),h.push(function(t){return t.isSame(new Date,"year")?" vis-current-year":""}(r)),h.push(t(r.year()))}return h.filter(String).join(" ")},t.exports=o},function(t,e,i){function o(t,e){this.body=t,this.defaultOptions={rtl:!1,showCurrentTime:!0,moment:r,locales:a,locale:"en"},this.options=n.extend({},this.defaultOptions),this.offset=0,this._create(),this.setOptions(e)}var n=i(2),s=i(16),r=i(9),a=i(98);o.prototype=new s,o.prototype._create=function(){var t=document.createElement("div");t.className="vis-current-time",t.style.position="absolute",t.style.top="0px",t.style.height="100%",this.bar=t},o.prototype.destroy=function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null},o.prototype.setOptions=function(t){t&&n.selectiveExtend(["rtl","showCurrentTime","moment","locale","locales"],this.options,t)},o.prototype.redraw=function(){if(this.options.showCurrentTime){var t=this.body.dom.backgroundVertical;this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar),this.start());var e=this.options.moment((new Date).valueOf()+this.offset),i=this.body.util.toScreen(e),o=this.options.locales[this.options.locale];o||(this.warned||(console.log("WARNING: options.locales['"+this.options.locale+"'] not found. See http://visjs.org/docs/timeline/#Localization"),this.warned=!0),o=this.options.locales.en);var n=o.current+" "+o.time+": "+e.format("dddd, MMMM Do YYYY, H:mm:ss");n=n.charAt(0).toUpperCase()+n.substring(1),this.options.rtl?this.bar.style.right=i+"px":this.bar.style.left=i+"px",this.bar.title=n}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1},o.prototype.start=function(){function t(){e.stop();var i=e.body.range.conversion(e.body.domProps.center.width).scale,o=1/i/10;o<30&&(o=30),o>1e3&&(o=1e3),e.redraw(),e.body.emitter.emit("currentTimeTick"),e.currentTimeTimer=setTimeout(t,o)}var e=this;t()},o.prototype.stop=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)},o.prototype.setCurrentTime=function(t){var e=n.convert(t,"Date").valueOf(),i=(new Date).valueOf();this.offset=e-i,this.redraw()},o.prototype.getCurrentTime=function(){return new Date((new Date).valueOf()+this.offset)},t.exports=o},function(t,e,i){function o(t,e,i){if(this.groupId=t,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.doInnerStack=!1,this.subgroupIndex=0,this.subgroupOrderer=e&&e.subgroupOrder,this.itemSet=i,this.isVisible=null,this.stackDirty=!0,e&&e.nestedGroups&&(this.nestedGroups=e.nestedGroups,0==e.showNested?this.showNested=!1:this.showNested=!0),e&&e.subgroupStack)if("boolean"==typeof e.subgroupStack)this.doInnerStack=e.subgroupStack,this.subgroupStackAll=e.subgroupStack;else for(var o in e.subgroupStack)this.subgroupStack[o]=e.subgroupStack[o],this.doInnerStack=this.doInnerStack||e.subgroupStack[o];this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var n=this;this.itemSet.body.emitter.on("checkRangedItems",function(){n.checkRangedItems=!0}),this._create(),this.setData(e)}var n=i(8),s=function(t){return t&&t.__esModule?t:{default:t}}(n),r=i(2),a=i(100);o.prototype._create=function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var e=document.createElement("div");e.className="vis-inner",t.appendChild(e),this.dom.inner=e;var i=document.createElement("div");i.className="vis-group",i["timeline-group"]=this,this.dom.foreground=i,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)},o.prototype.setData=function(t){var e,i;if(this.itemSet.options&&this.itemSet.options.groupTemplate?(i=this.itemSet.options.groupTemplate.bind(this),e=i(t,this.dom.inner)):e=t&&t.content,e instanceof Element){for(this.dom.inner.appendChild(e);this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(e)}else e instanceof Object?i(t,this.dom.inner):this.dom.inner.innerHTML=void 0!==e&&null!==e?e:this.groupId||"";if(this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?r.removeClassName(this.dom.inner,"vis-hidden"):r.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups){this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),void 0===t.showNested&&void 0!==this.showNested||(0==t.showNested?this.showNested=!1:this.showNested=!0),r.addClassName(this.dom.label,"vis-nesting-group");var o=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";this.showNested?(r.removeClassName(this.dom.label,o),r.addClassName(this.dom.label,"expanded")):(r.removeClassName(this.dom.label,"expanded"),r.addClassName(this.dom.label,o))}else this.nestedGroups&&(this.nestedGroups=null,o=this.itemSet.options.rtl?"collapsed-rtl":"collapsed",r.removeClassName(this.dom.label,o),r.removeClassName(this.dom.label,"expanded"),r.removeClassName(this.dom.label,"vis-nesting-group"));t&&t.nestedInGroup&&(r.addClassName(this.dom.label,"vis-nested-group"),this.itemSet.options&&this.itemSet.options.rtl?this.dom.inner.style.paddingRight="30px":this.dom.inner.style.paddingLeft="30px");var n=t&&t.className||null;n!=this.className&&(this.className&&(r.removeClassName(this.dom.label,this.className),r.removeClassName(this.dom.foreground,this.className),r.removeClassName(this.dom.background,this.className),r.removeClassName(this.dom.axis,this.className)),r.addClassName(this.dom.label,n),r.addClassName(this.dom.foreground,n),r.addClassName(this.dom.background,n),r.addClassName(this.dom.axis,n),this.className=n),this.style&&(r.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(r.addCssText(this.dom.label,t.style),this.style=t.style)},o.prototype.getLabelWidth=function(){return this.props.label.width},o.prototype._didMarkerHeightChange=function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var e={},i=0;r.forEach(this.items,function(t,o){if(t.dirty=!0,t.displayed){e[o]=t.redraw(!0),i=e[o].length}});if(i>0)for(var o=0;o0)for(var u=0;u0){var e=this;this.resetSubgroups(),r.forEach(this.visibleItems,function(i){void 0!==i.data.subgroup&&(e.subgroups[i.data.subgroup].height=Math.max(e.subgroups[i.data.subgroup].height,i.height+t.item.vertical),e.subgroups[i.data.subgroup].visible=!0)})}},o.prototype._isGroupVisible=function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop},o.prototype._calculateHeight=function(t){var e,i=this.visibleItems;if(i.length>0){var o=i[0].top,n=i[0].top+i[0].height;if(r.forEach(i,function(t){o=Math.min(o,t.top),n=Math.max(n,t.top+t.height)}),o>t.axis){var s=o-t.axis;n-=s,r.forEach(i,function(t){t.top-=s})}e=n+t.item.vertical/2}else e=0;return e=Math.max(e,this.props.label.height)},o.prototype.show=function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)},o.prototype.hide=function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);var i=this.dom.background;i.parentNode&&i.parentNode.removeChild(i);var o=this.dom.axis;o.parentNode&&o.parentNode.removeChild(o)},o.prototype.add=function(t){if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),-1==this.visibleItems.indexOf(t)){var e=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,e)}},o.prototype._addToSubgroup=function(t,e){e=e||t.data.subgroup,void 0!=e&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)new Date(this.subgroups[e].end)&&(this.subgroups[e].end=i),this.subgroups[e].items.push(t)},o.prototype._updateSubgroupsSizes=function(){var t=this;if(t.subgroups)for(var e in t.subgroups){var i=t.subgroups[e].items[0].data.end||t.subgroups[e].items[0].data.start,o=t.subgroups[e].items[0].data.start,n=i-1;t.subgroups[e].items.forEach(function(t){new Date(t.data.start)new Date(n)&&(n=e)}),t.subgroups[e].start=o,t.subgroups[e].end=new Date(n-1)}},o.prototype.orderSubgroups=function(){if(void 0!==this.subgroupOrderer){var t,e=[];if("string"==typeof this.subgroupOrderer){for(t in this.subgroups)e.push({subgroup:t,sortField:this.subgroups[t].items[0].data[this.subgroupOrderer]});e.sort(function(t,e){return t.sortField-e.sortField})}else if("function"==typeof this.subgroupOrderer){for(t in this.subgroups)e.push(this.subgroups[t].items[0].data);e.sort(this.subgroupOrderer)}if(e.length>0)for(var i=0;i=0&&(i.items.splice(o,1),i.items.length?this._updateSubgroupsSizes():delete this.subgroups[e])}}},o.prototype.removeFromDataSet=function(t){this.itemSet.removeItem(t.id)},o.prototype.order=function(){for(var t=r.toArray(this.items),e=[],i=[],o=0;o0)for(var l=0;lh}),1==this.checkRangedItems)for(this.checkRangedItems=!1,l=0;lh})}var p={},f=0;for(l=0;l0)for(var v=0;v=0&&(r=e[s],!n(r));s--)void 0===o[r.id]&&(o[r.id]=!0,i.push(r));for(s=t+1;st.start},o.prototype._createDomElement=function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["timeline-item"]=this,this.dirty=!0)},o.prototype._appendDomElement=function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}this.displayed=!0},o.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+e,this.dom.content.style.maxWidth="none"}},o.prototype._getDomComponentsSizes=function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}},o.prototype._updateDomComponentsSizes=function(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth="",this.dirty=!1},o.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()},o.prototype.redraw=function(t){var e,i=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){this.dirty&&(e=this._getDomComponentsSizes.bind(this)())}.bind(this),function(){this.dirty&&this._updateDomComponentsSizes.bind(this)(e)}.bind(this),this._repaintDomAdditionals.bind(this)];if(t)return i;var o;return i.forEach(function(t){o=t()}),o},o.prototype.show=function(){this.displayed||this.redraw()},o.prototype.hide=function(){if(this.displayed){var t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}},o.prototype.repositionX=function(t){var e,i,o=this.parent.width,n=this.conversion.toScreen(this.data.start),s=this.conversion.toScreen(this.data.end),r=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==t&&!0!==t||(n<-o&&(n=-o),s>2*o&&(s=2*o));var a=Math.max(s-n+.5,1);switch(this.overflow?(this.options.rtl?this.right=n:this.left=n,this.width=a+this.props.content.width,i=this.props.content.width):(this.options.rtl?this.right=n:this.left=n,this.width=a,i=Math.min(s-n,this.props.content.width)),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=a+"px",r){case"left":this.options.rtl?this.dom.content.style.right="0":this.dom.content.style.left="0";break;case"right":this.options.rtl?this.dom.content.style.right=Math.max(a-i,0)+"px":this.dom.content.style.left=Math.max(a-i,0)+"px";break;case"center":this.options.rtl?this.dom.content.style.right=Math.max((a-i)/2,0)+"px":this.dom.content.style.left=Math.max((a-i)/2,0)+"px";break;default:e=this.overflow?s>0?Math.max(-n,0):-i:n<0?-n:0,this.options.rtl?this.dom.content.style.right=e+"px":(this.dom.content.style.left=e+"px",this.dom.content.style.width="calc(100% - "+e+"px)")}},o.prototype.repositionY=function(){var t=this.options.orientation.item,e=this.dom.box;e.style.top="top"==t?this.top+"px":this.parent.height-this.top-this.height+"px"},o.prototype._repaintDragLeft=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragLeft){var t=document.createElement("div");t.className="vis-drag-left",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)},o.prototype._repaintDragRight=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragRight){var t=document.createElement("div");t.className="vis-drag-right",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)},t.exports=o},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(19),s=o(n),r=i(6),a=o(r),h=i(0),d=o(h),l=i(1),u=o(l),c=i(2),p=i(179).default,f=function(){function t(e,i,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;(0,d.default)(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},c.extend(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new p(n),this.wrapper=void 0}return(0,u.default)(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;"string"==typeof t?this.options.filter=t:t instanceof Array?this.options.filter=t.join():"object"===(void 0===t?"undefined":(0,a.default)(t))?(void 0!==t.container&&(this.options.container=t.container),void 0!==t.filter&&(this.options.filter=t.filter),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)):"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0),!1===this.options.filter&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){var t=this;this._clean(),this.changedOptions=[];var e=this.options.filter,i=0,o=!1;for(var n in this.configureOptions)this.configureOptions.hasOwnProperty(n)&&(this.allowCreation=!1,o=!1,"function"==typeof e?(o=e(n,[]),o=o||this._handleObject(this.configureOptions[n],[n],!0)):!0!==e&&-1===e.indexOf(n)||(o=!0),!1!==o&&(this.allowCreation=!0,i>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),i++);if(!0===this.options.showButton){var s=document.createElement("div");s.className="vis-configuration vis-config-button",s.innerHTML="generate options",s.onclick=function(){t._printOptions()},s.onmouseover=function(){s.className="vis-configuration vis-config-button hover"},s.onmouseout=function(){s.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(s)}this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?i-1:0),n=1;n2&&void 0!==arguments[2]&&arguments[2],o=document.createElement("div");return o.className="vis-configuration vis-config-label vis-config-s"+e.length,o.innerHTML=!0===i?""+t+":":t+":",o}},{key:"_makeDropdown",value:function(t,e,i){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var n=0;void 0!==e&&-1!==t.indexOf(e)&&(n=t.indexOf(e));for(var s=0;ss&&1!==s&&(a.max=Math.ceil(1.2*e),d=a.max,h="range increased"),a.value=e}else a.value=o;var l=document.createElement("input");l.className="vis-configuration vis-config-rangeinput",l.value=a.value;var u=this;a.onchange=function(){l.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){l.value=this.value};var c=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,c,a,l);""!==h&&this.popupHistory[p]!==d&&(this.popupHistory[p]=d,this._setupPopup(h,p))}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,n=this.options.filter,s=!1;for(var r in t)if(t.hasOwnProperty(r)){o=!0;var a=t[r],h=c.copyAndExtendArray(e,r);if("function"==typeof n&&!1===(o=n(r,e))&&!(a instanceof Array)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,o=this._handleObject(a,h,!0),this.allowCreation=!1===i),!1!==o){s=!0;var d=this._getValue(h);if(a instanceof Array)this._handleArray(a,d,h);else if("string"==typeof a)this._makeTextInput(a,d,h);else if("boolean"==typeof a)this._makeCheckbox(a,d,h);else if(a instanceof Object){var l=!0;if(-1!==e.indexOf("physics")&&this.moduleOptions.physics.solver!==r&&(l=!1),!0===l)if(void 0!==a.enabled){var u=c.copyAndExtendArray(h,"enabled"),p=this._getValue(u);if(!0===p){var f=this._makeLabel(r,h,!0);this._makeItem(h,f),s=this._handleObject(a,h)||s}else this._makeCheckbox(a,p,h)}else{var m=this._makeLabel(r,h,!0);this._makeItem(h,m),s=this._handleObject(a,h)||s}}else console.error("dont know how to handle",a,r,h)}}return s}},{key:"_handleArray",value:function(t,e,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i;t="true"===t||t,t="false"!==t&&t;for(var n=0;nvar options = "+(0,s.default)(t,null,2)+""}},{key:"getOptions",value:function(){for(var t={},e=0;ethis.imageObj.height?i=this.imageObj.width/this.imageObj.height:o=this.imageObj.height/this.imageObj.width),t=2*this.options.size*i,e=2*this.options.size*o}else t=this.imageObj.width,e=this.imageObj.height;this.width=t,this.height=e,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,e,i,o){this.initContextForDraw(t,o),t.circle(e,i,o.size),this.performFill(t,o)}},{key:"_drawImageAtPosition",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=1,this.enableShadow(t,e);var i=1;!0===this.options.shapeProperties.interpolation&&(i=this.imageObj.width/this.width/this.body.view.scale),this.imageObj.drawImageAtPosition(t,i,this.left,this.top,this.width,this.height),this.disableShadow(t,e)}}},{key:"_drawImageLabel",value:function(t,e,i,o,n){var s,r=0;if(void 0!==this.height){r=.5*this.height;var a=this.labelModule.getTextSize(t,o,n);a.lineCount>=1&&(r+=a.height/2)}s=i+r,this.options.label&&(this.labelOffset=r),this.labelModule.draw(t,e,s,o,n,"hanging")}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(19),s=o(n),r=i(6),a=o(r),h=i(29),d=o(h),l=i(0),u=o(l),c=i(1),p=o(c),f=i(2),m=i(117).default,v=i(48).default,g=i(215).default,y=i(217).default,b=i(218).default,_=i(219).default,w=function(){function t(e,i,o,n){if((0,u.default)(this,t),void 0===i)throw new Error("No body provided");this.options=f.bridgeObject(o),this.globalOptions=o,this.defaultOptions=n,this.body=i,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new m(this.body,this.options,!0),this.setOptions(e)}return(0,p.default)(t,[{key:"setOptions",value:function(e){if(e){t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=parseFloat(e.value));var i=[e,this.options,this.defaultOptions];this.chooser=v.choosify("edge",i),this.updateLabelModule(e);var o=this.updateEdgeType();return this._setInteractionWidths(),this.connect(),void 0===e.hidden&&void 0===e.physics||(o=!0),o}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,i=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,o=this.options.color.inherit,n={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,arrowStrikethrough:this.options.arrowStrikethrough,color:o?void 0:this.options.color.color,inheritsColor:o,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var s=this.options.selectionWidth;"function"==typeof s?n.width=s(n.width):"number"==typeof s&&(n.width+=s),n.width=Math.max(n.width,.3/this.body.view.scale),n.color=this.options.color.highlight,n.shadow=this.options.shadow.enabled}else if(this.hover){var r=this.options.hoverWidth;"function"==typeof r?n.width=r(n.width):"number"==typeof r&&(n.width+=r),n.width=Math.max(n.width,.3/this.body.view.scale),n.color=this.options.color.hover,n.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(n,this.options.id,this.selected,this.hover),void 0!==n.color&&(n.inheritsColor=!1),!1===n.shadow&&(n.shadowColor===this.options.shadow.color&&n.shadowSize===this.options.shadow.size&&n.shadowX===this.options.shadow.x&&n.shadowY===this.options.shadow.y||(n.shadow=!0)));else n.shadow=this.options.shadow.enabled,n.width=Math.max(n.width,.3/this.body.view.scale);return n}},{key:"updateLabelModule",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,e=!1,i=!0;return void 0!==this.edgeType&&((this.edgeType instanceof y&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof g&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof b&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof _&&!1===t.type.enabled)&&(i=!1),!0===i&&(e=this.cleanup())),!0===i?!0===t.enabled?"dynamic"===t.type?(e=!0,this.edgeType=new y(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new g(this.options,this.body,this.labelModule):this.edgeType=new b(this.options,this.body,this.labelModule):this.edgeType=new _(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,e,i){if(void 0!==this.options.value){var o=this.options.scaling.customScalingFunction(t,e,i,this.options.value),n=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.width=this.options.scaling.min+o*n}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(o.from=this.edgeType.getArrowData(t,"from",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=o.from.core)),e.toArrow&&(o.to=this.edgeType.getArrowData(t,"to",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=o.to.core)),e.middleArrow&&(o.middle=this.edgeType.getArrowData(t,"middle",i,this.selected,this.hover,e)),this.edgeType.drawLine(t,e,this.selected,this.hover,i),this.drawArrows(t,o,e),this.drawLabel(t,i)}}},{key:"drawArrows",value:function(t,e,i){i.fromArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.from),i.middleArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.middle),i.toArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.to)}},{key:"drawLabel",value:function(t,e){if(void 0!==this.options.label){var i=this.from,o=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),i.id!=o.id){this.labelModule.pointToSelf=!1;var n=this.edgeType.getPoint(.5,e);t.save();var s=this._getRotation(t);0!=s.angle&&(t.translate(s.x,s.y),t.rotate(s.angle)),this.labelModule.draw(t,n.x,n.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var r,a,h=this.options.selfReferenceSize;i.shape.width>i.shape.height?(r=i.x+.5*i.shape.width,a=i.y-h):(r=i.x+h,a=i.y-.5*i.shape.height),n=this._pointOnCircle(r,a,h,.125),this.labelModule.draw(t,n.x,n.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var e=[];if(this.labelModule.visible()){var i=this._getRotation();v.pointInRect(this.labelModule.getSize(),t,i)&&e.push({edgeId:this.id,labelId:0})}var o={left:t.x,top:t.y};return this.isOverlappingWith(o)&&e.push({edgeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){if(this.connected){var e=this.from.x,i=this.from.y,o=this.to.x,n=this.to.y,s=t.left,r=t.top;return this.edgeType.getDistanceToEdge(e,i,o,n,s,r)<10}return!1}},{key:"_getRotation",value:function(t){var e=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,i.x,i.y);var o={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return o;if("horizontal"===this.options.font.align)return o;var n=this.from.y-this.to.y,s=this.from.x-this.to.x,r=Math.atan2(n,s);return(r<-1&&s<0||r>0&&s<0)&&(r+=Math.PI),o.angle=r,o}},{key:"_pointOnCircle",value:function(t,e,i,o){var n=2*o*Math.PI;return{x:t+i*Math.cos(n),y:e-i*Math.sin(n)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=["arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","to","title","value","width","font","chosen","widthConstraint"];if(f.selectiveDeepExtend(r,t,e,i),v.isValidLabel(e.label)?t.label=e.label:t.label=void 0,f.mergeOptions(t,e,"smooth",o),f.mergeOptions(t,e,"shadow",o),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===i&&null===e.dashes&&(t.dashes=(0,d.default)(o.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),f.mergeOptions(t.scaling,e.scaling,"label",o.scaling)):!0===i&&null===e.scaling&&(t.scaling=(0,d.default)(o.scaling)),void 0!==e.arrows&&null!==e.arrows)if("string"==typeof e.arrows){var h=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=h.indexOf("to"),t.arrows.middle.enabled=-1!=h.indexOf("middle"),t.arrows.from.enabled=-1!=h.indexOf("from")}else{if("object"!==(0,a.default)(e.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+(0,s.default)(e.arrows));f.mergeOptions(t.arrows,e.arrows,"to",o.arrows),f.mergeOptions(t.arrows,e.arrows,"middle",o.arrows),f.mergeOptions(t.arrows,e.arrows,"from",o.arrows)}else!0===i&&null===e.arrows&&(t.arrows=(0,d.default)(o.arrows));if(void 0!==e.color&&null!==e.color){var l=e.color,u=t.color;if(n)f.deepExtend(u,o.color,!1,i);else for(var c in u)u.hasOwnProperty(c)&&delete u[c];if(f.isString(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,void 0===l.opacity&&(u.opacity=1);else{var p=!1;void 0!==l.color&&(u.color=l.color,p=!0),void 0!==l.highlight&&(u.highlight=l.highlight,p=!0),void 0!==l.hover&&(u.hover=l.hover,p=!0),void 0!==l.inherit&&(u.inherit=l.inherit),void 0!==l.opacity&&(u.opacity=Math.min(1,Math.max(0,l.opacity))),!0===p?u.inherit=!1:void 0===u.inherit&&(u.inherit="from")}}else!0===i&&null===e.color&&(t.color=f.bridgeObject(o.color));!0===i&&null===e.font&&(t.font=f.bridgeObject(o.font))}}]),t}();e.default=w},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(118),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"_findBorderPositionBezier",value:function(t,e){var i,o,n,s,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),h=0,d=0,l=1,u=this.to,c=!1;for(t.id===this.from.id&&(u=this.from,c=!0);d<=l&&h<10;){var p=.5*(d+l);if(i=this.getPoint(p,a),o=Math.atan2(u.y-i.y,u.x-i.x),n=u.distanceToBorder(e,o),s=Math.sqrt(Math.pow(i.x-u.x,2)+Math.pow(i.y-u.y,2)),r=n-s,Math.abs(r)<.2)break;r<0?!1===c?d=p:l=p:!1===c?l=p:d=p,h++}return i.t=p,i}},{key:"_getDistanceToBezierEdge",value:function(t,e,i,o,n,s,r){var a=1e9,h=void 0,d=void 0,l=void 0,u=void 0,c=void 0,p=t,f=e;for(d=1;d<10;d++)l=.1*d,u=Math.pow(1-l,2)*t+2*l*(1-l)*r.x+Math.pow(l,2)*i,c=Math.pow(1-l,2)*e+2*l*(1-l)*r.y+Math.pow(l,2)*o,d>0&&(h=this._getDistanceToLine(p,f,u,c,n,s),a=h1&&void 0!==arguments[1]?arguments[1]:[],o=1e9,n=-1e9,s=1e9,r=-1e9;if(i.length>0)for(var a=0;ae.shape.boundingBox.left&&(s=e.shape.boundingBox.left),re.shape.boundingBox.top&&(o=e.shape.boundingBox.top),n1&&void 0!==arguments[1]?arguments[1]:[],o=1e9,n=-1e9,s=1e9,r=-1e9;if(i.length>0)for(var a=0;ae.x&&(s=e.x),re.y&&(o=e.y),nh;)o(a,i=e[h++])&&(~s(d,i)||d.push(i));return d}},function(t,e,i){var o=i(22),n=i(41),s=i(56)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=n(t),o(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,e,i){var o=i(50),n=i(13)("toStringTag"),s="Arguments"==o(function(){return arguments}()),r=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=r(e=Object(t),n))?i:s?o(e):"Object"==(a=o(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,i){var o=i(17),n=i(7),s=i(28);t.exports=function(t,e){var i=(n.Object||{})[t]||Object[t],r={};r[t]=e(i),o(o.S+o.F*s(function(){i(1)}),"Object",r)}},function(t,e,i){var o=i(84),n=i(58).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,n)}},function(t,e,i){var o=i(42),n=i(39),s=i(25),r=i(53),a=i(22),h=i(81),d=Object.getOwnPropertyDescriptor;e.f=i(21)?d:function(t,e){if(t=s(t),e=r(e,!0),h)try{return d(t,e)}catch(t){}if(a(t,e))return n(!o.f.call(t,e),t[e])}},function(t,e,i){t.exports={default:i(162),__esModule:!0}},function(t,e,i){function o(t,e){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0}t.exports=o},function(t,e,i){function o(t,e){if(void 0===t)throw new Error("No container element defined");if(this.container=t,this.visible=!e||void 0==e.visible||e.visible,this.visible){this.frame=document.createElement("DIV"),this.frame.style.width="100%",this.frame.style.position="relative",this.container.appendChild(this.frame),this.frame.prev=document.createElement("INPUT"),this.frame.prev.type="BUTTON",this.frame.prev.value="Prev",this.frame.appendChild(this.frame.prev),this.frame.play=document.createElement("INPUT"),this.frame.play.type="BUTTON",this.frame.play.value="Play",this.frame.appendChild(this.frame.play),this.frame.next=document.createElement("INPUT"),this.frame.next.type="BUTTON",this.frame.next.value="Next",this.frame.appendChild(this.frame.next),this.frame.bar=document.createElement("INPUT"),this.frame.bar.type="BUTTON",this.frame.bar.style.position="absolute",this.frame.bar.style.border="1px solid red",this.frame.bar.style.width="100px",this.frame.bar.style.height="6px",this.frame.bar.style.borderRadius="2px",this.frame.bar.style.MozBorderRadius="2px",this.frame.bar.style.border="1px solid #7F7F7F",this.frame.bar.style.backgroundColor="#E5E5E5",this.frame.appendChild(this.frame.bar),this.frame.slide=document.createElement("INPUT"),this.frame.slide.type="BUTTON",this.frame.slide.style.margin="0px",this.frame.slide.value=" ",this.frame.slide.style.position="relative",this.frame.slide.style.left="-100px",this.frame.appendChild(this.frame.slide);var i=this;this.frame.slide.onmousedown=function(t){i._onMouseDown(t)},this.frame.prev.onclick=function(t){i.prev(t)},this.frame.play.onclick=function(t){i.togglePlay(t)},this.frame.next.onclick=function(t){i.next(t)}}this.onChangeCallback=void 0,this.values=[],this.index=void 0,this.playTimeout=void 0,this.playInterval=1e3,this.playLoop=!0}var n=i(2);o.prototype.prev=function(){var t=this.getIndex();t>0&&(t--,this.setIndex(t))},o.prototype.next=function(){var t=this.getIndex();t0?this.setIndex(0):this.index=void 0},o.prototype.setIndex=function(t){if(!(tthis.values.length-1&&(o=this.values.length-1),o},o.prototype.indexToLeft=function(t){var e=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;return t/(this.values.length-1)*e+3},o.prototype._onMouseMove=function(t){var e=t.clientX-this.startClientX,i=this.startSlideX+e,o=this.leftToIndex(i);this.setIndex(o),n.preventDefault()},o.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",n.removeEventListener(document,"mousemove",this.onmousemove),n.removeEventListener(document,"mouseup",this.onmouseup),n.preventDefault()},t.exports=o},function(t,e,i){function o(t,e,i,o){this._start=0,this._end=0,this._step=1,this.prettyStep=!0,this.precision=5,this._current=0,this.setRange(t,e,i,o)}o.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},o.prototype.setRange=function(t,e,i,o){if(!this.isNumeric(t))throw new Error("Parameter 'start' is not numeric; value: "+t);if(!this.isNumeric(e))throw new Error("Parameter 'end' is not numeric; value: "+t);if(!this.isNumeric(i))throw new Error("Parameter 'step' is not numeric; value: "+t);this._start=t||0,this._end=e||0,this.setStep(i,o)},o.prototype.setStep=function(t,e){void 0===t||t<=0||(void 0!==e&&(this.prettyStep=e),!0===this.prettyStep?this._step=o.calculatePrettyStep(t):this._step=t)},o.calculatePrettyStep=function(t){var e=function(t){return Math.log(t)/Math.LN10},i=Math.pow(10,Math.round(e(t))),o=2*Math.pow(10,Math.round(e(t/2))),n=5*Math.pow(10,Math.round(e(t/5))),s=i;return Math.abs(o-t)<=Math.abs(s-t)&&(s=o),Math.abs(n-t)<=Math.abs(s-t)&&(s=n),s<=0&&(s=1),s},o.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))},o.prototype.getStep=function(){return this._step},o.prototype.start=function(t){void 0===t&&(t=!1),this._current=this._start-this._start%this._step,t&&this.getCurrent()this._end},t.exports=o},function(t,e,i){function o(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function n(t){return void 0===t||""===t||"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function s(t,e){return void 0===t||""===t?e:t+n(e)}function r(t,e,i,o){for(var n,r,a=0;ar&&(t=o(t)*r),i(e)>r&&(e=o(e)*r),this.cameraOffset.x=t,this.cameraOffset.y=e,this.calculateCameraOrientation()},o.prototype.getOffset=function(){return this.cameraOffset},o.prototype.setArmLocation=function(t,e,i){this.armLocation.x=t,this.armLocation.y=e,this.armLocation.z=i,this.calculateCameraOrientation()},o.prototype.setArmRotation=function(t,e){void 0!==t&&(this.armRotation.horizontal=t),void 0!==e&&(this.armRotation.vertical=e,this.armRotation.vertical<0&&(this.armRotation.vertical=0),this.armRotation.vertical>.5*Math.PI&&(this.armRotation.vertical=.5*Math.PI)),void 0===t&&void 0===e||this.calculateCameraOrientation()},o.prototype.getArmRotation=function(){var t={};return t.horizontal=this.armRotation.horizontal,t.vertical=this.armRotation.vertical,t},o.prototype.setArmLength=function(t){void 0!==t&&(this.armLength=t,this.armLength<.71&&(this.armLength=.71),this.armLength>5&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())}, -o.prototype.getArmLength=function(){return this.armLength},o.prototype.getCameraLocation=function(){return this.cameraLocation},o.prototype.getCameraRotation=function(){return this.cameraRotation},o.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical),this.cameraRotation.x=Math.PI/2-this.armRotation.vertical,this.cameraRotation.y=0,this.cameraRotation.z=-this.armRotation.horizontal;var t=this.cameraRotation.x,e=this.cameraRotation.z,i=this.cameraOffset.x,o=this.cameraOffset.y,n=Math.sin,s=Math.cos;this.cameraLocation.x=this.cameraLocation.x+i*s(e)+o*-n(e)*s(t),this.cameraLocation.y=this.cameraLocation.y+i*n(e)+o*s(e)*s(t),this.cameraLocation.z=this.cameraLocation.z+o*n(t)},t.exports=o},function(t,e,i){function o(t,e,i){this.dataGroup=t,this.column=e,this.graph=i,this.index=void 0,this.value=void 0,this.values=t.getDistinctValues(this.column),this.values.length>0&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,i.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}var n=i(12);o.prototype.isLoaded=function(){return this.loaded},o.prototype.getLoadedProgress=function(){for(var t=this.values.length,e=0;this.dataPoints[e];)e++;return Math.round(e/t*100)},o.prototype.getLabel=function(){return this.graph.filterLabel},o.prototype.getColumn=function(){return this.column},o.prototype.getSelectedValue=function(){if(void 0!==this.index)return this.values[this.index]},o.prototype.getValues=function(){return this.values},o.prototype.getValue=function(t){if(t>=this.values.length)throw new Error("Index out of range");return this.values[t]},o.prototype._getDataPoints=function(t){if(void 0===t&&(t=this.index),void 0===t)return[];var e;if(this.dataPoints[t])e=this.dataPoints[t];else{var i={};i.column=this.column,i.value=this.values[t];var o=new n(this.dataGroup.getDataSet(),{filter:function(t){return t[i.column]==i.value}}).get();e=this.dataGroup._getDataPoints(o),this.dataPoints[t]=e}return e},o.prototype.setOnLoadCallback=function(t){this.onLoadCallback=t},o.prototype.selectValue=function(t){if(t>=this.values.length)throw new Error("Index out of range");this.index=t,this.value=this.values[t]},o.prototype.loadInBackground=function(t){void 0===t&&(t=0);var e=this.graph.frame;if(t0){var n=i.groupsData.getDataSet();n.get().forEach(function(t){if(t.nestedGroups){0!=t.showNested&&(t.showNested=!0);var e=[];t.nestedGroups.forEach(function(i){var o=n.get(i);o&&(o.nestedInGroup=t.id,0==t.showNested&&(o.visible=!1),e=e.concat(o))}),n.update(e,o)}})}},update:function(t,e,o){i._onUpdateGroups(e.items)},remove:function(t,e,o){i._onRemoveGroups(e.items)}},this.items={},this.groups={},this.groupIds=[],this.selection=[],this.popup=null,this.touchParams={},this.groupTouchParams={},this._create(),this.setOptions(e)}var s=i(29),r=o(s),a=i(6),h=o(a),d=i(10),l=i(2),u=i(11),c=i(12),p=i(66),f=i(16),m=i(68),v=i(69),g=i(101),y=i(102),b=i(70),_=i(103),w=i(104).default,x="__ungrouped__",k="__background__";n.prototype=new f,n.types={background:_,box:g,range:b,point:y},n.prototype._create=function(){var t=document.createElement("div");t.className="vis-itemset",t["timeline-itemset"]=this,this.dom.frame=t;var e=document.createElement("div");e.className="vis-background",t.appendChild(e),this.dom.background=e;var i=document.createElement("div");i.className="vis-foreground",t.appendChild(i),this.dom.foreground=i;var o=document.createElement("div");o.className="vis-axis",this.dom.axis=o;var n=document.createElement("div");n.className="vis-labelset",this.dom.labelSet=n,this._updateUngrouped();var s=new v(k,null,this);s.show(),this.groups[k]=s,this.hammer=new d(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(t){t.isFirst&&this._onTouch(t)}.bind(this)),this.hammer.on("panstart",this._onDragStart.bind(this)),this.hammer.on("panmove",this._onDrag.bind(this)),this.hammer.on("panend",this._onDragEnd.bind(this)),this.hammer.get("pan").set({threshold:5,direction:d.DIRECTION_HORIZONTAL}),this.hammer.on("tap",this._onSelectItem.bind(this)),this.hammer.on("press",this._onMultiSelectItem.bind(this)),this.hammer.on("doubletap",this._onAddItem.bind(this)),this.options.rtl?this.groupHammer=new d(this.body.dom.rightContainer):this.groupHammer=new d(this.body.dom.leftContainer),this.groupHammer.on("tap",this._onGroupClick.bind(this)),this.groupHammer.on("panstart",this._onGroupDragStart.bind(this)),this.groupHammer.on("panmove",this._onGroupDrag.bind(this)),this.groupHammer.on("panend",this._onGroupDragEnd.bind(this)),this.groupHammer.get("pan").set({threshold:5,direction:d.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",this._onMouseOver.bind(this)),this.body.dom.centerContainer.addEventListener("mouseout",this._onMouseOut.bind(this)),this.body.dom.centerContainer.addEventListener("mousemove",this._onMouseMove.bind(this)),this.body.dom.centerContainer.addEventListener("contextmenu",this._onDragEnd.bind(this)),this.body.dom.centerContainer.addEventListener("mousewheel",this._onMouseWheel.bind(this)),this.show()},n.prototype.setOptions=function(t){if(t){var e=["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","multiselectPerGroup","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime"];l.selectiveExtend(e,this.options,t),"itemsAlwaysDraggable"in t&&("boolean"==typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===(0,h.default)(t.itemsAlwaysDraggable)&&(l.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===(0,h.default)(t.orientation)&&"item"in t.orientation&&(this.options.orientation.item=t.orientation.item)),"margin"in t&&("number"==typeof t.margin?(this.options.margin.axis=t.margin,this.options.margin.item.horizontal=t.margin,this.options.margin.item.vertical=t.margin):"object"===(0,h.default)(t.margin)&&(l.selectiveExtend(["axis"],this.options.margin,t.margin),"item"in t.margin&&("number"==typeof t.margin.item?(this.options.margin.item.horizontal=t.margin.item,this.options.margin.item.vertical=t.margin.item):"object"===(0,h.default)(t.margin.item)&&l.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),"editable"in t&&("boolean"==typeof t.editable?(this.options.editable.updateTime=t.editable,this.options.editable.updateGroup=t.editable,this.options.editable.add=t.editable,this.options.editable.remove=t.editable,this.options.editable.overrideItems=!1):"object"===(0,h.default)(t.editable)&&l.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,t.editable)),"groupEditable"in t&&("boolean"==typeof t.groupEditable?(this.options.groupEditable.order=t.groupEditable,this.options.groupEditable.add=t.groupEditable,this.options.groupEditable.remove=t.groupEditable):"object"===(0,h.default)(t.groupEditable)&&l.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable));["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"].forEach(function(e){var i=t[e];if(i){if(!(i instanceof Function))throw new Error("option "+e+" must be a function "+e+"(item, callback)");this.options[e]=i}}.bind(this)),this.markDirty()}},n.prototype.markDirty=function(t){this.groupIds=[],t&&t.refreshItems&&l.forEach(this.items,function(t){t.dirty=!0,t.displayed&&t.redraw()})},n.prototype.destroy=function(){this.hide(),this.setItems(null),this.setGroups(null),this.hammer=null,this.body=null,this.conversion=null},n.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)},n.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))},n.prototype.setSelection=function(t){var e,i,o,n;for(void 0==t&&(t=[]),Array.isArray(t)||(t=[t]),e=0,i=this.selection.length;et&&o.push(h.id):h.lefte&&o.push(h.id)}return o},n.prototype._deselect=function(t){for(var e=this.selection,i=0,o=e.length;i0){for(var w={},x=0;x<_;x++)l.forEach(b,function(t,e){w[e]=t[x]()});l.forEach(this.groups,function(t,e){if(e!==k){var i=w[e];s=i||s,g+=t.height}}),g=Math.max(g,y)}return g=Math.max(g,y),r.style.height=i(g),this.props.width=r.offsetWidth,this.props.height=g,this.dom.axis.style.top=i("top"==n?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.initialItemSetDrawn=!0,s=this._isResized()||s},n.prototype._firstGroup=function(){var t="top"==this.options.orientation.item?0:this.groupIds.length-1,e=this.groupIds[t];return this.groups[e]||this.groups[x]||null},n.prototype._updateUngrouped=function(){var t,e,i=this.groups[x];if(this.groupsData){if(i){i.hide(),delete this.groups[x];for(e in this.items)if(this.items.hasOwnProperty(e)){t=this.items[e],t.parent&&t.parent.remove(t);var o=this._getGroupId(t.data),n=this.groups[o];n&&n.add(t)||t.hide()}}}else if(!i){i=new m(null,null,this),this.groups[x]=i;for(e in this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],i.add(t));i.show()}},n.prototype.getLabelSet=function(){return this.dom.labelSet},n.prototype.setItems=function(t){var e,i=this,o=this.itemsData;if(t){if(!(t instanceof u||t instanceof c))throw new TypeError("Data must be an instance of DataSet or DataView");this.itemsData=t}else this.itemsData=null;if(o&&(l.forEach(this.itemListeners,function(t,e){o.off(e,t)}),e=o.getIds(),this._onRemove(e)),this.itemsData){var n=this.id;l.forEach(this.itemListeners,function(t,e){i.itemsData.on(e,t,n)}),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})},n.prototype.getItems=function(){return this.itemsData},n.prototype.setGroups=function(t){var e,i=this;if(this.groupsData&&(l.forEach(this.groupListeners,function(t,e){i.groupsData.off(e,t)}),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!(t instanceof u||t instanceof c))throw new TypeError("Data must be an instance of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var o=this.groupsData;this.groupsData instanceof c&&(o=this.groupsData.getDataSet()),o.get().forEach(function(t){t.nestedGroups&&t.nestedGroups.forEach(function(e){var i=o.get(e);i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),o.update(i)})});var n=this.id;l.forEach(this.groupListeners,function(t,e){i.groupsData.on(e,t,n)}),e=this.groupsData.getIds(),this._onAddGroups(e)}this._updateUngrouped(),this._order(),this.body.emitter.emit("_change",{queue:!0})},n.prototype.getGroups=function(){return this.groupsData},n.prototype.removeItem=function(t){var e=this.itemsData.get(t),i=this.itemsData.getDataSet();e&&this.options.onRemove(e,function(e){e&&i.remove(t)})},n.prototype._getType=function(t){return t.type||this.options.type||(t.end?"range":"box")},n.prototype._getGroupId=function(t){return"background"==this._getType(t)&&void 0==t.group?k:this.groupsData?t.group:x},n.prototype._onUpdate=function(t){var e=this;t.forEach(function(t){var i,o=e.itemsData.get(t,e.itemOptions),s=e.items[t],r=o?e._getType(o):null,a=n.types[r];if(s&&(a&&s instanceof a?e._updateItem(s,o):(i=s.selected,e._removeItem(s),s=null)),!s&&o){if(!a)throw"rangeoverflow"==r?new TypeError('Item type "rangeoverflow" is deprecated. Use css styling instead: .vis-item.vis-range .vis-item-content {overflow: visible;}'):new TypeError('Unknown item type "'+r+'"');s=new a(o,e.conversion,e.options),s.id=t,e._addItem(s),i&&(this.selection.push(t),s.select())}}.bind(this)),this._order(),this.body.emitter.emit("_change",{queue:!0})},n.prototype._onAdd=n.prototype._onUpdate,n.prototype._onRemove=function(t){var e=0,i=this;t.forEach(function(t){var o=i.items[t];o&&(e++,i._removeItem(o))}),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))},n.prototype._order=function(){l.forEach(this.groups,function(t){t.order()})},n.prototype._onUpdateGroups=function(t){this._onAddGroups(t)},n.prototype._onAddGroups=function(t){var e=this;t.forEach(function(t){var i=e.groupsData.get(t),o=e.groups[t];if(o)o.setData(i);else{if(t==x||t==k)throw new Error("Illegal group id. "+t+" is a reserved id.");var n=(0,r.default)(e.options);l.extend(n,{height:null}),o=new m(t,i,e),e.groups[t]=o;for(var s in e.items)if(e.items.hasOwnProperty(s)){var a=e.items[s];a.data.group==t&&o.add(a)}o.order(),o.show()}}),this.body.emitter.emit("_change",{queue:!0})},n.prototype._onRemoveGroups=function(t){var e=this.groups;t.forEach(function(t){var i=e[t];i&&(i.hide(),delete e[t])}),this.markDirty(),this.body.emitter.emit("_change",{queue:!0})},n.prototype._orderGroups=function(){if(this.groupsData){var t=this.groupsData.getIds({order:this.options.groupOrder});t=this._orderNestedGroups(t);var e=!l.equalArray(t,this.groupIds);if(e){var i=this.groups;t.forEach(function(t){i[t].hide()}),t.forEach(function(t){i[t].show()}),this.groupIds=t}return e}return!1},n.prototype._orderNestedGroups=function(t){var e=[];return t.forEach(function(t){var i=this.groupsData.get(t);if(i.nestedInGroup||e.push(t),i.nestedGroups){var o=this.groupsData.get({filter:function(e){return e.nestedInGroup==t},order:this.options.groupOrder}),n=o.map(function(t){return t.id});e=e.concat(n)}},this),e},n.prototype._addItem=function(t){this.items[t.id]=t;var e=this._getGroupId(t.data),i=this.groups[e];i?i&&i.data&&i.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,i&&i.add(t)},n.prototype._updateItem=function(t,e){t.setData(e);var i=this._getGroupId(t.data),o=this.groups[i];o?o&&o.data&&o.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1},n.prototype._removeItem=function(t){t.hide(),delete this.items[t.id];var e=this.selection.indexOf(t.id);-1!=e&&this.selection.splice(e,1),t.parent&&t.parent.remove(t)},n.prototype._constructByEndArray=function(t){for(var e=[],i=0;in)return}}if(i&&i!=this.groupTouchParams.group){var a=e.get(i.groupId),h=e.get(this.groupTouchParams.group.groupId);h&&a&&(this.options.groupOrderSwap(h,a,e),e.update(h),e.update(a));var d=e.getIds({order:this.options.groupOrder});if(!l.equalArray(d,this.groupTouchParams.originalOrder))for(var u=this.groupTouchParams.originalOrder,p=this.groupTouchParams.group.groupId,f=Math.min(u.length,d.length),m=0,v=0,g=0;m=f)break;if(d[m+v]==p)v=1;else if(u[m+g]==p)g=1;else{var y=d.indexOf(u[m+g]),b=e.get(d[m+v]),_=e.get(u[m+g]);this.options.groupOrderSwap(b,_,e),e.update(b),e.update(_);var w=d[m+v];d[m+v]=u[m+g],d[y]=w,m++}}}}},n.prototype._onGroupDragEnd=function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,i=e.groupTouchParams.group.groupId,o=e.groupsData.getDataSet(),n=l.extend({},o.get(i));e.options.onMoveGroup(n,function(t){if(t)t[o._fieldId]=i,o.update(t);else{var n=o.getIds({order:e.options.groupOrder});if(!l.equalArray(n,e.groupTouchParams.originalOrder))for(var s=e.groupTouchParams.originalOrder,r=Math.min(s.length,n.length),a=0;a=r)break;var h=n.indexOf(s[a]),d=o.get(n[a]),u=o.get(s[a]);e.options.groupOrderSwap(d,u,o),o.update(d),o.update(u);var c=n[a];n[a]=s[a],n[h]=c,a++}}}),e.body.emitter.emit("groupDragged",{groupId:i})}},n.prototype._onSelectItem=function(t){if(this.options.selectable){var e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),i=t.srcEvent&&t.srcEvent.shiftKey;if(e||i)return void this._onMultiSelectItem(t);var o=this.getSelection(),n=this.itemFromTarget(t),s=n?[n.id]:[];this.setSelection(s);var r=this.getSelection();(r.length>0||o.length>0)&&this.body.emitter.emit("select",{items:r,event:t})}},n.prototype._onMouseOver=function(t){var e=this.itemFromTarget(t);if(e){if(e!==this.itemFromRelatedTarget(t)){var i=e.getTitle();if(this.options.showTooltips&&i){null==this.popup&&(this.popup=new w(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);var o=this.body.dom.centerContainer;this.popup.setPosition(t.clientX-l.getAbsoluteLeft(o)+o.offsetLeft,t.clientY-l.getAbsoluteTop(o)+o.offsetTop),this.popup.show()}else null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}}},n.prototype._onMouseOut=function(t){var e=this.itemFromTarget(t);if(e){e!==this.itemFromRelatedTarget(t)&&(null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t}))}},n.prototype._onMouseMove=function(t){if(this.itemFromTarget(t)&&this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden){var e=this.body.dom.centerContainer;this.popup.setPosition(t.clientX-l.getAbsoluteLeft(e)+e.offsetLeft,t.clientY-l.getAbsoluteTop(e)+e.offsetTop),this.popup.show()}},n.prototype._onMouseWheel=function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)},n.prototype._onUpdateItem=function(t){if(this.options.selectable&&this.options.editable.add){var e=this;if(t){var i=e.itemsData.get(t.id);this.options.onUpdate(i,function(t){t&&e.itemsData.getDataSet().update(t)})}}},n.prototype._onDropObjectOnItem=function(t){var e=this.itemFromTarget(t),i=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(i,e)},n.prototype._onAddItem=function(t){if(this.options.selectable&&this.options.editable.add){var e,i,o=this,n=this.options.snap||null;this.options.rtl?(e=l.getAbsoluteRight(this.dom.frame),i=e-t.center.x):(e=l.getAbsoluteLeft(this.dom.frame),i=t.center.x-e);var s,r,a=this.body.util.toTime(i),h=this.body.util.getScale(),d=this.body.util.getStep();"drop"==t.type?(r=JSON.parse(t.dataTransfer.getData("text")),r.content=r.content?r.content:"new item",r.start=r.start?r.start:n?n(a,h,d):a,r.type=r.type||"box",r[this.itemsData._fieldId]=r.id||l.randomUUID(),"range"!=r.type||r.end||(s=this.body.util.toTime(i+this.props.width/5),r.end=n?n(s,h,d):s)):(r={start:n?n(a,h,d):a,content:"new item"},r[this.itemsData._fieldId]=l.randomUUID(),"range"===this.options.type&&(s=this.body.util.toTime(i+this.props.width/5),r.end=n?n(s,h,d):s));var u=this.groupFromTarget(t);u&&(r.group=u.groupId),r=this._cloneItemData(r),this.options.onAdd(r,function(e){e&&(o.itemsData.getDataSet().add(e),"drop"==t.type&&o.setSelection([e.id]))})}},n.prototype._onMultiSelectItem=function(t){if(this.options.selectable){var e=this.itemFromTarget(t);if(e){ -var i=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||!1)&&this.options.multiselect){var o=this.itemsData.get(e.id).group,s=void 0;this.options.multiselectPerGroup&&i.length>0&&(s=this.itemsData.get(i[0]).group),this.options.multiselectPerGroup&&void 0!=s&&s!=o||i.push(e.id);var r=n._getItemRange(this.itemsData.get(i,this.itemOptions));if(!this.options.multiselectPerGroup||s==o){i=[];for(var a in this.items)if(this.items.hasOwnProperty(a)){var h=this.items[a],d=h.data.start,l=void 0!==h.data.end?h.data.end:d;!(d>=r.min&&l<=r.max)||this.options.multiselectPerGroup&&s!=this.itemsData.get(h.id).group||h instanceof _||i.push(h.id)}}}else{var u=i.indexOf(e.id);-1==u?i.push(e.id):i.splice(u,1)}this.setSelection(i),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}},n._getItemRange=function(t){var e=null,i=null;return t.forEach(function(t){(null==i||t.starte)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)}),{min:i,max:e}},n.prototype.itemFromElement=function(t){for(var e=t;e;){if(e.hasOwnProperty("timeline-item"))return e["timeline-item"];e=e.parentNode}return null},n.prototype.itemFromTarget=function(t){return this.itemFromElement(t.target)},n.prototype.itemFromRelatedTarget=function(t){return this.itemFromElement(t.relatedTarget)},n.prototype.groupFromTarget=function(t){var e=t.center?t.center.y:t.clientY,i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(var o=0;oa&&ea)return s}else if(0===o&&es&&(s=r.top+r.height)}while(a)}}o.height=s-o.top+.5*i.item.vertical},e.nostack=function(t,i,o,n){for(var s=0;so[r].index&&e.collisionByTimes(o[n],o[r])){s=o[r];break}null!=s&&(o[n].top=s.top+s.height)}while(s)}for(var a=0;ao[h].index&&(o[r].top+=o[h].height);for(var d=t[r],l=0;le.right&&t.top-i.vertical+.001e.top:t.left-i.horizontal+.001e.left&&t.top-i.vertical+.001e.top},e.collisionByTimes=function(t,e){return t.start<=e.start&&t.end>=e.start&&t.tope.top||e.start<=t.start&&e.end>=t.start&&e.topt.top}},function(t,e,i){function o(t,e,i){if(this.props={dot:{width:0,height:0},line:{width:0,height:0}},this.options=i,t&&void 0==t.start)throw new Error('Property "start" missing in item '+t);n.call(this,t,e,i)}var n=i(38);o.prototype=new n(null,null,null),o.prototype.isVisible=function(t){var e=this.options.align,i=this.width*t.getMillisecondsPerPixel();return"right"==e?this.data.start.getTime()>t.start&&this.data.start.getTime()-it.start&&this.data.start.getTime()t.start&&this.data.start.getTime()-i/2t.start&&this.data.startt.start},o.prototype._createDomElement=function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)},o.prototype._appendDomElement=function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.box)}this.displayed=!0},o.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+t}},o.prototype._getDomComponentsSizes=function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}},o.prototype._updateDomComponentsSizes=function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1},o.prototype._repaintDomAdditionals=function(){},o.prototype.redraw=function(t){var e,i=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){this.dirty&&(e=this._getDomComponentsSizes.bind(this)())}.bind(this),function(){this.dirty&&this._updateDomComponentsSizes.bind(this)(e)}.bind(this),this._repaintDomAdditionals.bind(this)];if(t)return i;var o;return i.forEach(function(t){o=t()}),o},o.prototype.show=r.prototype.show,o.prototype.hide=r.prototype.hide,o.prototype.repositionX=r.prototype.repositionX,o.prototype.repositionY=function(t){var e,i=this.options.orientation.item;if(void 0!==this.data.subgroup){var o=this.data.subgroup;this.dom.box.style.height=this.parent.subgroups[o].height+"px",this.dom.box.style.top="top"==i?this.parent.top+this.parent.subgroups[o].top+"px":this.parent.top+this.parent.height-this.parent.subgroups[o].top-this.parent.subgroups[o].height+"px",this.dom.box.style.bottom=""}else this.parent instanceof s?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==i?"0":"",this.dom.box.style.top="top"==i?"0":""):(e=this.parent.height,this.dom.box.style.top=this.parent.top+"px",this.dom.box.style.bottom="");this.dom.box.style.height=e+"px"},t.exports=o},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=function(){function t(e,i){(0,s.default)(this,t),this.container=e,this.overflowMethod=i||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return(0,a.default)(t,[{key:"setPosition",value:function(t,e){this.x=parseInt(t),this.y=parseInt(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,o=this.frame.parentNode.clientHeight,n=this.frame.parentNode.clientWidth,s=0,r=0;if("flip"==this.overflowMethod){var a=!1,h=!0;this.y-en-this.padding&&(a=!0),s=a?this.x-i:this.x,r=h?this.y-e:this.y}else r=this.y-e,r+e+this.padding>o&&(r=o-e-this.padding),rn&&(s=n-i-this.padding),s0){var r={};for(this._getRelevantData(s,r,o,n),this._applySampling(s,r),e=0;e0)switch(t.options.style){case"line":d.hasOwnProperty(s[e])||(d[s[e]]=m.calcPath(r[s[e]],t)),m.draw(d[s[e]],t,this.framework);case"point":case"points":"point"!=t.options.style&&"points"!=t.options.style&&1!=t.options.drawPoints.enabled||v.draw(r[s[e]],t,this.framework)}}}return a.cleanupElements(this.svgElements),!1},o.prototype._stack=function(t,e){var i,o,n,s,r;i=0;for(var a=0;at[a].x){r=e[h],s=0==h?r:e[h-1],i=h;break}}void 0===r&&(s=e[e.length-1],r=e[e.length-1]),o=r.x-s.x,n=r.y-s.y,t[a].y=0==o?t[a].orginalY+r.y:t[a].orginalY+n/o*(t[a].x-s.x)+s.y}},o.prototype._getRelevantData=function(t,e,i,o){var n,s,a,h;if(t.length>0)for(s=0;s0)for(var o=0;o0){var s=1,r=n.length,a=this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x),h=r/a;s=Math.min(Math.ceil(.2*r),Math.max(1,Math.round(h)));for(var d=new Array(r),l=0;l0){for(s=0;s0&&(n=this.groups[t[s]],!0===r.stack&&"bar"===r.style?"left"===r.yAxisOrientation?a=a.concat(o):h=h.concat(o):i[t[s]]=n.getYRange(o,t[s]));f.getStackedYRange(a,i,t,"__barStackLeft","left"),f.getStackedYRange(h,i,t,"__barStackRight","right")}},o.prototype._updateYAxis=function(t,e){var i,o,n=!1,s=!1,r=!1,a=1e9,h=1e9,d=-1e9,l=-1e9;if(t.length>0){for(var u=0;ui?i:a,d=di?i:h,l=l=0&&t._redrawLabel(o-2,e.val,i,"vis-y-axis vis-major",t.props.majorCharHeight),!0===t.master&&(n?t._redrawLine(o,i,"vis-grid vis-horizontal vis-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(o,i,"vis-grid vis-horizontal vis-minor",t.options.minorLinesOffset,t.props.minorLineWidth))});var r=0;void 0!==this.options[i].title&&void 0!==this.options[i].title.text&&(r=this.props.titleCharHeight);var h=!0===this.options.icons?Math.max(this.options.iconWidth,r)+this.options.labelOffsetX+15:r+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-h&&!0===this.options.visible?(this.width=this.maxLabelSize+h,this.options.width=this.width+"px",a.cleanupElements(this.DOMelements.lines),a.cleanupElements(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+h),this.options.width=this.width+"px",a.cleanupElements(this.DOMelements.lines),a.cleanupElements(this.DOMelements.labels),this.redraw(),e=!0):(a.cleanupElements(this.DOMelements.lines),a.cleanupElements(this.DOMelements.labels),e=!1),e},o.prototype.convertValue=function(t){return this.scale.convertValue(t)},o.prototype.screenToValue=function(t){return this.scale.screenToValue(t)},o.prototype._redrawLabel=function(t,e,i,o,n){var s=a.getDOMElement("div",this.DOMelements.labels,this.dom.frame);s.className=o,s.innerHTML=e,"left"===i?(s.style.left="-"+this.options.labelOffsetX+"px",s.style.textAlign="right"):(s.style.right="-"+this.options.labelOffsetX+"px",s.style.textAlign="left"),s.style.top=t-.5*n+this.options.labelOffsetY+"px",e+="";var r=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=n,this.majorCharHeight=s,this._start=t,this._end=e,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=r,this.autoScaleStart=i,this.autoScaleEnd=o,this.formattingFunction=a,i||o){var h=this,d=function(t){var e=t-t%(h.magnitudefactor*h.minorSteps[h.minorStepIdx]);return t%(h.magnitudefactor*h.minorSteps[h.minorStepIdx])>h.magnitudefactor*h.minorSteps[h.minorStepIdx]*.5?e+h.magnitudefactor*h.minorSteps[h.minorStepIdx]:e};i&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=d(this._start)),o&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=d(this._end)),this.determineScale()}}o.prototype.setCharHeight=function(t){this.majorCharHeight=t},o.prototype.setHeight=function(t){this.containerHeight=t},o.prototype.determineScale=function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var e=this.majorCharHeight/this.scale,i=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,i);var o=0;i<0&&(o=i);for(var n=!1,s=o;Math.abs(s)<=Math.abs(i);s++){this.magnitudefactor=Math.pow(10,s);for(var r=0;r=e){n=!0,this.minorStepIdx=r;break}}if(!0===n)break}},o.prototype.is_major=function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0},o.prototype.getStep=function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]},o.prototype.getFirstMajor=function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)},o.prototype.formatValue=function(t){var e=t.toPrecision(5);return"function"==typeof this.formattingFunction&&(e=this.formattingFunction(t)),"number"==typeof e?""+e:"string"==typeof e?e:t.toPrecision(5)},o.prototype.getLines=function(){for(var t=[],e=this.getStep(),i=(e-this._start%e)%e,o=this._start+i;this._end-o>1e-5;o+=e)o!=this._start&&t.push({major:this.is_major(o),y:this.convertValue(o),val:this.formatValue(o)});return t},o.prototype.followScale=function(t){var e=this.minorStepIdx,i=this._start,o=this._end,n=this,s=function(){n.magnitudefactor*=2},r=function(){n.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdxo+1e-5)r(),d=!1;else{if(!this.autoScaleStart&&this._start=0)){r(),d=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&ue.x?1:-1})):this.itemsData=[]},o.prototype.getItems=function(){return this.itemsData},o.prototype.setZeroPosition=function(t){this.zeroPosition=t},o.prototype.setOptions=function(t){if(void 0!==t){var e=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];r.selectiveDeepExtend(e,this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),r.mergeOptions(this.options,t,"interpolation"),r.mergeOptions(this.options,t,"drawPoints"),r.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==(0,s.default)(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}},o.prototype.update=function(t){this.group=t,this.content=t.content||"graph",this.className=t.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===t.visible||t.visible,this.style=t.style,this.setOptions(t.options)},o.prototype.getLegend=function(t,e,i,o,n){if(void 0==i||null==i){i={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}}switch(void 0!=o&&null!=o||(o=0),void 0!=n&&null!=n||(n=.5*e),this.options.style){case"line":h.drawIcon(this,o,n,t,e,i);break;case"points":case"point":d.drawIcon(this,o,n,t,e,i);break;case"bar":a.drawIcon(this,o,n,t,e,i)}return{icon:i.svg,label:this.content,orientation:this.options.yAxisOrientation}},o.prototype.getYRange=function(t){for(var e=t[0].y,i=t[0].y,o=0;ot[o].y?t[o].y:e,i=i0&&(i=Math.min(i,Math.abs(e[o-1].screen_x-e[o].screen_x))),0===i&&(void 0===t[e[o].screen_x]&&(t[e[o].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[o].screen_x].amount+=1)},o._getSafeDrawData=function(t,e,i){var o,n;return t0?(o=t0){t.sort(function(t,e){return t.screen_x===e.screen_x?t.groupIde[s].screen_y?e[s].screen_y:o,n=nt[r].accumulatedNegative?t[r].accumulatedNegative:o,o=o>t[r].accumulatedPositive?t[r].accumulatedPositive:o,n=n0){return 1==e.options.interpolation.enabled?o._catmullRom(t,e):o._linear(t)}},o.drawIcon=function(t,e,i,o,s,r){var a,h,d=.5*s,l=n.getSVGElement("rect",r.svgElements,r.svg);if(l.setAttributeNS(null,"x",e),l.setAttributeNS(null,"y",i-d),l.setAttributeNS(null,"width",o),l.setAttributeNS(null,"height",2*d),l.setAttributeNS(null,"class","vis-outline"),a=n.getSVGElement("path",r.svgElements,r.svg),a.setAttributeNS(null,"class",t.className),void 0!==t.style&&a.setAttributeNS(null,"style",t.style),a.setAttributeNS(null,"d","M"+e+","+i+" L"+(e+o)+","+i),1==t.options.shaded.enabled&&(h=n.getSVGElement("path",r.svgElements,r.svg),"top"==t.options.shaded.orientation?h.setAttributeNS(null,"d","M"+e+", "+(i-d)+"L"+e+","+i+" L"+(e+o)+","+i+" L"+(e+o)+","+(i-d)):h.setAttributeNS(null,"d","M"+e+","+i+" L"+e+","+(i+d)+" L"+(e+o)+","+(i+d)+"L"+(e+o)+","+i),h.setAttributeNS(null,"class",t.className+" vis-icon-fill"),void 0!==t.options.shaded.style&&""!==t.options.shaded.style&&h.setAttributeNS(null,"style",t.options.shaded.style)),1==t.options.drawPoints.enabled){var u={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className};n.drawPoint(e+.5*o,i,u,r.svgElements,r.svg)}},o.drawShading=function(t,e,i,o){if(1==e.options.shaded.enabled){var s=Number(o.svg.style.height.replace("px","")),r=n.getSVGElement("path",o.svgElements,o.svg),a="L";1==e.options.interpolation.enabled&&(a="C");var h,d=0;d="top"==e.options.shaded.orientation?0:"bottom"==e.options.shaded.orientation?s:Math.min(Math.max(0,e.zeroPosition),s),h="group"==e.options.shaded.orientation&&null!=i&&void 0!=i?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" L"+i[i.length-1][0]+","+i[i.length-1][1]+" "+this.serializePath(i,a,!0)+i[0][0]+","+i[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" V"+d+" H"+t[0][0]+" Z",r.setAttributeNS(null,"class",e.className+" vis-fill"),void 0!==e.options.shaded.style&&r.setAttributeNS(null,"style",e.options.shaded.style),r.setAttributeNS(null,"d",h)}},o.draw=function(t,e,i){if(null!=t&&void 0!=t){var o=n.getSVGElement("path",i.svgElements,i.svg);o.setAttributeNS(null,"class",e.className),void 0!==e.style&&o.setAttributeNS(null,"style",e.style);var s="L";1==e.options.interpolation.enabled&&(s="C"),o.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,s,!1))}},o.serializePath=function(t,e,i){if(t.length<2)return"";var o,n=e;if(i)for(o=t.length-2;o>0;o--)n+=t[o][0]+","+t[o][1]+" ";else for(o=1;o0&&(f=1/f),m=3*v*(v+g),m>0&&(m=1/m),a={screen_x:(-b*o.screen_x+c*n.screen_x+_*s.screen_x)*f,screen_y:(-b*o.screen_y+c*n.screen_y+_*s.screen_y)*f},h={screen_x:(y*n.screen_x+p*s.screen_x-b*r.screen_x)*m,screen_y:(y*n.screen_y+p*s.screen_y-b*r.screen_y)*m},0==a.screen_x&&0==a.screen_y&&(a=n),0==h.screen_x&&0==h.screen_y&&(h=s),x.push([a.screen_x,a.screen_y]),x.push([h.screen_x,h.screen_y]),x.push([s.screen_x,s.screen_y]);return x},o._linear=function(t){for(var e=[],i=0;i");this.dom.textArea.innerHTML=r,this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},o.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=(0,s.default)(this.groups);t.sort(function(t,e){return t=0;i--){var a=s[i];a.nodes||(a.nodes=[]),-1===a.nodes.indexOf(n)&&a.nodes.push(n)}e.attr&&(n.attr=h(n.attr,e.attr))}function u(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var i=h({},t.edge);e.attr=h(i,e.attr)}}function c(t,e,i,o,n){var s={from:e,to:i,type:o};return t.edge&&(s.attr=h({},t.edge)),s.attr=h(s.attr||{},n),s}function p(){for(F=I.NULL,L="";" "===z||"\t"===z||"\n"===z||"\r"===z;)s();do{var t=!1;if("#"===z){for(var e=A-1;" "===R.charAt(e)||"\t"===R.charAt(e);)e--;if("\n"===R.charAt(e)||""===R.charAt(e)){for(;""!=z&&"\n"!=z;)s();t=!0}}if("/"===z&&"/"===r()){for(;""!=z&&"\n"!=z;)s();t=!0}if("/"===z&&"*"===r()){for(;""!=z;){if("*"===z&&"/"===r()){s(),s();break}s()}t=!0}for(;" "===z||"\t"===z||"\n"===z||"\r"===z;)s()}while(t);if(""===z)return void(F=I.DELIMITER);var i=z+r();if(N[i])return F=I.DELIMITER,L=i,s(),void s();if(N[z])return F=I.DELIMITER,L=z,void s();if(a(z)||"-"===z){for(L+=z,s();a(z);)L+=z,s();return"false"===L?L=!1:"true"===L?L=!0:isNaN(Number(L))||(L=Number(L)),void(F=I.IDENTIFIER)}if('"'===z){for(s();""!=z&&('"'!=z||'"'===z&&'"'===r());)'"'===z?(L+=z,s()):"\\"===z&&"n"===r()?(L+="\n",s()):L+=z,s();if('"'!=z)throw x('End of string " expected');return s(),void(F=I.IDENTIFIER)}for(F=I.UNKNOWN;""!=z;)L+=z,s();throw new SyntaxError('Syntax error in part "'+k(L,30)+'"')}function f(){var t={};if(n(),p(),"strict"===L&&(t.strict=!0,p()),"graph"!==L&&"digraph"!==L||(t.type=L,p()),F===I.IDENTIFIER&&(t.id=L,p()),"{"!=L)throw x("Angle bracket { expected");if(p(),m(t),"}"!=L)throw x("Angle bracket } expected");if(p(),""!==L)throw x("End of file expected");return p(),delete t.node,delete t.edge,delete t.graph,t}function m(t){for(;""!==L&&"}"!=L;)v(t),";"===L&&p()}function v(t){var e=g(t);if(e)return void _(t,e);if(!y(t)){if(F!=I.IDENTIFIER)throw x("Identifier expected");var i=L;if(p(),"="===L){if(p(),F!=I.IDENTIFIER)throw x("Identifier expected");t[i]=L,p()}else b(t,i)}}function g(t){var e=null;if("subgraph"===L&&(e={},e.type="subgraph",p(),F===I.IDENTIFIER&&(e.id=L,p())),"{"===L){if(p(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,m(e),"}"!=L)throw x("Angle bracket } expected");p(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function y(t){return"node"===L?(p(),t.node=w(),"node"):"edge"===L?(p(),t.edge=w(),"edge"):"graph"===L?(p(),t.graph=w(),"graph"):null}function b(t,e){var i={id:e},o=w();o&&(i.attr=o),l(t,i),_(t,e)}function _(t,e){for(;"->"===L||"--"===L;){var i,o=L;p();var n=g(t);if(n)i=n;else{if(F!=I.IDENTIFIER)throw x("Identifier or subgraph expected");i=L,l(t,{id:i}),p()}u(t,c(t,e,i,o,w())),e=i}}function w(){for(var t=null,e={dashed:!0,solid:!1,dotted:[1,5]};"["===L;){for(p(),t={};""!==L&&"]"!=L;){if(F!=I.IDENTIFIER)throw x("Attribute name expected");var i=L;if(p(),"="!=L)throw x("Equal sign = expected");if(p(),F!=I.IDENTIFIER)throw x("Attribute value expected");var o=L;"style"===i&&(o=e[o]),d(t,i,o),p(),","==L&&p()}if("]"!=L)throw x("Bracket ] expected");p()}return t}function x(t){return new SyntaxError(t+', got "'+k(L,30)+'" (char '+A+")")}function k(t,e){return t.length<=e?t:t.substr(0,27)+"..."}function S(t,e,i){Array.isArray(t)?t.forEach(function(t){Array.isArray(e)?e.forEach(function(e){i(t,e)}):i(t,e)}):Array.isArray(e)?e.forEach(function(e){i(t,e)}):i(t,e)}function D(t,e,i){for(var o=e.split("."),n=o.pop(),s=t,r=0;r":!0,"--":!0},R="",A=0,z="",L="",F=I.NULL,B=/[a-zA-Z_0-9.:#]/;e.parseDOT=o,e.DOTToGraph=C},function(t,e,i){function o(t,e){var i=[],o=[],n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};void 0!==e&&(void 0!==e.fixed&&(n.nodes.fixed=e.fixed),void 0!==e.parseColor&&(n.nodes.parseColor=e.parseColor),void 0!==e.inheritColor&&(n.edges.inheritColor=e.inheritColor));for(var s=t.edges,r=t.nodes,a=0;a2&&void 0!==arguments[2]&&arguments[2];(0,d.default)(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(i),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=o}return(0,u.default)(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),p.isValidLabel(t.label)?this.labelDirty=!0:t.label="",void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===(0,a.default)(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:"initFontOptions",value:function(e){var i=this;if(c.forEach(m,function(t){i.fontOptions[t]={}}),t.parseFontString(this.fontOptions,e))return void(this.fontOptions.vadjust=0);c.forEach(e,function(t,e){void 0!==t&&null!==t&&"object"!==(void 0===t?"undefined":(0,a.default)(t))&&(i.fontOptions[e]=t)})}},{key:"constrain",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=c.topMost(t,"widthConstraint");if("number"==typeof i)e.maxWdt=Number(i),e.minWdt=Number(i);else if("object"===(void 0===i?"undefined":(0,a.default)(i))){var o=c.topMost(t,["widthConstraint","maximum"]);"number"==typeof o&&(e.maxWdt=Number(o));var n=c.topMost(t,["widthConstraint","minimum"]);"number"==typeof n&&(e.minWdt=Number(n))}var s=c.topMost(t,"heightConstraint");if("number"==typeof s)e.minHgt=Number(s);else if("object"===(void 0===s?"undefined":(0,a.default)(s))){var r=c.topMost(t,["heightConstraint","minimum"]);"number"==typeof r&&(e.minHgt=Number(r));var h=c.topMost(t,["heightConstraint","valign"]);"string"==typeof h&&("top"!==h&&"bottom"!==h||(e.valign=h))}return e}},{key:"update",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),c.deepExtend(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=p.choosify("label",e)}},{key:"adjustSizes",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var i=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(t,e){for(var i=0;i5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var r=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&r=this.elementOptions.scaling.label.maxVisible&&(r=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,o,n,e,i,s),this._drawBackground(t),this._drawText(t,e,this.size.yLine,s,r))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:"_drawText",value:function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",n=arguments[4],r=this._setAlignment(t,e,i,o),a=(0,s.default)(r,2);e=a[0],i=a[1],t.textAlign="left",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(i-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(i+=(this.size.height-this.size.labelHeight)/2));for(var h=0;h0&&(t.lineWidth=c.strokeWidth,t.strokeStyle=v,t.lineJoin="round"),t.fillStyle=m,c.strokeWidth>0&&t.strokeText(c.text,e+l,i+c.vadjust),t.fillText(c.text,e+l,i+c.vadjust),l+=c.width}i+=d.height}}}},{key:"_setAlignment",value:function(t,e,i,o){if(this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf){e=0,i=0;"top"===this.fontOptions.align?(t.textBaseline="alphabetic",i-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",i+=4):t.textBaseline="middle"}else t.textBaseline=o;return[e,i]}},{key:"_getColor",value:function(t,e,i){var o=t||"#000000",n=i||"#ffffff";if(e<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));o=c.overrideOpacity(o,s),n=c.overrideOpacity(n,s)}return[o,n]}},{key:"getTextSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var i=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=i,e=.5*-this.size.height;break;case"top":t=i,e=-(this.size.height+2);break;case"bottom":t=i,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,e,i),this.size.left=o-.5*this.size.width,this.size.top=n-.5*this.size.height,this.size.yLine=n+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===s&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,e,i,o){var n=function(t,e,i){return"normal"===e?"mod"===i?"":t[i]:void 0!==t[e][i]?t[e][i]:t[i]},s={color:n(this.fontOptions,o,"color"),size:n(this.fontOptions,o,"size"),face:n(this.fontOptions,o,"face"),mod:n(this.fontOptions,o,"mod"),vadjust:n(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||i)&&("normal"===o&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?s.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(s,this.elementOptions.id,e,i));var r="";return void 0!==s.mod&&""!==s.mod&&(r+=s.mod+" "),r+=s.size+"px "+s.face,t.font=r.replace(/"/g,""),s.font=t.font,s.height=s.size,s}},{key:"differentState",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:"_processLabelText",value:function(t,e,i,o){return new f(t,this,e,i).process(o)}},{key:"_processLabel",value:function(t,e,i){if(!1!==this.labelDirty||this.differentState(e,i)){var o=this._processLabelText(t,e,i,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width0&&o.heighto.shape.height?(e=o.x+.5*o.shape.width,i=o.y-n):(e=o.x+n,i=o.y-.5*o.shape.height),[e,i,n]}},{key:"_pointOnCircle",value:function(t,e,i,o){var n=2*o*Math.PI;return{x:t+i*Math.cos(n),y:e-i*Math.sin(n)}}},{key:"_findBorderPositionCircle",value:function(t,e,i){for(var o=i.x,n=i.y,s=i.low,r=i.high,a=i.direction,h=0,d=this.options.selfReferenceSize,l=void 0,u=void 0,c=void 0,p=void 0,f=void 0,m=.5*(s+r);s<=r&&h<10&&(m=.5*(s+r),l=this._pointOnCircle(o,n,d,m),u=Math.atan2(t.y-l.y,t.x-l.x),c=t.distanceToBorder(e,u),p=Math.sqrt(Math.pow(l.x-t.x,2)+Math.pow(l.y-t.y,2)),f=c-p,!(Math.abs(f)<.05));)f>0?a>0?s=m:r=m:a>0?r=m:s=m,h++;return l.t=m,l}},{key:"getLineWidth",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this.body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this.body.view.scale):Math.max(this.options.width,.3/this.body.view.scale)}},{key:"getColor",value:function(t,e,i,o){if(!1!==e.inheritsColor){if("both"===e.inheritsColor&&this.from.id!==this.to.id){var n=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),s=void 0,r=void 0;return s=this.from.options.color.highlight.border,r=this.to.options.color.highlight.border,!1===this.from.selected&&!1===this.to.selected?(s=l.overrideOpacity(this.from.options.color.border,e.opacity),r=l.overrideOpacity(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?r=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(s=this.from.options.color.border),n.addColorStop(0,s),n.addColorStop(1,r),n}return"to"===e.inheritsColor?l.overrideOpacity(this.to.options.color.border,e.opacity):l.overrideOpacity(this.from.options.color.border,e.opacity)}return l.overrideOpacity(e.color,e.opacity)}},{key:"_circle", -value:function(t,e,i,o,n){this.enableShadow(t,e),t.beginPath(),t.arc(i,o,n,0,2*Math.PI,!1),t.stroke(),this.disableShadow(t,e)}},{key:"getDistanceToEdge",value:function(t,e,i,o,n,r,a,h){var d=0;if(this.from!=this.to)d=this._getDistanceToEdge(t,e,i,o,n,r,a);else{var l=this._getCircleData(void 0),u=(0,s.default)(l,3),c=u[0],p=u[1],f=u[2],m=c-n,v=p-r;d=Math.abs(Math.sqrt(m*m+v*v)-f)}return d}},{key:"_getDistanceToLine",value:function(t,e,i,o,n,s){var r=i-t,a=o-e,h=r*r+a*a,d=((n-t)*r+(s-e)*a)/h;d>1?d=1:d<0&&(d=0);var l=t+d*r,u=e+d*a,c=l-n,p=u-s;return Math.sqrt(c*c+p*p)}},{key:"getArrowData",value:function(t,e,i,o,n,r){var a=void 0,h=void 0,d=void 0,l=void 0,u=void 0,c=void 0,p=void 0,f=r.width;if("from"===e?(d=this.from,l=this.to,u=.1,c=r.fromArrowScale,p=r.fromArrowType):"to"===e?(d=this.to,l=this.from,u=-.1,c=r.toArrowScale,p=r.toArrowType):(d=this.to,l=this.from,c=r.middleArrowScale,p=r.middleArrowType),d!=l)if("middle"!==e)if(!0===this.options.smooth.enabled){h=this.findBorderPosition(d,t,{via:i});var m=this.getPoint(Math.max(0,Math.min(1,h.t+u)),i);a=Math.atan2(h.y-m.y,h.x-m.x)}else a=Math.atan2(d.y-l.y,d.x-l.x),h=this.findBorderPosition(d,t);else a=Math.atan2(d.y-l.y,d.x-l.x),h=this.getPoint(.5,i);else{var v=this._getCircleData(t),g=(0,s.default)(v,3),y=g[0],b=g[1],_=g[2];"from"===e?(h=this.findBorderPosition(this.from,t,{x:y,y:b,low:.25,high:.6,direction:-1}),a=-2*h.t*Math.PI+1.5*Math.PI+.1*Math.PI):"to"===e?(h=this.findBorderPosition(this.from,t,{x:y,y:b,low:.6,high:1,direction:1}),a=-2*h.t*Math.PI+1.5*Math.PI-1.1*Math.PI):(h=this._pointOnCircle(y,b,_,.175),a=3.9269908169872414)}"middle"===e&&c<0&&(f*=-1);var w=15*c+3*f;return{point:h,core:{x:h.x-.9*w*Math.cos(a),y:h.y-.9*w*Math.sin(a)},angle:a,length:w,type:p}}},{key:"drawArrowHead",value:function(t,e,i,o,n){t.strokeStyle=this.getColor(t,e,i,o),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,u.draw(t,n),this.enableShadow(t,e),t.fill(),this.disableShadow(t,e)}},{key:"enableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}]),t}();e.default=c},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(4),a=o(r),h=i(5),d=o(h),l=i(0),u=o(l),c=i(1),p=o(c),f=function(){function t(){(0,u.default)(this,t)}return(0,p.default)(t,null,[{key:"transform",value:function(t,e){t instanceof Array||(t=[t]);for(var i=e.point.x,o=e.point.y,n=e.angle,s=e.length,r=0;r0){var t=void 0,e=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,n=this._formBarnesHutTree(e,i);this.barnesHutTree=n;for(var s=0;s0&&this._getForceContributions(n.root,t)}}},{key:"_getForceContributions",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:"_getForceContribution",value:function(t,e){if(t.childrenCount>0){var i=void 0,o=void 0,n=void 0;i=t.centerOfMass.x-e.x,o=t.centerOfMass.y-e.y,n=Math.sqrt(i*i+o*o),n*t.calcSize>this.thetaInversed?this._calculateForces(n,i,o,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(n,i,o,e,t)}}},{key:"_calculateForces",value:function(t,e,i,o,n){0===t&&(t=.1,e=t),this.overlapAvoidanceFactor<1&&o.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,t-o.shape.radius));var s=this.options.gravitationalConstant*n.mass*o.options.mass/Math.pow(t,3),r=e*s,a=i*s;this.physicsBody.forces[o.id].x+=r,this.physicsBody.forces[o.id].y+=a}},{key:"_formBarnesHutTree",value:function(t,e){for(var i=void 0,o=e.length,n=t[e[0]].x,s=t[e[0]].y,r=t[e[0]].x,a=t[e[0]].y,h=1;h0&&(lr&&(r=l),ua&&(a=u))}var c=Math.abs(r-n)-Math.abs(a-s);c>0?(s-=.5*c,a+=.5*c):(n+=.5*c,r-=.5*c);var p=Math.max(1e-5,Math.abs(r-n)),f=.5*p,m=.5*(n+r),v=.5*(s+a),g={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:m-f,maxX:m+f,minY:v-f,maxY:v+f},size:p,calcSize:1/p,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(g.root);for(var y=0;y0&&this._placeInTree(g.root,i);return g}},{key:"_updateBranchMass",value:function(t,e){var i=t.centerOfMass,o=t.mass+e.options.mass,n=1/o;i.x=i.x*t.mass+e.x*e.options.mass,i.x*=n,i.y=i.y*t.mass+e.y*e.options.mass,i.y*=n,t.mass=o;var s=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidthe.x?o.maxY>e.y?"NW":"SW":o.maxY>e.y?"NE":"SE",this._placeInRegion(t,e,n)}},{key:"_placeInRegion",value:function(t,e,i){var o=t.children[i];switch(o.childrenCount){case 0:o.children.data=e,o.childrenCount=1,this._updateBranchMass(o,e);break;case 1:o.children.data.x===e.x&&o.children.data.y===e.y?(e.x+=this.seededRandom(),e.y+=this.seededRandom()):(this._splitBranch(o),this._placeInTree(o,e));break;case 4:this._placeInTree(o,e)}}},{key:"_splitBranch",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=e&&this._placeInTree(t,e)}},{key:"_insertRegion",value:function(t,e){var i=void 0,o=void 0,n=void 0,s=void 0,r=.5*t.size;switch(e){case"NW":i=t.range.minX,o=t.range.minX+r,n=t.range.minY,s=t.range.minY+r;break;case"NE":i=t.range.minX+r,o=t.range.maxX,n=t.range.minY,s=t.range.minY+r;break;case"SW":i=t.range.minX,o=t.range.minX+r,n=t.range.minY+r,s=t.range.maxY;break;case"SE":i=t.range.minX+r,o=t.range.maxX,n=t.range.minY+r,s=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:n,maxY:s},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:"_drawBranch",value:function(t,e,i){void 0===i&&(i="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=i,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}();e.default=h},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=function(){function t(e,i,o){(0,s.default)(this,t),this.body=e,this.physicsBody=i,this.setOptions(o)}return(0,a.default)(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t=void 0,e=void 0,i=void 0,o=void 0,n=this.body.nodes,s=this.physicsBody.physicsNodeIndices,r=this.physicsBody.forces,a=0;a=t.length?(this._t=void 0,n(1)):"keys"==e?n(0,i):"values"==e?n(0,t[i]):n(0,[i,t[i]])},"values"),s.Arguments=s.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var o=i(54),n=i(39),s=i(59),r={};i(26)(r,i(13)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=o(r,{next:n(1,i)}),s(t,e+" Iterator")}},function(t,e,i){var o=i(20),n=i(27),s=i(33);t.exports=i(21)?Object.defineProperties:function(t,e){n(t);for(var i,r=s(e),a=r.length,h=0;a>h;)o.f(t,i=r[h++],e[i]);return t}},function(t,e,i){var o=i(25),n=i(132),s=i(133);t.exports=function(t){return function(e,i,r){var a,h=o(e),d=n(h.length),l=s(r,d);if(t&&i!=i){for(;d>l;)if((a=h[l++])!=a)return!0}else for(;d>l;l++)if((t||l in h)&&h[l]===i)return t||l||0;return!t&&-1}}},function(t,e,i){var o=i(55),n=Math.min;t.exports=function(t){return t>0?n(o(t),9007199254740991):0}},function(t,e,i){var o=i(55),n=Math.max,s=Math.min;t.exports=function(t,e){return t=o(t),t<0?n(t+e,0):s(t,e)}},function(t,e,i){var o=i(18).document;t.exports=o&&o.documentElement},function(t,e,i){var o=i(55),n=i(51);t.exports=function(t){return function(e,i){var s,r,a=String(n(e)),h=o(i),d=a.length;return h<0||h>=d?t?"":void 0:(s=a.charCodeAt(h),s<55296||s>56319||h+1===d||(r=a.charCodeAt(h+1))<56320||r>57343?t?a.charAt(h):s:t?a.slice(h,h+2):r-56320+(s-55296<<10)+65536)}}},function(t,e,i){var o=i(27),n=i(137);t.exports=i(7).getIterator=function(t){var e=n(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return o(e.call(t))}},function(t,e,i){var o=i(86),n=i(13)("iterator"),s=i(31);t.exports=i(7).getIteratorMethod=function(t){if(void 0!=t)return t[n]||t["@@iterator"]||s[o(t)]}},function(t,e,i){i(139);var o=i(7).Object;t.exports=function(t,e){return o.create(t,e)}},function(t,e,i){var o=i(17);o(o.S,"Object",{create:i(54)})},function(t,e,i){i(141),t.exports=i(7).Object.keys},function(t,e,i){var o=i(41),n=i(33);i(87)("keys",function(){return function(t){return n(o(t))}})},function(t,e,i){t.exports={default:i(143),__esModule:!0}},function(t,e,i){i(60),i(49),t.exports=i(61).f("iterator")},function(t,e,i){t.exports={default:i(145),__esModule:!0}},function(t,e,i){i(146),i(151),i(152),i(153),t.exports=i(7).Symbol},function(t,e,i){var o=i(18),n=i(22),s=i(21),r=i(17),a=i(83),h=i(147).KEY,d=i(28),l=i(57),u=i(59),c=i(40),p=i(13),f=i(61),m=i(62),v=i(148),g=i(149),y=i(27),b=i(25),_=i(53),w=i(39),x=i(54),k=i(150),S=i(89),D=i(20),M=i(33),C=S.f,O=D.f,E=k.f,T=o.Symbol,P=o.JSON,I=P&&P.stringify,N=p("_hidden"),R=p("toPrimitive"),A={}.propertyIsEnumerable,z=l("symbol-registry"),L=l("symbols"),F=l("op-symbols"),B=Object.prototype,j="function"==typeof T,H=o.QObject,W=!H||!H.prototype||!H.prototype.findChild,Y=s&&d(function(){return 7!=x(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,i){var o=C(B,e);o&&delete B[e],O(t,e,i),o&&t!==B&&O(B,e,o)}:O,G=function(t){var e=L[t]=x(T.prototype);return e._k=t,e},V=j&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},U=function(t,e,i){return t===B&&U(F,e,i),y(t),e=_(e,!0),y(i),n(L,e)?(i.enumerable?(n(t,N)&&t[N][e]&&(t[N][e]=!1),i=x(i,{enumerable:w(0,!1)})):(n(t,N)||O(t,N,w(1,{})),t[N][e]=!0),Y(t,e,i)):O(t,e,i)},q=function(t,e){y(t);for(var i,o=v(e=b(e)),n=0,s=o.length;s>n;)U(t,i=o[n++],e[i]);return t},X=function(t,e){return void 0===e?x(t):q(x(t),e)},Z=function(t){var e=A.call(this,t=_(t,!0));return!(this===B&&n(L,t)&&!n(F,t))&&(!(e||!n(this,t)||!n(L,t)||n(this,N)&&this[N][t])||e)},K=function(t,e){if(t=b(t),e=_(e,!0),t!==B||!n(L,e)||n(F,e)){var i=C(t,e);return!i||!n(L,e)||n(t,N)&&t[N][e]||(i.enumerable=!0),i}},J=function(t){for(var e,i=E(b(t)),o=[],s=0;i.length>s;)n(L,e=i[s++])||e==N||e==h||o.push(e);return o},$=function(t){for(var e,i=t===B,o=E(i?F:b(t)),s=[],r=0;o.length>r;)!n(L,e=o[r++])||i&&!n(B,e)||s.push(L[e]);return s};j||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=c(arguments.length>0?arguments[0]:void 0),e=function(i){this===B&&e.call(F,i),n(this,N)&&n(this[N],t)&&(this[N][t]=!1),Y(this,t,w(1,i))};return s&&W&&Y(B,t,{configurable:!0,set:e}),G(t)},a(T.prototype,"toString",function(){return this._k}),S.f=K,D.f=U,i(88).f=k.f=J,i(42).f=Z,i(63).f=$,s&&!i(52)&&a(B,"propertyIsEnumerable",Z,!0),f.f=function(t){return G(p(t))}),r(r.G+r.W+r.F*!j,{Symbol:T});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)p(Q[tt++]);for(var et=M(p.store),it=0;et.length>it;)m(et[it++]);r(r.S+r.F*!j,"Symbol",{for:function(t){return n(z,t+="")?z[t]:z[t]=T(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),r(r.S+r.F*!j,"Object",{create:X,defineProperty:U,defineProperties:q,getOwnPropertyDescriptor:K,getOwnPropertyNames:J,getOwnPropertySymbols:$}),P&&r(r.S+r.F*(!j||d(function(){var t=T();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var e,i,o=[t],n=1;arguments.length>n;)o.push(arguments[n++]);return e=o[1],"function"==typeof e&&(i=e),!i&&g(e)||(e=function(t,e){if(i&&(e=i.call(this,t,e)),!V(e))return e}),o[1]=e,I.apply(P,o)}}}),T.prototype[R]||i(26)(T.prototype,R,T.prototype.valueOf),u(T,"Symbol"),u(Math,"Math",!0),u(o.JSON,"JSON",!0)},function(t,e,i){var o=i(40)("meta"),n=i(32),s=i(22),r=i(20).f,a=0,h=Object.isExtensible||function(){return!0},d=!i(28)(function(){return h(Object.preventExtensions({}))}),l=function(t){r(t,o,{value:{i:"O"+ ++a,w:{}}})},u=function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,o)){if(!h(t))return"F";if(!e)return"E";l(t)}return t[o].i},c=function(t,e){if(!s(t,o)){if(!h(t))return!0;if(!e)return!1;l(t)}return t[o].w},p=function(t){return d&&f.NEED&&h(t)&&!s(t,o)&&l(t),t},f=t.exports={KEY:o,NEED:!1,fastKey:u,getWeak:c,onFreeze:p}},function(t,e,i){var o=i(33),n=i(63),s=i(42);t.exports=function(t){var e=o(t),i=n.f;if(i)for(var r,a=i(t),h=s.f,d=0;a.length>d;)h.call(t,r=a[d++])&&e.push(r);return e}},function(t,e,i){var o=i(50);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,i){var o=i(25),n=i(88).f,s={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return n(t)}catch(t){return r.slice()}};t.exports.f=function(t){return r&&"[object Window]"==s.call(t)?a(t):n(o(t))}},function(t,e){},function(t,e,i){i(62)("asyncIterator")},function(t,e,i){i(62)("observable")},function(t,e,i){(function(t){!function(e,i){t.exports=i()}(0,function(){function e(){return Co.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function n(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function s(t){return void 0===t}function r(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var i,o=[];for(i=0;i0)for(i=0;i0?"future":"past"];return D(i)?i(e):i.replace(/%s/i,e)}function A(t,e){var i=t.toLowerCase();Lo[i]=Lo[i+"s"]=Lo[e]=t}function z(t){return"string"==typeof t?Lo[t]||Lo[t.toLowerCase()]:void 0}function L(t){var e,i,o={};for(i in t)d(t,i)&&(e=z(i))&&(o[e]=t[i]);return o}function F(t,e){Fo[t]=e}function B(t){var e=[];for(var i in t)e.push({unit:i,priority:Fo[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}function j(t,e,i){var o=""+Math.abs(t),n=e-o.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+o}function H(t,e,i,o){var n=o;"string"==typeof o&&(n=function(){return this[o]()}),t&&(Wo[t]=n),e&&(Wo[e[0]]=function(){return j(n.apply(this,arguments),e[1],e[2])}),i&&(Wo[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function W(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Y(t){var e,i,o=t.match(Bo);for(e=0,i=o.length;e=0&&jo.test(t);)t=t.replace(jo,i),jo.lastIndex=0,o-=1;return t}function U(t,e,i){an[t]=D(e)?e:function(t,o){return t&&i?i:e}}function q(t,e){return d(an,t)?an[t](e._strict,e._locale):new RegExp(X(t))}function X(t){return Z(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,o,n){return e||i||o||n}))}function Z(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(t,e){var i,o=e;for("string"==typeof t&&(t=[t]),r(e)&&(o=function(t,i){i[e]=_(t)}),i=0;i=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}function _t(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function wt(t,e,i){var o=7+e-i;return-(7+_t(t,0,o).getUTCDay()-e)%7+o-1}function xt(t,e,i,o,n){var s,r,a=(7+i-o)%7,h=wt(t,o,n),d=1+7*(e-1)+a+h;return d<=0?(s=t-1,r=Q(s)+d):d>Q(t)?(s=t+1,r=d-Q(t)):(s=t,r=d),{year:s,dayOfYear:r}}function kt(t,e,i){var o,n,s=wt(t.year(),e,i),r=Math.floor((t.dayOfYear()-s-1)/7)+1;return r<1?(n=t.year()-1,o=r+St(n,e,i)):r>St(t.year(),e,i)?(o=r-St(t.year(),e,i),n=t.year()+1):(n=t.year(),o=r),{week:o,year:n}}function St(t,e,i){var o=wt(t,e,i),n=wt(t+1,e,i);return(Q(t)-o+n)/7}function Dt(t){return kt(t,this._week.dow,this._week.doy).week}function Mt(){return this._week.dow}function Ct(){return this._week.doy}function Ot(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Et(t){var e=kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Tt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Pt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function It(t,e){return t?i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone}function Nt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Rt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function At(t,e,i){var o,n,s,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)s=u([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?(n=yn.call(this._weekdaysParse,r),-1!==n?n:null):"ddd"===e?(n=yn.call(this._shortWeekdaysParse,r),-1!==n?n:null):(n=yn.call(this._minWeekdaysParse,r),-1!==n?n:null):"dddd"===e?-1!==(n=yn.call(this._weekdaysParse,r))?n:-1!==(n=yn.call(this._shortWeekdaysParse,r))?n:(n=yn.call(this._minWeekdaysParse,r),-1!==n?n:null):"ddd"===e?-1!==(n=yn.call(this._shortWeekdaysParse,r))?n:-1!==(n=yn.call(this._weekdaysParse,r))?n:(n=yn.call(this._minWeekdaysParse,r),-1!==n?n:null):-1!==(n=yn.call(this._minWeekdaysParse,r))?n:-1!==(n=yn.call(this._weekdaysParse,r))?n:(n=yn.call(this._shortWeekdaysParse,r),-1!==n?n:null)}function zt(t,e,i){var o,n,s;if(this._weekdaysParseExact)return At.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(n=u([2e3,1]).day(o),i&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(n,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(n,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(n,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[o]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[o].test(t))return o;if(i&&"ddd"===e&&this._shortWeekdaysParse[o].test(t))return o;if(i&&"dd"===e&&this._minWeekdaysParse[o].test(t))return o;if(!i&&this._weekdaysParse[o].test(t))return o}}function Lt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Tt(t,this.localeData()),this.add(t-e,"d")):e}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Bt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function jt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=En),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ht(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tn),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pn),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Yt(){function t(t,e){return e.length-t.length}var e,i,o,n,s,r=[],a=[],h=[],d=[];for(e=0;e<7;e++)i=u([2e3,1]).day(e),o=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),s=this.weekdays(i,""),r.push(o),a.push(n),h.push(s),d.push(o),d.push(n),d.push(s);for(r.sort(t),a.sort(t),h.sort(t),d.sort(t),e=0;e<7;e++)a[e]=Z(a[e]),h[e]=Z(h[e]),d[e]=Z(d[e]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Gt(){return this.hours()%12||12}function Vt(){return this.hours()||24}function Ut(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function qt(t,e){return e._meridiemParse}function Xt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Zt(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}function Kt(t){return t?t.toLowerCase().replace("_","-"):t}function Jt(t){for(var e,i,o,n,s=0;s0;){if(o=$t(n.slice(0,e).join("-")))return o;if(i&&i.length>=e&&w(n,i,!0)>=e-1)break;e--}s++}return null}function $t(e){var i=null;if(!zn[e]&&void 0!==t&&t&&t.exports)try{i=In._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Qt(i)}catch(t){}return zn[e]}function Qt(t,e){var i;return t&&(i=s(e)?ie(t):te(t,e))&&(In=i),In._abbr}function te(t,e){if(null!==e){var i=An;if(e.abbr=t,null!=zn[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=zn[t]._config;else if(null!=e.parentLocale){if(null==zn[e.parentLocale])return Ln[e.parentLocale]||(Ln[e.parentLocale]=[]),Ln[e.parentLocale].push({name:t,config:e}),null;i=zn[e.parentLocale]._config}return zn[t]=new O(C(i,e)),Ln[t]&&Ln[t].forEach(function(t){te(t.name,t.config)}),Qt(t),zn[t]}return delete zn[t],null}function ee(t,e){if(null!=e){var i,o=An;null!=zn[t]&&(o=zn[t]._config),e=C(o,e),i=new O(e),i.parentLocale=zn[t],zn[t]=i,Qt(t)}else null!=zn[t]&&(null!=zn[t].parentLocale?zn[t]=zn[t].parentLocale:null!=zn[t]&&delete zn[t]);return zn[t]}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return In;if(!i(t)){if(e=$t(t))return e;t=[t]}return Jt(t)}function oe(){return Io(zn)}function ne(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[ln]<0||i[ln]>11?ln:i[un]<1||i[un]>ht(i[dn],i[ln])?un:i[cn]<0||i[cn]>24||24===i[cn]&&(0!==i[pn]||0!==i[fn]||0!==i[mn])?cn:i[pn]<0||i[pn]>59?pn:i[fn]<0||i[fn]>59?fn:i[mn]<0||i[mn]>999?mn:-1,p(t)._overflowDayOfYear&&(eun)&&(e=un),p(t)._overflowWeeks&&-1===e&&(e=vn),p(t)._overflowWeekday&&-1===e&&(e=gn),p(t).overflow=e),t}function se(t,e,i){return null!=t?t:null!=e?e:i}function re(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function ae(t){var e,i,o,n,s=[];if(!t._d){for(o=re(t),t._w&&null==t._a[un]&&null==t._a[ln]&&he(t),null!=t._dayOfYear&&(n=se(t._a[dn],o[dn]),(t._dayOfYear>Q(n)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=_t(n,0,t._dayOfYear),t._a[ln]=i.getUTCMonth(),t._a[un]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=o[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[cn]&&0===t._a[pn]&&0===t._a[fn]&&0===t._a[mn]&&(t._nextDay=!0,t._a[cn]=0),t._d=(t._useUTC?_t:bt).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[cn]=24),t._w&&void 0!==t._w.d&&t._w.d!==t._d.getDay()&&(p(t).weekdayMismatch=!0)}}function he(t){var e,i,o,n,s,r,a,h;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)s=1,r=4,i=se(e.GG,t._a[dn],kt(De(),1,4).year),o=se(e.W,1),((n=se(e.E,1))<1||n>7)&&(h=!0);else{s=t._locale._week.dow,r=t._locale._week.doy;var d=kt(De(),s,r);i=se(e.gg,t._a[dn],d.year),o=se(e.w,d.week),null!=e.d?((n=e.d)<0||n>6)&&(h=!0):null!=e.e?(n=e.e+s,(e.e<0||e.e>6)&&(h=!0)):n=s}o<1||o>St(i,s,r)?p(t)._overflowWeeks=!0:null!=h?p(t)._overflowWeekday=!0:(a=xt(i,o,n,s,r),t._a[dn]=a.year,t._dayOfYear=a.dayOfYear)}function de(t){var e,i,o,n,s,r,a=t._i,h=Fn.exec(a)||Bn.exec(a);if(h){for(p(t).iso=!0,e=0,i=Hn.length;e0&&p(t).unusedInput.push(r),a=a.slice(a.indexOf(o)+o.length),d+=o.length),Wo[s]?(o?p(t).empty=!1:p(t).unusedTokens.push(s),$(s,o,t)):t._strict&&!o&&p(t).unusedTokens.push(s);p(t).charsLeftOver=h-d,a.length>0&&p(t).unusedInput.push(a),t._a[cn]<=12&&!0===p(t).bigHour&&t._a[cn]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[cn]=ye(t._locale,t._a[cn],t._meridiem),ae(t),ne(t)}function ye(t,e,i){var o;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?(o=t.isPM(i),o&&e<12&&(e+=12),o||12!==e||(e=0),e):e}function be(t){var e,i,o,n,s;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(n=0;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ue(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),t=xe(t),t._a){var e=t._isUTC?u(t._a):De(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function qe(){return!!this.isValid()&&!this._isUTC}function Xe(){return!!this.isValid()&&this._isUTC}function Ze(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ke(t,e){var i,o,n,s=t,a=null;return Ne(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:r(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Jn.exec(t))?(i="-"===a[1]?-1:1,s={y:0,d:_(a[un])*i,h:_(a[cn])*i,m:_(a[pn])*i,s:_(a[fn])*i,ms:_(Re(1e3*a[mn]))*i}):(a=$n.exec(t))?(i="-"===a[1]?-1:(a[1],1),s={y:Je(a[2],i),M:Je(a[3],i),w:Je(a[4],i),d:Je(a[5],i),h:Je(a[6],i),m:Je(a[7],i),s:Je(a[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(n=Qe(De(s.from),De(s.to)),s={},s.ms=n.milliseconds,s.M=n.months),o=new Ie(s),Ne(t)&&d(t,"_locale")&&(o._locale=t._locale),o}function Je(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function $e(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Qe(t,e){var i;return t.isValid()&&e.isValid()?(e=Le(e,t),t.isBefore(e)?i=$e(t,e):(i=$e(e,t),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ti(t,e){return function(i,o){var n,s;return null===o||isNaN(+o)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=i,i=o,o=s),i="string"==typeof i?+i:i,n=Ke(i,o),ei(this,n,t),this}}function ei(t,i,o,n){var s=i._milliseconds,r=Re(i._days),a=Re(i._months);t.isValid()&&(n=null==n||n,a&&pt(t,ot(t,"Month")+a*o),r&&nt(t,"Date",ot(t,"Date")+r*o),s&&t._d.setTime(t._d.valueOf()+s*o),n&&e.updateOffset(t,r||a))}function ii(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function oi(t,i){var o=t||De(),n=Le(o,this).startOf("day"),s=e.calendarFormat(this,n)||"sameElse",r=i&&(D(i[s])?i[s].call(this,o):i[s]);return this.format(r||this.localeData().calendar(s,this,De(o)))}function ni(){return new g(this)}function si(t,e){var i=y(t)?t:De(t);return!(!this.isValid()||!i.isValid())&&(e=z(s(e)?"millisecond":e),"millisecond"===e?this.valueOf()>i.valueOf():i.valueOf()9999?G(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):D(Date.prototype.toISOString)?this.toDate().toISOString():G(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function mi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=e+'[")]';return this.format(i+o+"-MM-DD[T]HH:mm:ss.SSS"+n)}function vi(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=G(this,t);return this.localeData().postformat(i)}function gi(t,e){return this.isValid()&&(y(t)&&t.isValid()||De(t).isValid())?Ke({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function yi(t){return this.from(De(),t)}function bi(t,e){return this.isValid()&&(y(t)&&t.isValid()||De(t).isValid())?Ke({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function _i(t){return this.to(De(),t)}function wi(t){var e;return void 0===t?this._locale._abbr:(e=ie(t),null!=e&&(this._locale=e),this)}function xi(){return this._locale}function ki(t){switch(t=z(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function Si(t){return void 0===(t=z(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Di(){return this._d.valueOf()-6e4*(this._offset||0)}function Mi(){return Math.floor(this.valueOf()/1e3)}function Ci(){return new Date(this.valueOf())}function Oi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ei(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ti(){return this.isValid()?this.toISOString():null}function Pi(){return f(this)}function Ii(){return l({},p(this))}function Ni(){return p(this).overflow}function Ri(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ai(t,e){H(0,[t,t.length],0,e)}function zi(t){return ji.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Li(t){return ji.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Fi(){return St(this.year(),1,4)}function Bi(){var t=this.localeData()._week;return St(this.year(),t.dow,t.doy)}function ji(t,e,i,o,n){var s;return null==t?kt(this,o,n).year:(s=St(t,o,n),e>s&&(e=s),Hi.call(this,t,e,i,o,n))}function Hi(t,e,i,o,n){var s=xt(t,e,i,o,n),r=_t(s.year,0,s.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Wi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Yi(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Gi(t,e){e[mn]=_(1e3*("0."+t))}function Vi(){return this._isUTC?"UTC":""}function Ui(){return this._isUTC?"Coordinated Universal Time":""}function qi(t){return De(1e3*t)}function Xi(){return De.apply(null,arguments).parseZone()}function Zi(t){return t}function Ki(t,e,i,o){var n=ie(),s=u().set(o,e);return n[i](s,t)}function Ji(t,e,i){if(r(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ki(t,e,i,"month");var o,n=[];for(o=0;o<12;o++)n[o]=Ki(t,o,i,"month");return n}function $i(t,e,i,o){"boolean"==typeof t?(r(e)&&(i=e,e=void 0),e=e||""):(e=t,i=e,t=!1,r(e)&&(i=e,e=void 0),e=e||"");var n=ie(),s=t?n._week.dow:0;if(null!=i)return Ki(e,(i+s)%7,o,"day");var a,h=[];for(a=0;a<7;a++)h[a]=Ki(e,(a+s)%7,o,"day");return h}function Qi(t,e){return Ji(t,e,"months")}function to(t,e){return Ji(t,e,"monthsShort")}function eo(t,e,i){return $i(t,e,i,"weekdays")}function io(t,e,i){return $i(t,e,i,"weekdaysShort")}function oo(t,e,i){return $i(t,e,i,"weekdaysMin")}function no(){var t=this._data;return this._milliseconds=ds(this._milliseconds),this._days=ds(this._days),this._months=ds(this._months),t.milliseconds=ds(t.milliseconds),t.seconds=ds(t.seconds),t.minutes=ds(t.minutes),t.hours=ds(t.hours),t.months=ds(t.months),t.years=ds(t.years),this}function so(t,e,i,o){var n=Ke(e,i);return t._milliseconds+=o*n._milliseconds,t._days+=o*n._days,t._months+=o*n._months,t._bubble()}function ro(t,e){return so(this,t,e,1)}function ao(t,e){return so(this,t,e,-1)}function ho(t){return t<0?Math.floor(t):Math.ceil(t)}function lo(){var t,e,i,o,n,s=this._milliseconds,r=this._days,a=this._months,h=this._data;return s>=0&&r>=0&&a>=0||s<=0&&r<=0&&a<=0||(s+=864e5*ho(co(a)+r),r=0,a=0),h.milliseconds=s%1e3,t=b(s/1e3),h.seconds=t%60,e=b(t/60),h.minutes=e%60,i=b(e/60),h.hours=i%24,r+=b(i/24),n=b(uo(r)),a+=n, -r-=ho(co(n)),o=b(a/12),a%=12,h.days=r,h.months=a,h.years=o,this}function uo(t){return 4800*t/146097}function co(t){return 146097*t/4800}function po(t){if(!this.isValid())return NaN;var e,i,o=this._milliseconds;if("month"===(t=z(t))||"year"===t)return e=this._days+o/864e5,i=this._months+uo(e),"month"===t?i:i/12;switch(e=this._days+Math.round(co(this._months)),t){case"week":return e/7+o/6048e5;case"day":return e+o/864e5;case"hour":return 24*e+o/36e5;case"minute":return 1440*e+o/6e4;case"second":return 86400*e+o/1e3;case"millisecond":return Math.floor(864e5*e)+o;default:throw new Error("Unknown unit "+t)}}function fo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN}function mo(t){return function(){return this.as(t)}}function vo(){return Ke(this)}function go(t){return t=z(t),this.isValid()?this[t+"s"]():NaN}function yo(t){return function(){return this.isValid()?this._data[t]:NaN}}function bo(){return b(this.days()/7)}function _o(t,e,i,o,n){return n.relativeTime(e||1,!!i,t,o)}function wo(t,e,i){var o=Ke(t).abs(),n=Ds(o.as("s")),s=Ds(o.as("m")),r=Ds(o.as("h")),a=Ds(o.as("d")),h=Ds(o.as("M")),d=Ds(o.as("y")),l=n<=Ms.ss&&["s",n]||n0,l[4]=i,_o.apply(null,l)}function xo(t){return void 0===t?Ds:"function"==typeof t&&(Ds=t,!0)}function ko(t,e){return void 0!==Ms[t]&&(void 0===e?Ms[t]:(Ms[t]=e,"s"===t&&(Ms.ss=e-1),!0))}function So(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=wo(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)}function Do(t){return(t>0)-(t<0)||+t}function Mo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,o=Cs(this._milliseconds)/1e3,n=Cs(this._days),s=Cs(this._months);t=b(o/60),e=b(t/60),o%=60,t%=60,i=b(s/12),s%=12;var r=i,a=s,h=n,d=e,l=t,u=o?o.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var p=c<0?"-":"",f=Do(this._months)!==Do(c)?"-":"",m=Do(this._days)!==Do(c)?"-":"",v=Do(this._milliseconds)!==Do(c)?"-":"";return p+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(h?m+h+"D":"")+(d||l||u?"T":"")+(d?v+d+"H":"")+(l?v+l+"M":"")+(u?v+u+"S":"")}var Co,Oo;Oo=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,o=0;o68?1900:2e3)};var yn,bn=it("FullYear",!0);yn=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;ethis?this:t:m()}),Xn=function(){return Date.now?Date.now():+new Date},Zn=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ae("Z",":"),Ae("ZZ",""),U("Z",nn),U("ZZ",nn),K(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=ze(nn,t)});var Kn=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Jn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Ke.fn=Ie.prototype,Ke.invalid=Pe;var Qn=ti(1,"add"),ts=ti(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var es=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ai("gggg","weekYear"),Ai("ggggg","weekYear"),Ai("GGGG","isoWeekYear"),Ai("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),U("G",en),U("g",en),U("GG",Xo,Go),U("gg",Xo,Go),U("GGGG",$o,Uo),U("gggg",$o,Uo),U("GGGGG",Qo,qo),U("ggggg",Qo,qo),J(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,o){e[o.substr(0,2)]=_(t)}),J(["gg","GG"],function(t,i,o,n){i[n]=e.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),A("quarter","Q"),F("quarter",7),U("Q",Yo),K("Q",function(t,e){e[ln]=3*(_(t)-1)}),H("D",["DD",2],"Do","date"),A("date","D"),F("date",9),U("D",Xo),U("DD",Xo,Go),U("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),K(["D","DD"],un),K("Do",function(t,e){e[un]=_(t.match(Xo)[0],10)});var is=it("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),F("dayOfYear",4),U("DDD",Jo),U("DDDD",Vo),K(["DDD","DDDD"],function(t,e,i){i._dayOfYear=_(t)}),H("m",["mm",2],0,"minute"),A("minute","m"),F("minute",14),U("m",Xo),U("mm",Xo,Go),K(["m","mm"],pn);var os=it("Minutes",!1);H("s",["ss",2],0,"second"),A("second","s"),F("second",15),U("s",Xo),U("ss",Xo,Go),K(["s","ss"],fn);var ns=it("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),F("millisecond",16),U("S",Jo,Yo),U("SS",Jo,Go),U("SSS",Jo,Vo);var ss;for(ss="SSSS";ss.length<=9;ss+="S")U(ss,tn);for(ss="S";ss.length<=9;ss+="S")K(ss,Gi);var rs=it("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var as=g.prototype;as.add=Qn,as.calendar=oi,as.clone=ni,as.diff=ui,as.endOf=Si,as.format=vi,as.from=gi,as.fromNow=yi,as.to=bi,as.toNow=_i,as.get=st,as.invalidAt=Ni,as.isAfter=si,as.isBefore=ri,as.isBetween=ai,as.isSame=hi,as.isSameOrAfter=di,as.isSameOrBefore=li,as.isValid=Pi,as.lang=es,as.locale=wi,as.localeData=xi,as.max=qn,as.min=Un,as.parsingFlags=Ii,as.set=rt,as.startOf=ki,as.subtract=ts,as.toArray=Oi,as.toObject=Ei,as.toDate=Ci,as.toISOString=fi,as.inspect=mi,as.toJSON=Ti,as.toString=pi,as.unix=Mi,as.valueOf=Di,as.creationData=Ri,as.year=bn,as.isLeapYear=et,as.weekYear=zi,as.isoWeekYear=Li,as.quarter=as.quarters=Wi,as.month=ft,as.daysInMonth=mt,as.week=as.weeks=Ot,as.isoWeek=as.isoWeeks=Et,as.weeksInYear=Bi,as.isoWeeksInYear=Fi,as.date=is,as.day=as.days=Lt,as.weekday=Ft,as.isoWeekday=Bt,as.dayOfYear=Yi,as.hour=as.hours=Rn,as.minute=as.minutes=os,as.second=as.seconds=ns,as.millisecond=as.milliseconds=rs,as.utcOffset=Be,as.utc=He,as.local=We,as.parseZone=Ye,as.hasAlignedHourOffset=Ge,as.isDST=Ve,as.isLocal=qe,as.isUtcOffset=Xe,as.isUtc=Ze,as.isUTC=Ze,as.zoneAbbr=Vi,as.zoneName=Ui,as.dates=k("dates accessor is deprecated. Use date instead.",is),as.months=k("months accessor is deprecated. Use month instead",ft),as.years=k("years accessor is deprecated. Use year instead",bn),as.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",je),as.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ue);var hs=O.prototype;hs.calendar=E,hs.longDateFormat=T,hs.invalidDate=P,hs.ordinal=I,hs.preparse=Zi,hs.postformat=Zi,hs.relativeTime=N,hs.pastFuture=R,hs.set=M,hs.months=dt,hs.monthsShort=lt,hs.monthsParse=ct,hs.monthsRegex=gt,hs.monthsShortRegex=vt,hs.week=Dt,hs.firstDayOfYear=Ct,hs.firstDayOfWeek=Mt,hs.weekdays=It,hs.weekdaysMin=Rt,hs.weekdaysShort=Nt,hs.weekdaysParse=zt,hs.weekdaysRegex=jt,hs.weekdaysShortRegex=Ht,hs.weekdaysMinRegex=Wt,hs.isPM=Xt,hs.meridiem=Zt,Qt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===_(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",Qt),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",ie);var ds=Math.abs,ls=mo("ms"),us=mo("s"),cs=mo("m"),ps=mo("h"),fs=mo("d"),ms=mo("w"),vs=mo("M"),gs=mo("y"),ys=yo("milliseconds"),bs=yo("seconds"),_s=yo("minutes"),ws=yo("hours"),xs=yo("days"),ks=yo("months"),Ss=yo("years"),Ds=Math.round,Ms={ss:44,s:45,m:45,h:22,d:26,M:11},Cs=Math.abs,Os=Ie.prototype;return Os.isValid=Te,Os.abs=no,Os.add=ro,Os.subtract=ao,Os.as=po,Os.asMilliseconds=ls,Os.asSeconds=us,Os.asMinutes=cs,Os.asHours=ps,Os.asDays=fs,Os.asWeeks=ms,Os.asMonths=vs,Os.asYears=gs,Os.valueOf=fo,Os._bubble=lo,Os.clone=vo,Os.get=go,Os.milliseconds=ys,Os.seconds=bs,Os.minutes=_s,Os.hours=ws,Os.days=xs,Os.weeks=bo,Os.months=ks,Os.years=Ss,Os.humanize=So,Os.toISOString=Mo,Os.toString=Mo,Os.toJSON=Mo,Os.locale=wi,Os.localeData=xi,Os.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mo),Os.lang=es,H("X",0,0,"unix"),H("x",0,0,"valueOf"),U("x",en),U("X",sn),K("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),K("x",function(t,e,i){i._d=new Date(_(t))}),e.version="2.19.1",function(t){Co=t}(De),e.fn=as,e.min=Ce,e.max=Oe,e.now=Xn,e.utc=u,e.unix=qi,e.months=Qi,e.isDate=a,e.locale=Qt,e.invalid=m,e.duration=Ke,e.isMoment=y,e.weekdays=eo,e.parseZone=Xi,e.localeData=ie,e.isDuration=Ne,e.monthsShort=to,e.weekdaysMin=oo,e.defineLocale=te,e.updateLocale=ee,e.locales=oe,e.weekdaysShort=io,e.normalizeUnits=z,e.relativeTimeRounding=xo,e.relativeTimeThreshold=ko,e.calendarFormat=ii,e.prototype=as,e})}).call(e,i(155)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){function i(t){throw new Error("Cannot find module '"+t+"'.")}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id=156},function(t,e,i){(function(e){function i(t,e,i){var o=e&&i||0,n=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){n<16&&(e[o+n++]=u[t])});n<16;)e[o+n++]=0;return e}function o(t,e){var i=e||0,o=l;return o[t[i++]]+o[t[i++]]+o[t[i++]]+o[t[i++]]+"-"+o[t[i++]]+o[t[i++]]+"-"+o[t[i++]]+o[t[i++]]+"-"+o[t[i++]]+o[t[i++]]+"-"+o[t[i++]]+o[t[i++]]+o[t[i++]]+o[t[i++]]+o[t[i++]]+o[t[i++]]}function n(t,e,i){var n=e&&i||0,s=e||[];t=t||{};var r=void 0!==t.clockseq?t.clockseq:m,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),h=void 0!==t.nsecs?t.nsecs:g+1,d=a-v+(h-g)/1e4;if(d<0&&void 0===t.clockseq&&(r=r+1&16383),(d<0||a>v)&&void 0===t.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=a,g=h,m=r,a+=122192928e5;var l=(1e4*(268435455&a)+h)%4294967296;s[n++]=l>>>24&255,s[n++]=l>>>16&255,s[n++]=l>>>8&255,s[n++]=255&l;var u=a/4294967296*1e4&268435455;s[n++]=u>>>8&255,s[n++]=255&u,s[n++]=u>>>24&15|16,s[n++]=u>>>16&255,s[n++]=r>>>8|128,s[n++]=255&r;for(var c=t.node||f,p=0;p<6;p++)s[n+p]=c[p];return e||o(s)}function s(t,e,i){var n=e&&i||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),t=t||{};var s=t.random||(t.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;a++)e[n+a]=s[a];return e||o(s)}var r,a="undefined"!=typeof window?window:void 0!==e?e:null;if(a&&a.crypto&&crypto.getRandomValues){var h=new Uint8Array(16);r=function(){return crypto.getRandomValues(h),h}}if(!r){var d=new Array(16);r=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),d[e]=t>>>((3&e)<<3)&255;return d}}for(var l=[],u={},c=0;c<256;c++)l[c]=(c+256).toString(16).substr(1),u[l[c]]=c;var p=r(),f=[1|p[0],p[1],p[2],p[3],p[4],p[5]],m=16383&(p[6]<<8|p[7]),v=0,g=0,y=s;y.v1=n,y.v4=s,y.parse=i,y.unparse=o,t.exports=y}).call(e,i(158))},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){e.util=i(2),e.DOMutil=i(14),e.DataSet=i(11),e.DataView=i(12),e.Queue=i(43),e.Graph3d=i(161),e.graph3d={Camera:i(95),Filter:i(96),Point2d:i(91),Point3d:i(34),Slider:i(92),StepNumber:i(93)},e.moment=i(9),e.Hammer=i(10),e.keycharm=i(35)},function(t,e,i){var o=i(7),n=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}},function(t,e,i){function o(t,e,i){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");this.containerElement=t,this.dataGroup=new _,this.dataPoints=null,this.create(),f.setDefaults(o.DEFAULTS,this),this.colX=void 0,this.colY=void 0,this.colZ=void 0,this.colValue=void 0,this.setOptions(i),this.setData(e)}function n(t){return"clientX"in t?t.clientX:t.targetTouches[0]&&t.targetTouches[0].clientX||0}function s(t){return"clientY"in t?t.clientY:t.targetTouches[0]&&t.targetTouches[0].clientY||0}var r=i(90),a=function(t){return t&&t.__esModule?t:{default:t}}(r),h=i(44),d=i(2),l=i(34),u=i(91),c=i(92),p=i(93),f=i(94),m=i(15).default,v=i(15),g=v.printStyle,y=i(172),b=y.allOptions,_=i(173);o.STYLE=f.STYLE;o.DEFAULTS={width:"400px",height:"400px",filterLabel:"time",legendLabel:"value",xLabel:"x",yLabel:"y",zLabel:"z",xValueLabel:function(t){return t},yValueLabel:function(t){return t},zValueLabel:function(t){return t},showXAxis:!0,showYAxis:!0,showZAxis:!0,showGrid:!0,showPerspective:!0,showShadow:!1,keepAspectRatio:!0,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:void 0,animationInterval:1e3,animationPreload:!1,animationAutoStart:void 0,axisColor:"#4D4D4D",gridColor:"#D3D3D3",xCenter:"55%",yCenter:"50%",style:o.STYLE.DOT,tooltip:!1,tooltipStyle:{content:{padding:"10px",border:"1px solid #4d4d4d",color:"#1a1a1a",background:"rgba(255,255,255,0.7)",borderRadius:"2px",boxShadow:"5px 5px 10px rgba(128,128,128,0.5)"},line:{height:"40px",width:"0",borderLeft:"1px solid #4d4d4d"},dot:{height:"0",width:"0",border:"5px solid #4d4d4d",borderRadius:"5px"}},dataColor:{fill:"#7DC1FF",stroke:"#3267D2",strokeWidth:1},cameraPosition:{horizontal:1,vertical:.5,distance:1.7},showLegend:void 0,backgroundColor:void 0,xBarWidth:void 0,yBarWidth:void 0,valueMin:void 0,valueMax:void 0,xMin:void 0,xMax:void 0,xStep:void 0,yMin:void 0,yMax:void 0,yStep:void 0,zMin:void 0,zMax:void 0,zStep:void 0},h(o.prototype),o.prototype._setScale=function(){this.scale=new l(1/this.xRange.range(),1/this.yRange.range(),1/this.zRange.range()),this.keepAspectRatio&&(this.scale.x0&&(r[n-1].pointNext=r[n]);return r},o.prototype.create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);this.frame=document.createElement("div"),this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas);var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t),this.frame.filter=document.createElement("div"),this.frame.filter.style.position="absolute",this.frame.filter.style.bottom="0px",this.frame.filter.style.left="0px",this.frame.filter.style.width="100%",this.frame.appendChild(this.frame.filter);var e=this,i=function(t){e._onMouseDown(t)},o=function(t){e._onTouchStart(t)},n=function(t){e._onWheel(t)},s=function(t){e._onTooltip(t)},r=function(t){e._onClick(t)};d.addEventListener(this.frame.canvas,"mousedown",i),d.addEventListener(this.frame.canvas,"touchstart",o),d.addEventListener(this.frame.canvas,"mousewheel",n),d.addEventListener(this.frame.canvas,"mousemove",s),d.addEventListener(this.frame.canvas,"click",r),this.containerElement.appendChild(this.frame)},o.prototype._setSize=function(t,e){this.frame.style.width=t,this.frame.style.height=e,this._resizeCanvas()},o.prototype._resizeCanvas=function(){this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,this.frame.filter.style.width=this.frame.canvas.clientWidth-20+"px"},o.prototype.animationStart=function(){if(this.animationAutoStart&&this.dataGroup.dataFilter){if(!this.frame.filter||!this.frame.filter.slider)throw new Error("No animation available");this.frame.filter.slider.play()}},o.prototype.animationStop=function(){this.frame.filter&&this.frame.filter.slider&&this.frame.filter.slider.stop()},o.prototype._resizeCenter=function(){"%"===this.xCenter.charAt(this.xCenter.length-1)?this.currentXCenter=parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth:this.currentXCenter=parseFloat(this.xCenter),"%"===this.yCenter.charAt(this.yCenter.length-1)?this.currentYCenter=parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight):this.currentYCenter=parseFloat(this.yCenter)},o.prototype.getCameraPosition=function(){var t=this.camera.getArmRotation();return t.distance=this.camera.getArmLength(),t},o.prototype._readData=function(t){this.dataPoints=this.dataGroup.initializeData(this,t,this.style),this._initializeRanges(),this._redrawFilter()},o.prototype.setData=function(t){void 0!==t&&null!==t&&(this._readData(t),this.redraw(),this.animationStart())},o.prototype.setOptions=function(t){if(void 0!==t){!0===m.validate(t,b)&&console.log("%cErrors have been found in the supplied options object.",g),this.animationStop(),f.setOptions(t,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.setData(this.dataGroup.getDataTable()),this.animationStart()}},o.prototype.setPointDrawingMethod=function(){var t=void 0;switch(this.style){case o.STYLE.BAR:t=o.prototype._redrawBarGraphPoint;break;case o.STYLE.BARCOLOR:t=o.prototype._redrawBarColorGraphPoint;break;case o.STYLE.BARSIZE:t=o.prototype._redrawBarSizeGraphPoint;break;case o.STYLE.DOT:t=o.prototype._redrawDotGraphPoint;break;case o.STYLE.DOTLINE:t=o.prototype._redrawDotLineGraphPoint;break;case o.STYLE.DOTCOLOR:t=o.prototype._redrawDotColorGraphPoint;break;case o.STYLE.DOTSIZE:t=o.prototype._redrawDotSizeGraphPoint;break;case o.STYLE.SURFACE:t=o.prototype._redrawSurfaceGraphPoint;break;case o.STYLE.GRID:t=o.prototype._redrawGridGraphPoint;break;case o.STYLE.LINE:t=o.prototype._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=t},o.prototype.redraw=function(){if(void 0===this.dataPoints)throw new Error("Graph data not initialized");this._resizeCanvas(),this._resizeCenter(),this._redrawSlider(),this._redrawClear(),this._redrawAxis(),this._redrawDataGraph(),this._redrawInfo(),this._redrawLegend()},o.prototype._getContext=function(){var t=this.frame.canvas,e=t.getContext("2d");return e.lineJoin="round",e.lineCap="round",e},o.prototype._redrawClear=function(){var t=this.frame.canvas;t.getContext("2d").clearRect(0,0,t.width,t.height)},o.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},o.prototype._getLegendWidth=function(){var t;if(this.style===o.STYLE.DOTSIZE){t=this._dotSize()*this.dotSizeMaxFraction}else t=this.style===o.STYLE.BARSIZE?this.xBarWidth:20;return t},o.prototype._redrawLegend=function(){if(!0===this.showLegend&&this.style!==o.STYLE.LINE&&this.style!==o.STYLE.BARSIZE){var t=this.style===o.STYLE.BARSIZE||this.style===o.STYLE.DOTSIZE,e=this.style===o.STYLE.DOTSIZE||this.style===o.STYLE.DOTCOLOR||this.style===o.STYLE.BARCOLOR,i=Math.max(.25*this.frame.clientHeight,100),n=this.margin,s=this._getLegendWidth(),r=this.frame.clientWidth-this.margin,a=r-s,h=n+i,d=this._getContext();if(d.lineWidth=1,d.font="14px arial",!1===t){var l,c=i;for(l=0;l0?(t.textAlign="center",t.textBaseline="top",s.y+=n):Math.sin(2*o)<0?(t.textAlign="right",t.textBaseline="middle"):(t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(i,s.x,s.y)},o.prototype.drawAxisLabelY=function(t,e,i,o,n){void 0===n&&(n=0);var s=this._convert3Dto2D(e);Math.cos(2*o)<0?(t.textAlign="center",t.textBaseline="top",s.y+=n):Math.sin(2*o)>0?(t.textAlign="right",t.textBaseline="middle"):(t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(i,s.x,s.y)},o.prototype.drawAxisLabelZ=function(t,e,i,o){void 0===o&&(o=0);var n=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(i,n.x-o,n.y)},o.prototype._line3d=function(t,e,i,o){var n=this._convert3Dto2D(e),s=this._convert3Dto2D(i);this._line(t,n,s,o)},o.prototype._redrawAxis=function(){var t,e,i,o,n,s,r,a,h,d,c,f=this._getContext();f.font=24/this.camera.getArmLength()+"px arial";var m,v=.025/this.scale.x,g=.025/this.scale.y,y=5/this.camera.getArmLength(),b=this.camera.getArmRotation().horizontal,_=new u(Math.cos(b),Math.sin(b)),w=this.xRange,x=this.yRange,k=this.zRange;for(f.lineWidth=1,o=void 0===this.defaultXStep,i=new p(w.min,w.max,this.xStep,o),i.start(!0);!i.end();){var S=i.getCurrent();if(this.showGrid?(t=new l(S,x.min,k.min),e=new l(S,x.max,k.min),this._line3d(f,t,e,this.gridColor)):this.showXAxis&&(t=new l(S,x.min,k.min),e=new l(S,x.min+v,k.min),this._line3d(f,t,e,this.axisColor),t=new l(S,x.max,k.min),e=new l(S,x.max-v,k.min),this._line3d(f,t,e,this.axisColor)),this.showXAxis){r=_.x>0?x.min:x.max,m=new l(S,r,k.min);var D=" "+this.xValueLabel(S)+" ";this.drawAxisLabelX(f,m,D,b,y)}i.next()}for(f.lineWidth=1,o=void 0===this.defaultYStep,i=new p(x.min,x.max,this.yStep,o),i.start(!0);!i.end();){var M=i.getCurrent();if(this.showGrid?(t=new l(w.min,M,k.min),e=new l(w.max,M,k.min),this._line3d(f,t,e,this.gridColor)):this.showYAxis&&(t=new l(w.min,M,k.min),e=new l(w.min+g,M,k.min),this._line3d(f,t,e,this.axisColor),t=new l(w.max,M,k.min),e=new l(w.max-g,M,k.min),this._line3d(f,t,e,this.axisColor)),this.showYAxis){s=_.y>0?w.min:w.max,m=new l(s,M,k.min);var C=" "+this.yValueLabel(M)+" ";this.drawAxisLabelY(f,m,C,b,y)}i.next()}if(this.showZAxis){for(f.lineWidth=1,o=void 0===this.defaultZStep,i=new p(k.min,k.max,this.zStep,o),i.start(!0),s=_.x>0?w.min:w.max,r=_.y<0?x.min:x.max;!i.end();){var O=i.getCurrent(),E=new l(s,r,O),T=this._convert3Dto2D(E);e=new u(T.x-y,T.y),this._line(f,T,e,this.axisColor);var P=this.zValueLabel(O)+" ";this.drawAxisLabelZ(f,E,P,5),i.next()}f.lineWidth=1,t=new l(s,r,k.min),e=new l(s,r,k.max),this._line3d(f,t,e,this.axisColor)}if(this.showXAxis){var I,N;f.lineWidth=1,I=new l(w.min,x.min,k.min),N=new l(w.max,x.min,k.min),this._line3d(f,I,N,this.axisColor),I=new l(w.min,x.max,k.min),N=new l(w.max,x.max,k.min),this._line3d(f,I,N,this.axisColor)}this.showYAxis&&(f.lineWidth=1,t=new l(w.min,x.min,k.min),e=new l(w.min,x.max,k.min),this._line3d(f,t,e,this.axisColor),t=new l(w.max,x.min,k.min),e=new l(w.max,x.max,k.min),this._line3d(f,t,e,this.axisColor));var R=this.xLabel;R.length>0&&this.showXAxis&&(c=.1/this.scale.y,s=(w.max+3*w.min)/4,r=_.x>0?x.min-c:x.max+c,n=new l(s,r,k.min),this.drawAxisLabelX(f,n,R,b));var A=this.yLabel;A.length>0&&this.showYAxis&&(d=.1/this.scale.x,s=_.y>0?w.min-d:w.max+d,r=(x.max+3*x.min)/4,n=new l(s,r,k.min),this.drawAxisLabelY(f,n,A,b));var z=this.zLabel;z.length>0&&this.showZAxis&&(h=30,s=_.x>0?w.min:w.max,r=_.y<0?x.min:x.max,a=(k.max+3*k.min)/4,n=new l(s,r,a),this.drawAxisLabelZ(f,n,z,h))},o.prototype._hsv2rgb=function(t,e,i){var o,n,s,r,a,h;switch(r=i*e,a=Math.floor(t/60),h=r*(1-Math.abs(t/60%2-1)),a){case 0:o=r,n=h,s=0;break;case 1:o=h,n=r,s=0;break;case 2:o=0,n=r,s=h;break;case 3:o=0,n=h,s=r;break;case 4:o=h,n=0,s=r;break;case 5:o=r,n=0,s=h;break;default:o=0,n=0,s=0}return"RGB("+parseInt(255*o)+","+parseInt(255*n)+","+parseInt(255*s)+")"},o.prototype._getStrokeWidth=function(t){return void 0!==t?this.showPerspective?1/-t.trans.z*this.dataColor.strokeWidth:-this.eye.z/this.camera.getArmLength()*this.dataColor.strokeWidth:this.dataColor.strokeWidth},o.prototype._redrawBar=function(t,e,i,o,n,s){var r,a=this,h=e.point,d=this.zRange.min,u=[{point:new l(h.x-i,h.y-o,h.z)},{point:new l(h.x+i,h.y-o,h.z)},{point:new l(h.x+i,h.y+o,h.z)},{point:new l(h.x-i,h.y+o,h.z)}],c=[{point:new l(h.x-i,h.y-o,d)},{point:new l(h.x+i,h.y-o,d)},{point:new l(h.x+i,h.y+o,d)},{point:new l(h.x-i,h.y+o,d)}];u.forEach(function(t){t.screen=a._convert3Dto2D(t.point)}),c.forEach(function(t){t.screen=a._convert3Dto2D(t.point)});var p=[{corners:u,center:l.avg(c[0].point,c[2].point)},{corners:[u[0],u[1],c[1],c[0]],center:l.avg(c[1].point,c[0].point)},{corners:[u[1],u[2],c[2],c[1]],center:l.avg(c[2].point,c[1].point)},{corners:[u[2],u[3],c[3],c[2]],center:l.avg(c[3].point,c[2].point)},{corners:[u[3],u[0],c[0],c[3]],center:l.avg(c[0].point,c[3].point)}];e.surfaces=p;for(var f=0;f0}if(a){var p,f=(e.point.z+i.point.z+o.point.z+n.point.z)/4,m=240*(1-(f-this.zRange.min)*this.scale.z/this.verticalRatio);this.showShadow?(p=Math.min(1+u.x/c/2,1),s=this._hsv2rgb(m,1,p),r=s):(p=1,s=this._hsv2rgb(m,1,p),r=this.axisColor)}else s="gray",r=this.axisColor;t.lineWidth=this._getStrokeWidth(e);var v=[e,i,n,o];this._polygon(t,v,s,r)}},o.prototype._drawGridLine=function(t,e,i){if(void 0!==e&&void 0!==i){var o=(e.point.z+i.point.z)/2,n=240*(1-(o-this.zRange.min)*this.scale.z/this.verticalRatio);t.lineWidth=2*this._getStrokeWidth(e),t.strokeStyle=this._hsv2rgb(n,1,1),this._line(t,e.screen,i.screen)}},o.prototype._redrawGridGraphPoint=function(t,e){this._drawGridLine(t,e,e.pointRight),this._drawGridLine(t,e,e.pointTop)},o.prototype._redrawLineGraphPoint=function(t,e){void 0!==e.pointNext&&(t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=this.dataColor.stroke,this._line(t,e.screen,e.pointNext.screen))},o.prototype._redrawDataGraph=function(){var t,e=this._getContext();if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),t=0;t0?1:t<0?-1:0}var o=e[0],n=e[1],s=e[2],r=i((n.x-o.x)*(t.y-o.y)-(n.y-o.y)*(t.x-o.x)),a=i((s.x-n.x)*(t.y-n.y)-(s.y-n.y)*(t.x-n.x)),h=i((o.x-s.x)*(t.y-s.y)-(o.y-s.y)*(t.x-s.x));return!(0!=r&&0!=a&&r!=a||0!=a&&0!=h&&a!=h||0!=r&&0!=h&&r!=h)},o.prototype._dataPointFromXY=function(t,e){var i,n=null,s=null,r=null,a=new u(t,e);if(this.style===o.STYLE.BAR||this.style===o.STYLE.BARCOLOR||this.style===o.STYLE.BARSIZE)for(i=this.dataPoints.length-1;i>=0;i--){n=this.dataPoints[i];var h=n.surfaces;if(h)for(var d=h.length-1;d>=0;d--){var l=h[d],c=l.corners,p=[c[0].screen,c[1].screen,c[2].screen],f=[c[2].screen,c[3].screen,c[0].screen];if(this._insideTriangle(a,p)||this._insideTriangle(a,f))return n}}else for(i=0;i"+this.xLabel+":"+t.point.x+""+this.yLabel+":"+t.point.y+""+this.zLabel+":"+t.point.z+"",e.style.left="0",e.style.top="0",this.frame.appendChild(e),this.frame.appendChild(i),this.frame.appendChild(o);var n=e.offsetWidth,s=e.offsetHeight,r=i.offsetHeight,h=o.offsetWidth,d=o.offsetHeight,l=t.screen.x-n/2;l=Math.min(Math.max(l,10),this.frame.clientWidth-10-n),i.style.left=t.screen.x+"px",i.style.top=t.screen.y-r+"px",e.style.left=l+"px",e.style.top=t.screen.y-r-s+"px",o.style.left=t.screen.x-h/2+"px",o.style.top=t.screen.y-d/2+"px"},o.prototype._hideTooltip=function(){if(this.tooltip){this.tooltip.dataPoint=null;for(var t in this.tooltip.dom)if(this.tooltip.dom.hasOwnProperty(t)){var e=this.tooltip.dom[t];e&&e.parentNode&&e.parentNode.removeChild(e)}}},o.prototype.setCameraPosition=function(t){f.setCameraPosition(t,this),this.redraw()},o.prototype.setSize=function(t,e){this._setSize(t,e),this.redraw()},t.exports=o},function(t,e,i){i(163),t.exports=i(7).Object.assign},function(t,e,i){var o=i(17);o(o.S+o.F,"Object",{assign:i(164)})},function(t,e,i){var o=i(33),n=i(63),s=i(42),r=i(41),a=i(78),h=Object.assign;t.exports=!h||i(28)(function(){var t={},e={},i=Symbol(),o="abcdefghijklmnopqrst";return t[i]=7,o.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||Object.keys(h({},e)).join("")!=o})?function(t,e){for(var i=r(t),h=arguments.length,d=1,l=n.f,u=s.f;h>d;)for(var c,p=a(arguments[d++]),f=l?o(p).concat(l(p)):o(p),m=f.length,v=0;m>v;)u.call(p,c=f[v++])&&(i[c]=p[c]);return i}:h},function(t,e,i){t.exports={default:i(166),__esModule:!0}},function(t,e,i){i(167),t.exports=i(7).Math.sign},function(t,e,i){var o=i(17);o(o.S,"Math",{sign:i(168)})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,i){t.exports={default:i(170),__esModule:!0}},function(t,e,i){i(171);var o=i(7).Object;t.exports=function(t,e,i){return o.defineProperty(t,e,i)}},function(t,e,i){var o=i(17);o(o.S+o.F*!i(21),"Object",{defineProperty:i(20).f})},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var o="string",n="boolean",s="number",r={fill:{string:o},stroke:{string:o},strokeWidth:{number:s},__type__:{string:o,object:"object",undefined:"undefined"}},a={animationAutoStart:{boolean:n,undefined:"undefined"},animationInterval:{number:s},animationPreload:{boolean:n},axisColor:{string:o},backgroundColor:r,xBarWidth:{number:s,undefined:"undefined"},yBarWidth:{number:s,undefined:"undefined"},cameraPosition:{distance:{number:s},horizontal:{number:s},vertical:{number:s},__type__:{object:"object"}},xCenter:{string:o},yCenter:{string:o},dataColor:r,dotSizeMinFraction:{number:s},dotSizeMaxFraction:{number:s},dotSizeRatio:{number:s},filterLabel:{string:o},gridColor:{string:o},onclick:{function:"function"},keepAspectRatio:{boolean:n},xLabel:{string:o},yLabel:{string:o},zLabel:{string:o},legendLabel:{string:o},xMin:{number:s,undefined:"undefined"},yMin:{number:s,undefined:"undefined"},zMin:{number:s,undefined:"undefined"},xMax:{number:s,undefined:"undefined"},yMax:{number:s,undefined:"undefined"},zMax:{number:s,undefined:"undefined"},showAnimationControls:{boolean:n,undefined:"undefined"},showGrid:{boolean:n},showLegend:{boolean:n,undefined:"undefined"},showPerspective:{boolean:n},showShadow:{boolean:n},showXAxis:{boolean:n},showYAxis:{boolean:n},showZAxis:{boolean:n},xStep:{number:s,undefined:"undefined"},yStep:{number:s,undefined:"undefined"},zStep:{number:s,undefined:"undefined"},style:{number:s,string:["bar","bar-color","bar-size","dot","dot-line","dot-color","dot-size","line","grid","surface"]},tooltip:{boolean:n,function:"function"},tooltipStyle:{content:{color:{string:o},background:{string:o},border:{string:o},borderRadius:{string:o},boxShadow:{string:o},padding:{string:o},__type__:{object:"object"}},line:{borderLeft:{string:o},height:{string:o},width:{string:o},__type__:{object:"object"}},dot:{border:{string:o},borderRadius:{string:o},height:{string:o},width:{string:o},__type__:{object:"object"}},__type__:{object:"object"}},xValueLabel:{function:"function"},yValueLabel:{function:"function"},zValueLabel:{function:"function"},valueMax:{number:s,undefined:"undefined"},valueMin:{number:s,undefined:"undefined"},verticalRatio:{number:s},height:{string:o},width:{string:o},__type__:{object:"object"}};e.allOptions=a},function(t,e,i){function o(){this.dataTable=null}var n=i(11),s=i(12),r=i(174),a=i(96),h=i(94),d=i(34);o.prototype.initializeData=function(t,e,i){if(void 0!==e){Array.isArray(e)&&(e=new n(e));var o;if(!(e instanceof n||e instanceof s))throw new Error("Array, DataSet, or DataView expected");if(o=e.get(),0!=o.length){this.style=i,this.dataSet&&this.dataSet.off("*",this._onChange),this.dataSet=e,this.dataTable=o;var r=this;this._onChange=function(){t.setData(r.dataSet)},this.dataSet.on("*",this._onChange),this.colX="x",this.colY="y",this.colZ="z";var h=t.hasBars(i);if(h&&(void 0!==t.defaultXBarWidth?this.xBarWidth=t.defaultXBarWidth:this.xBarWidth=this.getSmallestDifference(o,this.colX)||1,void 0!==t.defaultYBarWidth?this.yBarWidth=t.defaultYBarWidth:this.yBarWidth=this.getSmallestDifference(o,this.colY)||1),this._initializeRange(o,this.colX,t,h),this._initializeRange(o,this.colY,t,h),this._initializeRange(o,this.colZ,t,!1),o[0].hasOwnProperty("style")){this.colValue="style";var d=this.getColumnRange(o,this.colValue);this._setRangeDefaults(d,t.defaultValueMin,t.defaultValueMax),this.valueRange=d}this.getDataTable()[0].hasOwnProperty("filter")&&void 0===this.dataFilter&&(this.dataFilter=new a(this,"filter",t),this.dataFilter.setOnLoadCallback(function(){t.redraw()}));return this.dataFilter?this.dataFilter._getDataPoints():this._getDataPoints(this.getDataTable())}}},o.prototype._collectRangeSettings=function(t,e){if(-1==["x","y","z"].indexOf(t))throw new Error("Column '"+t+"' invalid");var i=t.toUpperCase();return{barWidth:this[t+"BarWidth"],min:e["default"+i+"Min"],max:e["default"+i+"Max"],step:e["default"+i+"Step"],range_label:t+"Range",step_label:t+"Step"}},o.prototype._initializeRange=function(t,e,i,o){var n=this._collectRangeSettings(e,i),s=this.getColumnRange(t,e);o&&"z"!=e&&s.expand(n.barWidth/2),this._setRangeDefaults(s,n.min,n.max),this[n.range_label]=s,this[n.step_label]=void 0!==n.step?n.step:s.range()/5},o.prototype.getDistinctValues=function(t,e){void 0===e&&(e=this.dataTable);for(var i=[],o=0;os)&&(o=s)}return o},o.prototype.getColumnRange=function(t,e){for(var i=new r,o=0;o0&&(e[i-1].pointNext=e[i]);return e},o.prototype._checkValueField=function(t){if(this.style===h.STYLE.BARCOLOR||this.style===h.STYLE.BARSIZE||this.style===h.STYLE.DOTCOLOR||this.style===h.STYLE.DOTSIZE){if(void 0===this.colValue)throw new Error("Expected data to have field 'style' for graph style '"+this.style+"'");if(void 0===t[0][this.colValue])throw new Error("Expected data to have field '"+this.colValue+"' for graph style '"+this.style+"'")}},t.exports=o},function(t,e,i){function o(){this.min=void 0,this.max=void 0}o.prototype.adjust=function(t){void 0!==t&&((void 0===this.min||this.min>t)&&(this.min=t),(void 0===this.max||this.maxi)throw new Error("Passed expansion value makes range invalid");this.min=e,this.max=i}},o.prototype.range=function(){return this.max-this.min},o.prototype.center=function(){return(this.min+this.max)/2},t.exports=o},function(t,e,i){var o,n,s;!function(i){n=[],o=i,void 0!==(s="function"==typeof o?o.apply(e,n):o)&&(t.exports=s)}(function(){var t=null;return function e(i,o){function n(t){return t.match(/[^ ]+/g)}function s(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var i=!1;e.stopPropagation=function(){i=!0};var o=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof o&&(e.srcEvent.stopPropagation=function(){o(),e.stopPropagation()}),e.firstTarget=t;for(var n=t;n&&!i;){var s=n.hammer;if(s)for(var r,a=0;a0?d._handlers[t]=o:(i.off(t,s),delete d._handlers[t]))}),d},d.emit=function(e,o){t=o.target,i.emit(e,o)},d.destroy=function(){var t=i.element.hammer,e=t.indexOf(d);-1!==e&&t.splice(e,1),t.length||delete i.element.hammer,d._handlers={},i.destroy()},d}})},function(t,e,i){var o;!function(n,s,r,a){function h(t,e,i){return setTimeout(p(t,i),e)}function d(t,e,i){return!!Array.isArray(t)&&(l(t,i[e],i),!0)}function l(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=n.console&&(n.console.warn||n.console.log);return s&&s.call(n.console,o,i),t.apply(this,arguments)}}function c(t,e,i){var o,n=e.prototype;o=t.prototype=Object.create(n),o.constructor=t,o._super=n,i&&ft(o,i)}function p(t,e){return function(){return t.apply(e,arguments)}}function f(t,e){return typeof t==gt?t.apply(e?e[0]||a:a,e):t}function m(t,e){return t===a?e:t}function v(t,e,i){l(_(e),function(e){t.addEventListener(e,i,!1)})}function g(t,e,i){l(_(e),function(e){t.removeEventListener(e,i,!1)})}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\s+/g)}function w(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var o=0;oi[e]}):o.sort()),o}function S(t,e){for(var i,o,n=e[0].toUpperCase()+e.slice(1),s=0;s1&&!i.firstMultiple?i.firstMultiple=N(e):1===n&&(i.firstMultiple=!1);var s=i.firstInput,r=i.firstMultiple,a=r?r.center:s.center,h=e.center=R(o);e.timeStamp=_t(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=F(a,h),e.distance=L(a,h),P(i,e),e.offsetDirection=z(e.deltaX,e.deltaY);var d=A(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=bt(d.x)>bt(d.y)?d.x:d.y,e.scale=r?j(r.pointers,o):1,e.rotation=r?B(r.pointers,o):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,I(i,e);var l=t.element;y(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}function P(t,e){var i=e.center,o=t.offsetDelta||{},n=t.prevDelta||{},s=t.prevInput||{};e.eventType!==Et&&s.eventType!==Pt||(n=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},o=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=n.x+(i.x-o.x),e.deltaY=n.y+(i.y-o.y)}function I(t,e){var i,o,n,s,r=t.lastInterval||e,h=e.timeStamp-r.timeStamp;if(e.eventType!=It&&(h>Ot||r.velocity===a)){var d=e.deltaX-r.deltaX,l=e.deltaY-r.deltaY,u=A(h,d,l);o=u.x,n=u.y,i=bt(u.x)>bt(u.y)?u.x:u.y,s=z(d,l),t.lastInterval=e}else i=r.velocity,o=r.velocityX,n=r.velocityY,s=r.direction;e.velocity=i,e.velocityX=o,e.velocityY=n,e.direction=s}function N(t){for(var e=[],i=0;i=bt(e)?t<0?Rt:At:e<0?zt:Lt}function L(t,e,i){i||(i=Ht);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return Math.sqrt(o*o+n*n)}function F(t,e,i){i||(i=Ht);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return 180*Math.atan2(n,o)/Math.PI}function B(t,e){return F(e[1],e[0],Wt)+F(t[1],t[0],Wt)}function j(t,e){return L(e[0],e[1],Wt)/L(t[0],t[1],Wt)}function H(){this.evEl=Gt,this.evWin=Vt,this.pressed=!1,C.apply(this,arguments)}function W(){this.evEl=Xt,this.evWin=Zt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Y(){this.evTarget=Jt,this.evWin=$t,this.started=!1,C.apply(this,arguments)}function G(t,e){var i=x(t.touches),o=x(t.changedTouches);return e&(Pt|It)&&(i=k(i.concat(o),"identifier",!0)),[i,o]}function V(){this.evTarget=te,this.targetIds={},C.apply(this,arguments)}function U(t,e){var i=x(t.touches),o=this.targetIds;if(e&(Et|Tt)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var n,s,r=x(t.changedTouches),a=[],h=this.target;if(s=i.filter(function(t){return y(t.target,h)}),e===Et)for(n=0;n-1&&o.splice(t,1)};setTimeout(n,ee)}}function K(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,o=0;o-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,o=this.state;o=fe&&e(i.options.event+tt(o))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&n&e.direction},attrTest:function(t){return ot.prototype.attrTest.call(this,t)&&(this.state&ce||!(this.state&ce)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),c(st,ot,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ce)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),c(rt,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[se]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,o=t.distancee.time;if(this._input=t,!o||!i||t.eventType&(Pt|It)&&!n)this.reset();else if(t.eventType&Et)this.reset(),this._timer=h(function(){this.state=me,this.tryEmit()},e.time,this);else if(t.eventType&Pt)return me;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===me&&(t&&t.eventType&Pt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=_t(),this.manager.emit(this.options.event,this._input)))}}),c(at,ot,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ce)}}),c(ht,ot,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ft|Bt,pointers:1},getTouchAction:function(){return nt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Ft|Bt)?e=t.overallVelocity:i&Ft?e=t.overallVelocityX:i&Bt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&Pt},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),c(dt,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[re]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,o=t.distanced+i?s+=h()+u-i+t.itemSet.options.margin.item.vertical:r=!1,s=Math.min(s,o-i),{shouldScroll:r,scrollOffset:s,itemTop:l}}var a=i(9),h=i(2),d=i(11),l=i(12),u=i(64),c=i(65),p=i(45),f=i(67),m=i(46),v=i(99),g=i(15).printStyle,y=i(105).allOptions,b=i(105).configureOptions,_=i(71).default,w=i(15).default;o.prototype=new c,o.prototype._createConfigurator=function(){return new _(this,this.dom.container,b)},o.prototype.redraw=function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()},o.prototype.setOptions=function(t){if(!0===w.validate(t,y)&&console.log("%cErrors have been found in the supplied options object.",g),c.prototype.setOptions.call(this,t),"type"in t&&t.type!==this.options.type){this.options.type=t.type;var e=this.itemsData;if(e){var i=this.getSelection();this.setItems(null),this.setItems(e),this.setSelection(i)}}},o.prototype.setItems=function(t){var e;e=t?t instanceof d||t instanceof l?t:new d(t,{type:{start:"Date",end:"Date"}}):null,this.itemsData=e,this.itemSet&&this.itemSet.setItems(e)},o.prototype.setGroups=function(t){var e;if(t){var i=function(t){return!1!==t.visible};e=t instanceof d||t instanceof l?new l(t,{filter:i}):new d(t.filter(i))}else e=null;this.groupsData=e,this.itemSet.setGroups(e)},o.prototype.setData=function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)},o.prototype.setSelection=function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)},o.prototype.getSelection=function(){return this.itemSet&&this.itemSet.getSelection()||[]},o.prototype.focus=function(t,e){if(this.itemsData&&void 0!=t){var i=Array.isArray(t)?t:[t],o=this.itemsData.getDataSet().get(i,{type:{start:"Date",end:"Date"}}),n=null,s=null;if(o.forEach(function(t){var e=t.start.valueOf(),i="end"in t?t.end.valueOf():t.start.valueOf();(null===n||es)&&(s=i)}),null!==n&&null!==s){var a=this,h=this.itemSet.items[i[0]],d=-1*this._getScrollTop(),l=null,u=function(t,e,i){var o=r(a,h);if(l||(l=o),l.itemTop!=o.itemTop||l.shouldScroll){l.itemTop!=o.itemTop&&o.shouldScroll&&(l=o,d=-1*a._getScrollTop());var n=d,s=l.scrollOffset,u=i?s:n+(s-n)*t;a._setScrollTop(-u),e||a._redraw()}},c=function(){var t=r(a,h);t.shouldScroll&&t.itemTop!=l.itemTop&&(a._setScrollTop(-t.scrollOffset),a._redraw())},p=function(){c(),setTimeout(c,100)},f=(n+s)/2,m=Math.max(this.range.end-this.range.start,1.1*(s-n)),v=!e||void 0===e.animation||e.animation;v||(l={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(f-m/2,f+m/2,{animation:v},p,u)}}},o.prototype.fit=function(t,e){var i,o=!t||void 0===t.animation||t.animation,n=this.itemsData&&this.itemsData.getDataSet();1===n.length&&void 0===n.get()[0].end?(i=this.getDataRange(),this.moveTo(i.min.valueOf(),{animation:o},e)):(i=this.getItemRange(),this.range.setRange(i.min,i.max,{animation:o},e))},o.prototype.getItemRange=function(){var t=this.getDataRange(),e=null!==t.min?t.min.valueOf():null,i=null!==t.max?t.max.valueOf():null,o=null,r=null;if(null!=e&&null!=i){var a=i-e;a<=0&&(a=10);var d=a/this.props.center.width,l={},u=0;h.forEach(this.itemSet.items,function(t,e){if(t.groupShowing){l[e]=t.redraw(!0),u=l[e].length}});if(u>0)for(var c=0;ci&&(i=h,r=t)}.bind(this)),o&&r){var p=o.getWidthLeft()+10,f=r.getWidthRight()+10,m=this.props.center.width-p-f;m>0&&(this.options.rtl?(e=n(o)-f*a/m,i=s(r)+p*a/m):(e=n(o)-p*a/m,i=s(r)+f*a/m))}}return{min:null!=e?new Date(e):null,max:null!=i?new Date(i):null}},o.prototype.getDataRange=function(){var t=null,e=null,i=this.itemsData&&this.itemsData.getDataSet();return i&&i.forEach(function(i){var o=h.convert(i.start,"Date").valueOf(),n=h.convert(void 0!=i.end?i.end:i.start,"Date").valueOf();(null===t||oe)&&(e=n)}),{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},o.prototype.getEventProperties=function(t){var e,i=t.center?t.center.x:t.clientX,o=t.center?t.center.y:t.clientY;e=this.options.rtl?h.getAbsoluteRight(this.dom.centerContainer)-i:i-h.getAbsoluteLeft(this.dom.centerContainer);var n=o-h.getAbsoluteTop(this.dom.centerContainer),s=this.itemSet.itemFromTarget(t),r=this.itemSet.groupFromTarget(t),a=m.customTimeFromTarget(t),d=this.itemSet.options.snap||null,l=this.body.util.getScale(),u=this.body.util.getStep(),c=this._toTime(e),p=d?d(c,l,u):c,f=h.getTarget(t),v=null;return null!=s?v="item":null!=a?v="custom-time":h.hasParent(f,this.timeAxis.dom.foreground)?v="axis":this.timeAxis2&&h.hasParent(f,this.timeAxis2.dom.foreground)?v="axis":h.hasParent(f,this.itemSet.dom.labelSet)?v="group-label":h.hasParent(f,this.currentTime.bar)?v="current-time":h.hasParent(f,this.dom.center)&&(v="background"),{event:t,item:s?s.id:null,group:r?r.groupId:null,what:v,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:e,y:n,time:c,snappedTime:p}},o.prototype.toggleRollingMode=function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())},t.exports=o},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(19),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(10),u=i(37),c=i(2),p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;(0,a.default)(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return(0,d.default)(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){var e={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"};if("string"==typeof t)return e[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i=void 0,o=this._isColorString(t);if(void 0!==o&&(t=o),!0===c.isString(t)){if(!0===c.isValidRGB(t)){var n=t.substr(4).substr(0,t.length-5).split(",");i={r:n[0],g:n[1],b:n[2],a:1}}else if(!0===c.isValidRGBA(t)){var r=t.substr(5).substr(0,t.length-6).split(",");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===c.isValidHex(t)){var a=c.hexToRGB(t);i={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var h=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:h}}if(void 0===i)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+(0,s.default)(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=c.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",setTimeout(function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=c.extend({},t)),this.color=t;var e=c.RGBToHSV(t.r,t.g,t.b),i=2*Math.PI,o=this.r*e.s,n=this.centerCoordinates.x+o*Math.sin(i*e.h),s=this.centerCoordinates.y+o*Math.cos(i*e.h);this.colorPickerSelector.style.left=n-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=c.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=c.HSVToRGB(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=c.RGBToHSV(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,o,n),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),i.fill(),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var t=this.colorPickerCanvas.getContext("2d") -;this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(e)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=this._hide.bind(this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=this._apply.bind(this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=this._save.bind(this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=this._loadLast.bind(this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new l(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),u.onTouch(this.hammer,function(e){t._moveSelector(e)}),this.hammer.on("tap",function(e){t._moveSelector(e)}),this.hammer.on("panstart",function(e){t._moveSelector(e)}),this.hammer.on("panmove",function(e){t._moveSelector(e)}),this.hammer.on("panend",function(e){t._moveSelector(e)})}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,e,i);var o=void 0,n=void 0,s=void 0,r=void 0;this.centerCoordinates={x:.5*e,y:.5*i},this.r=.49*e;var a=2*Math.PI/360,h=1/this.r,d=void 0;for(s=0;s<360;s++)for(r=0;rr?r:t,e=null==e?r:e0&&l.push(u.screenToValue(n)),!p.hidden&&this.itemsData.length>0&&l.push(p.screenToValue(n)),{event:t,what:d,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:o,y:n,time:r,value:l}},o.prototype._createConfigurator=function(){return new g(this,this.dom.container,v)},t.exports=o},function(t,e,i){e.util=i(2),e.DOMutil=i(14),e.DataSet=i(11),e.DataView=i(12),e.Queue=i(43),e.Network=i(182),e.network={Images:i(116),dotparser:i(114),gephiParser:i(115),allOptions:i(122)},e.network.convertDot=function(t){return e.network.dotparser.DOTToGraph(t)},e.network.convertGephi=function(t,i){return e.network.gephiParser.parseGephi(t,i)},e.moment=i(9),e.Hammer=i(10),e.keycharm=i(35)},function(t,e,i){function o(t,e,i){var n=this;if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:d,clickToUse:!1},s.extend(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this),once:this.once.bind(this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}}},this.bindEventListeners(),this.images=new l(function(){return n.body.emitter.emit("_requestRedraw")}),this.groups=new u,this.canvas=new g(this.body),this.selectionHandler=new _(this.body,this.canvas),this.interactionHandler=new b(this.body,this.canvas,this.selectionHandler),this.view=new y(this.body,this.canvas),this.renderer=new v(this.body,this.canvas),this.physics=new f(this.body),this.layoutEngine=new w(this.body),this.clustering=new m(this.body),this.manipulation=new x(this.body,this.canvas,this.selectionHandler),this.nodesHandler=new c(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new p(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new T(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(i),this.setData(e)}i(183);var n=i(44),s=i(2),r=i(114),a=i(115),h=i(97),d=i(184),l=i(116).default,u=i(186).default,c=i(187).default,p=i(214).default,f=i(220).default,m=i(227).default,v=i(229).default,g=i(230).default,y=i(231).default,b=i(232).default,_=i(234).default,w=i(235).default,x=i(237).default,k=i(71).default,S=i(15).default,D=i(15),M=D.printStyle,C=i(122),O=C.allOptions,E=C.configureOptions,T=i(238).default;n(o.prototype),o.prototype.setOptions=function(t){var e=this;if(void 0!==t){!0===S.validate(t,O)&&console.log("%cErrors have been found in the supplied options object.",M);var i=["locale","locales","clickToUse"];if(s.selectiveDeepExtend(i,this.options,t),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),void 0!==t.groups&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new k(this,this.body.container,E,this.canvas.pixelRatio)),this.configurator.setOptions(t.configure)),this.configurator&&!0===this.configurator.options.enabled){var o={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};s.deepExtend(o.nodes,this.nodesHandler.options),s.deepExtend(o.edges,this.edgesHandler.options),s.deepExtend(o.layout,this.layoutEngine.options),s.deepExtend(o.interaction,this.selectionHandler.options),s.deepExtend(o.interaction,this.renderer.options),s.deepExtend(o.interaction,this.interactionHandler.options),s.deepExtend(o.manipulation,this.manipulation.options),s.deepExtend(o.physics,this.physics.options),s.deepExtend(o.global,this.canvas.options),s.deepExtend(o.global,this.options),this.configurator.setModuleOptions(o)}void 0!==t.clickToUse?!0===t.clickToUse?void 0===this.activator&&(this.activator=new h(this.canvas.frame),this.activator.on("change",function(){e.body.emitter.emit("activate")})):(void 0!==this.activator&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}},o.prototype._updateVisibleIndices=function(){var t=this.body.nodes,e=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var i in t)t.hasOwnProperty(i)&&(this.clustering._isClusteredNode(i)||!1!==t[i].options.hidden||this.body.nodeIndices.push(t[i].id));for(var o in e)if(e.hasOwnProperty(o)){var n=e[o],s=t[n.fromId],r=t[n.toId],a=void 0!==s&&void 0!==r,h=!this.clustering._isClusteredEdge(o)&&!1===n.options.hidden&&a&&!1===s.options.hidden&&!1===r.options.hidden;h&&this.body.edgeIndices.push(n.id)}},o.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")})},o.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.log("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var e=r.DOTToGraph(t.dot);return void this.setData(e)}if(t&&t.gephi){console.log("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var i=a.parseGephi(t.gephi);return void this.setData(i)}this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0),this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")},o.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var t in this.body.nodes)this.body.nodes.hasOwnProperty(t)&&delete this.body.nodes[t];for(var e in this.body.edges)this.body.edges.hasOwnProperty(e)&&delete this.body.edges[e];s.recursiveDOMDelete(this.body.container)},o.prototype._updateValueRange=function(t){var e,i=void 0,o=void 0,n=0;for(e in t)if(t.hasOwnProperty(e)){var s=t[e].getValue();void 0!==s&&(i=void 0===i?s:Math.min(s,i),o=void 0===o?s:Math.max(s,o),n+=s)}if(void 0!==i&&void 0!==o)for(e in t)t.hasOwnProperty(e)&&t[e].setValueRange(i,o,n)},o.prototype.isActive=function(){return!this.activator||this.activator.active},o.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)},o.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)},o.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)},o.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)},o.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)},o.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)},o.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)},o.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)},o.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)},o.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)},o.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)},o.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)},o.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)},o.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)},o.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)},o.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)},o.prototype.editNodeMode=function(){return console.log("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)},o.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)},o.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)},o.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)},o.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)},o.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)},o.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)},o.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)},o.prototype.getConnectedNodes=function(t){return void 0!==this.body.nodes[t]?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)},o.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)},o.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)},o.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)},o.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)},o.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)},o.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)},o.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments)},o.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments)},o.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},o.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},o.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)},o.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)},o.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.redraw()},o.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)},o.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)},o.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)},o.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)},o.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)},o.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)},o.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)},o.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t},t.exports=o},function(t,e,i){"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.circle=function(t,e,i){this.beginPath(),this.arc(t,e,i,0,2*Math.PI,!1),this.closePath()},CanvasRenderingContext2D.prototype.square=function(t,e,i){this.beginPath(),this.rect(t-i,e-i,2*i,2*i),this.closePath()},CanvasRenderingContext2D.prototype.triangle=function(t,e,i){this.beginPath(),i*=1.15,e+=.275*i;var o=2*i,n=o/2,s=Math.sqrt(3)/6*o,r=Math.sqrt(o*o-n*n);this.moveTo(t,e-(r-s)),this.lineTo(t+n,e+s),this.lineTo(t-n,e+s),this.lineTo(t,e-(r-s)),this.closePath()},CanvasRenderingContext2D.prototype.triangleDown=function(t,e,i){this.beginPath(),i*=1.15,e-=.275*i;var o=2*i,n=o/2,s=Math.sqrt(3)/6*o,r=Math.sqrt(o*o-n*n);this.moveTo(t,e+(r-s)),this.lineTo(t+n,e-s),this.lineTo(t-n,e-s),this.lineTo(t,e+(r-s)),this.closePath()},CanvasRenderingContext2D.prototype.star=function(t,e,i){this.beginPath(),i*=.82,e+=.1*i;for(var o=0;o<10;o++){var n=o%2==0?1.3*i:.5*i;this.lineTo(t+n*Math.sin(2*o*Math.PI/10),e-n*Math.cos(2*o*Math.PI/10))}this.closePath()},CanvasRenderingContext2D.prototype.diamond=function(t,e,i){this.beginPath(),this.lineTo(t,e+i),this.lineTo(t+i,e),this.lineTo(t,e-i),this.lineTo(t-i,e),this.closePath()},CanvasRenderingContext2D.prototype.roundRect=function(t,e,i,o,n){var s=Math.PI/180;i-2*n<0&&(n=i/2),o-2*n<0&&(n=o/2),this.beginPath(),this.moveTo(t+n,e),this.lineTo(t+i-n,e),this.arc(t+i-n,e+n,n,270*s,360*s,!1),this.lineTo(t+i,e+o-n),this.arc(t+i-n,e+o-n,n,0,90*s,!1),this.lineTo(t+n,e+o),this.arc(t+n,e+o-n,n,90*s,180*s,!1),this.lineTo(t,e+n),this.arc(t+n,e+n,n,180*s,270*s,!1),this.closePath()},CanvasRenderingContext2D.prototype.ellipse_vis=function(t,e,i,o){var n=i/2*.5522848,s=o/2*.5522848,r=t+i,a=e+o,h=t+i/2,d=e+o/2;this.beginPath(),this.moveTo(t,d),this.bezierCurveTo(t,d-s,h-n,e,h,e),this.bezierCurveTo(h+n,e,r,d-s,r,d),this.bezierCurveTo(r,d+s,h+n,a,h,a),this.bezierCurveTo(h-n,a,t,d+s,t,d),this.closePath()},CanvasRenderingContext2D.prototype.database=function(t,e,i,o){var n=i,s=o*(1/3),r=n/2*.5522848,a=s/2*.5522848,h=t+n,d=e+s,l=t+n/2,u=e+s/2,c=e+(o-s/2),p=e+o;this.beginPath(),this.moveTo(h,u),this.bezierCurveTo(h,u+a,l+r,d,l,d),this.bezierCurveTo(l-r,d,t,u+a,t,u),this.bezierCurveTo(t,u-a,l-r,e,l,e),this.bezierCurveTo(l+r,e,h,u-a,h,u),this.lineTo(h,c),this.bezierCurveTo(h,c+a,l+r,p,l,p),this.bezierCurveTo(l-r,p,t,c+a,t,c),this.lineTo(t,u)},CanvasRenderingContext2D.prototype.dashedLine=function(t,e,i,o,n){this.beginPath(),this.moveTo(t,e);for(var s=n.length,r=i-t,a=o-e,h=a/r,d=Math.sqrt(r*r+a*a),l=0,u=!0,c=0,p=n[0];d>=.1;)p=n[l++%s],p>d&&(p=d),c=Math.sqrt(p*p/(1+h*h)),c=r<0?-c:c,t+=c,e+=h*c,!0===u?this.lineTo(t,e):this.moveTo(t,e),d-=p,u=!u},CanvasRenderingContext2D.prototype.hexagon=function(t,e,i){this.beginPath();var o=2*Math.PI/6;this.moveTo(t+i,e);for(var n=1;n<6;n++)this.lineTo(t+i*Math.cos(o*n),e+i*Math.sin(o*n));this.closePath()})},function(t,e,i){e.en={edit:"Edit",del:"Delete selected",back:"Back",addNode:"Add Node",addEdge:"Add Edge",editNode:"Edit Node",editEdge:"Edit Edge",addDescription:"Click in an empty space to place a new node.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",createEdgeError:"Cannot link edges to a cluster.",deleteClusterError:"Clusters cannot be deleted.",editClusterError:"Clusters cannot be edited."},e.en_EN=e.en,e.en_US=e.en,e.de={edit:"Editieren",del:"Lösche Auswahl",back:"Zurück",addNode:"Knoten hinzufügen",addEdge:"Kante hinzufügen",editNode:"Knoten editieren",editEdge:"Kante editieren",addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",deleteClusterError:"Cluster können nicht gelöscht werden.",editClusterError:"Cluster können nicht editiert werden."},e.de_DE=e.de,e.es={edit:"Editar",del:"Eliminar selección",back:"Átras",addNode:"Añadir nodo",addEdge:"Añadir arista",editNode:"Editar nodo",editEdge:"Editar arista",addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",createEdgeError:"No se puede conectar una arista a un grupo.",deleteClusterError:"No es posible eliminar grupos.",editClusterError:"No es posible editar grupos."},e.es_ES=e.es,e.it={edit:"Modifica",del:"Cancella la selezione",back:"Indietro",addNode:"Aggiungi un nodo",addEdge:"Aggiungi un vertice",editNode:"Modifica il nodo",editEdge:"Modifica il vertice",addDescription:"Clicca per aggiungere un nuovo nodo",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",createEdgeError:"Non si possono collegare vertici ad un cluster",deleteClusterError:"I cluster non possono essere cancellati",editClusterError:"I clusters non possono essere modificati."},e.it_IT=e.it,e.nl={edit:"Wijzigen",del:"Selectie verwijderen",back:"Terug",addNode:"Node toevoegen",addEdge:"Link toevoegen",editNode:"Node wijzigen",editEdge:"Link wijzigen",addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",createEdgeError:"Kan geen link maken naar een cluster.",deleteClusterError:"Clusters kunnen niet worden verwijderd.",editClusterError:"Clusters kunnen niet worden aangepast."},e.nl_NL=e.nl,e.nl_BE=e.nl,e["pt-br"]={edit:"Editar",del:"Remover selecionado",back:"Voltar",addNode:"Adicionar nó",addEdge:"Adicionar aresta",editNode:"Editar nó",editEdge:"Editar aresta",addDescription:"Clique em um espaço em branco para adicionar um novo nó",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",createEdgeError:"Não foi possível linkar arestas a um cluster.",deleteClusterError:"Clusters não puderam ser removidos.",editClusterError:"Clusters não puderam ser editados."},e["pt-BR"]=e["pt-br"],e.pt_BR=e["pt-br"],e.pt_br=e["pt-br"],e.ru={edit:"Редактировать",del:"Удалить выбранное",back:"Назад",addNode:"Добавить узел",addEdge:"Добавить ребро",editNode:"Редактировать узел",editEdge:"Редактировать ребро",addDescription:"Кликните в свободное место, чтобы добавить новый узел.",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",createEdgeError:"Невозможно соединить ребра в кластер.",deleteClusterError:"Кластеры не могут быть удалены",editClusterError:"Кластеры недоступны для редактирования."},e.ru_RU=e.ru,e.cn={edit:"编辑",del:"删除选定",back:"返回",addNode:"添加节点",addEdge:"添加连接线",editNode:"编辑节点",editEdge:"编辑连接线",addDescription:"单击空白处放置新节点。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",createEdgeError:"无法将连接线连接到群集。",deleteClusterError:"无法删除群集。",editClusterError:"无法编辑群集。"},e.zh_CN=e.cn},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=function(){function t(){(0,s.default)(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return(0,a.default)(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var i=Math.floor(e/2),o=Math.floor(e/4),n=Math.floor(e/8),s=Math.floor(e/16),r=Math.floor(t/2),a=Math.floor(t/4),h=Math.floor(t/8),d=Math.floor(t/16);this.canvas.width=3*a,this.canvas.height=i,this.coordinates=[[0,0,r,i],[r,0,a,o],[r,o,h,n],[5*h,o,d,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var i=1;i2){e*=.5;for(var r=0;e>2&&r=this.NUM_ITERATIONS&&(r=this.NUM_ITERATIONS-1);var a=this.coordinates[r];t.drawImage(this.canvas,a[0],a[1],a[2],a[3],i,o,n,s)}else t.drawImage(this.image,i,o,n,s)}}]),t}();e.default=h},function(t,e,i){ -function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=i(2),d=function(){function t(){(0,s.default)(this,t),this.clear(),this.defaultIndex=0,this.groupsArray=[],this.groupIndex=0,this.defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},h.extend(this.options,this.defaultOptions)}return(0,a.default)(t,[{key:"setOptions",value:function(t){var e=["useDefaultGroups"];if(void 0!==t)for(var i in t)if(t.hasOwnProperty(i)&&-1===e.indexOf(i)){var o=t[i];this.add(i,o)}}},{key:"clear",value:function(){this.groups={},this.groupsArray=[]}},{key:"get",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.groups[t];if(void 0===i&&e)if(!1===this.options.useDefaultGroups&&this.groupsArray.length>0){var o=this.groupIndex%this.groupsArray.length;this.groupIndex++,i={},i.color=this.groups[this.groupsArray[o]],this.groups[t]=i}else{var n=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++,i={},i.color=this.defaultGroups[n],this.groups[t]=i}return i}},{key:"add",value:function(t,e){return this.groups[t]=e,this.groupsArray.push(t),e}}]),t}();e.default=d},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=i(2),d=i(11),l=i(12),u=i(47).default,c=function(){function t(e,i,o,n){var r=this;if((0,s.default)(this,t),this.body=e,this.images=i,this.groups=o,this.layoutEngine=n,this.body.functions.createNode=this.create.bind(this),this.nodesListeners={add:function(t,e){r.add(e.items)},update:function(t,e){r.update(e.items,e.data,e.oldData)},remove:function(t,e){r.remove(e.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,i,o){if(e===t)return.5;var n=1/(e-t);return Math.max(0,(o-t)*n)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=h.bridgeObject(this.defaultOptions),this.bindEventListeners()}return(0,a.default)(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("refreshNodes",this.refresh.bind(this)),this.body.emitter.on("refresh",this.refresh.bind(this)),this.body.emitter.on("destroy",function(){h.forEach(t.nodesListeners,function(e,i){t.body.data.nodes&&t.body.data.nodes.off(i,e)}),delete t.body.functions.createNode,delete t.nodesListeners.add,delete t.nodesListeners.update,delete t.nodesListeners.remove,delete t.nodesListeners})}},{key:"setOptions",value:function(t){if(void 0!==t){if(u.parseOptions(this.options,t),void 0!==t.shape)for(var e in this.body.nodes)this.body.nodes.hasOwnProperty(e)&&this.body.nodes[e].updateShape();if(void 0!==t.font)for(var i in this.body.nodes)this.body.nodes.hasOwnProperty(i)&&(this.body.nodes[i].updateLabelModule(),this.body.nodes[i].needsRefresh());if(void 0!==t.size)for(var o in this.body.nodes)this.body.nodes.hasOwnProperty(o)&&this.body.nodes[o].needsRefresh();void 0===t.hidden&&void 0===t.physics||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.nodes;if(t instanceof d||t instanceof l)this.body.data.nodes=t;else if(Array.isArray(t))this.body.data.nodes=new d,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new d}if(i&&h.forEach(this.nodesListeners,function(t,e){i.off(e,t)}),this.body.nodes={},this.body.data.nodes){var o=this;h.forEach(this.nodesListeners,function(t,e){o.body.data.nodes.on(e,t)});var n=this.body.data.nodes.getIds();this.add(n,!0)}!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=void 0,o=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:u)(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];h.forEach(this.body.nodes,function(i,o){var n=t.body.data.nodes.get(o);void 0!==n&&(!0===e&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(n))})}},{key:"getPositions",value:function(t){var e={};if(void 0!==t){if(!0===Array.isArray(t)){for(var i=0;i0)for(var r=0;r0)for(var p=0;p0&&void 0!==arguments[0]&&arguments[0];this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(e.push({text:this.buffer,mod:this.modName()}),this.buffer="")},i.add=function(t){" "===t&&(i.spacing=!0),i.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)};i.position/.test(t.substr(i.position,3))?i.mono||i.ital||!//.test(t.substr(i.position,3))?!i.mono&&//.test(t.substr(i.position,6))?(i.emitBlock(),i.mono=!0,i.modStack.unshift("mono"),i.position+=5):!i.mono&&"bold"===i.mod()&&/<\/b>/.test(t.substr(i.position,4))?(i.emitBlock(),i.bold=!1,i.modStack.shift(),i.position+=3):!i.mono&&"ital"===i.mod()&&/<\/i>/.test(t.substr(i.position,4))?(i.emitBlock(),i.ital=!1,i.modStack.shift(),i.position+=3):"mono"===i.mod()&&/<\/code>/.test(t.substr(i.position,7))?(i.emitBlock(),i.mono=!1,i.modStack.shift(),i.position+=6):i.add(o):(i.emitBlock(),i.ital=!0,i.modStack.unshift("ital"),i.position+=2):(i.emitBlock(),i.bold=!0,i.modStack.unshift("bold"),i.position+=2):/&/.test(o)?/</.test(t.substr(i.position,4))?(i.add("<"),i.position+=3):/&/.test(t.substr(i.position,5))?(i.add("&"),i.position+=4):i.add("&"):i.add(o),i.position++}return i.emitBlock(),e}},{key:"splitMarkdownBlocks",value:function(t){var e=[],i={bold:!1,ital:!1,mono:!1,beginable:!0,spacing:!1,position:0,buffer:"",modStack:[]};for(i.mod=function(){return 0===this.modStack.length?"normal":this.modStack[0]},i.modName=function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":i.bold&&i.ital?"boldital":i.bold?"bold":i.ital?"ital":void 0},i.emitBlock=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(e.push({text:this.buffer,mod:this.modName()}),this.buffer="")},i.add=function(t){" "===t&&(i.spacing=!0),i.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)};i.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var e="",i=0;i1&&void 0!==arguments[1]?arguments[1]:"normal",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t.replace(/^( +)/g,"$1\r"),t=t.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=t.split("\r");o.length>0;){var n=this.getLongestFit(o);if(0===n){var s=o[0],r=this.getLongestFitWord(s);this.lines.newLine(s.slice(0,r),e),o[0]=s.slice(r)}else{var a=n;" "===o[n-1]?n--:" "===o[a]&&a++;var h=o.slice(0,n).join("");n==o.length&&i?this.lines.append(h,e):this.lines.newLine(h,e),o=o.slice(a)}}}}]),t}();e.default=l},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(90),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=function(){function t(e){(0,a.default)(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return(0,d.default)(t,[{key:"_add",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var o=e;void 0!==e&&""!==e||(o=" ");var n=this.measureText(o,i),r=(0,s.default)({},n.values);r.text=e,r.width=n.width,r.mod=i,void 0!==e&&""!==e||(r.width=0),this.lines[t].blocks.push(r),this.lines[t].width+=r.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e)}},{key:"newLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;tt&&(t=o.width),e+=o.height}this.width=t,this.height=e}},{key:"removeEmptyBlocks",value:function(){for(var t=[],e=0;e1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var o=this.getDimensionsFromLabel(t,e,i);this.width=o.width+this.margin.right+this.margin.left,this.height=o.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,o,n,s){this.resize(t,o,n),this.left=e-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,s),t.roundRect(this.left,this.top,this.width,this.height,s.borderRadius),this.performFill(t,s),this.updateBoundingBox(e,i,t,o,n),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,o,n)}},{key:"updateBoundingBox",value:function(t,e,i,o,n){this._updateBoundingBox(t,e,i,o,n);var s=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(s)}},{key:"distanceToBorder",value:function(t,e){this.resize(t);var i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+i}}]),e}(m.default);e.default=v},function(t,e,i){i(195),t.exports=i(7).Object.getPrototypeOf},function(t,e,i){var o=i(41),n=i(85);i(87)("getPrototypeOf",function(){return function(t){return n(o(t))}})},function(t,e,i){t.exports={default:i(197),__esModule:!0}},function(t,e,i){i(198),t.exports=i(7).Object.setPrototypeOf},function(t,e,i){var o=i(17);o(o.S,"Object",{setPrototypeOf:i(199).set})},function(t,e,i){var o=i(32),n=i(27),s=function(t,e){if(n(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,o){try{o=i(80)(Function.call,i(89).f(Object.prototype,"__proto__").set,2),o(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return s(t,i),e?t.__proto__=i:o(t,i),t}}({},!1):void 0),check:s}},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(73),m=o(f),v=function(t){function e(t,i,o){(0,a.default)(this,e);var n=(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o));return n._setMargins(o),n}return(0,p.default)(e,t),(0,d.default)(e,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var o=this.getDimensionsFromLabel(t,e,i),n=Math.max(o.width+this.margin.right+this.margin.left,o.height+this.margin.top+this.margin.bottom);this.options.size=n/2,this.width=n,this.height=n,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,o,n,s){this.resize(t,o,n),this.left=e-this.width/2,this.top=i-this.height/2,this._drawRawCircle(t,e,i,s),this.updateBoundingBox(e,i),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,i,o,n)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:"distanceToBorder",value:function(t,e){return this.resize(t),.5*this.width}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(73),m=o(f),v=function(t){function e(t,i,o,n,r){(0,a.default)(this,e);var h=(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o));return h.setImages(n,r),h}return(0,p.default)(e,t),(0,d.default)(e,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var o=2*this.options.size;return this.width=o,this.height=o,void(this.radius=.5*this.width)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:"draw",value:function(t,e,i,o,n,s){this.switchImages(o),this.resize(),this.left=e-this.width/2,this.top=i-this.height/2,this._drawRawCircle(t,e,i,s),t.save(),t.clip(),this._drawImageAtPosition(t,s),t.restore(),this._drawImageLabel(t,e,i,o,n),this.updateBoundingBox(e,i)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size,this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t,e){return this.resize(t),.5*this.width}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(23),m=o(f),v=function(t){function e(t,i,o){(0,a.default)(this,e);var n=(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o));return n._setMargins(o),n}return(0,p.default)(e,t),(0,d.default)(e,[{key:"resize",value:function(t,e,i){if(this.needsRefresh(e,i)){var o=this.getDimensionsFromLabel(t,e,i),n=o.width+this.margin.right+this.margin.left;this.width=n,this.height=n,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,o,n,s){this.resize(t,o,n),this.left=e-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,s),t.database(e-this.width/2,i-this.height/2,this.width,this.height),this.performFill(t,s),this.updateBoundingBox(e,i,t,o,n),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,o,n)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(24),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"draw",value:function(t,e,i,o,n,s){this._drawShape(t,"diamond",4,e,i,o,n,s)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(24),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"draw",value:function(t,e,i,o,n,s){this._drawShape(t,"circle",2,e,i,o,n,s)}},{key:"distanceToBorder",value:function(t,e){return this.resize(t),this.options.size}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(23),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var o=this.getDimensionsFromLabel(t,e,i);this.height=2*o.height,this.width=o.width+o.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,e,i,o,n,s){this.resize(t,o,n),this.left=e-.5*this.width,this.top=i-.5*this.height,this.initContextForDraw(t,s),t.ellipse_vis(this.left,this.top,this.width,this.height),this.performFill(t,s),this.updateBoundingBox(e,i,t,o,n),this.labelModule.draw(t,e,i,o,n)}},{key:"distanceToBorder",value:function(t,e){this.resize(t);var i=.5*this.width,o=.5*this.height,n=Math.sin(e)*i,s=Math.cos(e)*o;return i*o/Math.sqrt(n*n+s*s)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(23),m=o(f),v=function(t){function e(t,i,o){(0,a.default)(this,e);var n=(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o));return n._setMargins(o),n}return(0,p.default)(e,t),(0,d.default)(e,[{key:"resize",value:function(t,e,i){this.needsRefresh(e,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,i,o,n,s){if(this.resize(t,o,n),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=i-this.height/2,this._icon(t,e,i,o,n,s),void 0!==this.options.label){this.labelModule.draw(t,this.left+this.iconSize.width/2+this.margin.left,i+this.height/2+5,o)}this.updateBoundingBox(e,i)}},{key:"updateBoundingBox",value:function(t,e){if(this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5)}}},{key:"_icon",value:function(t,e,i,o,n,s){var r=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=(o?"bold ":"")+r+"px "+this.options.icon.face,t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,s),t.fillText(this.options.icon.code,e,i),this.disableShadow(t,s)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(73),m=o(f),v=function(t){function e(t,i,o,n,r){(0,a.default)(this,e);var h=(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o));return h.setImages(n,r),h}return(0,p.default)(e,t),(0,d.default)(e,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var o=2*this.options.size;return this.width=o,void(this.height=o)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:"draw",value:function(t,e,i,o,n,s){if(this.switchImages(o),this.resize(),this.left=e-this.width/2,this.top=i-this.height/2,!0===this.options.shapeProperties.useBorderWithImage){var r=this.options.borderWidth,a=this.options.borderWidthSelected||2*this.options.borderWidth,h=(o?a:r)/this.body.view.scale;t.lineWidth=Math.min(this.width,h),t.beginPath(),t.strokeStyle=o?this.options.color.highlight.border:n?this.options.color.hover.border:this.options.color.border,t.fillStyle=o?this.options.color.highlight.background:n?this.options.color.hover.background:this.options.color.background,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),t.fill(),this.performStroke(t,s),t.closePath()}this._drawImageAtPosition(t,s),this._drawImageLabel(t,e,i,o,n),this.updateBoundingBox(e,i)}},{key:"updateBoundingBox",value:function(t,e){this.resize(),this._updateBoundingBox(t,e),void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)} -}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(24),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"draw",value:function(t,e,i,o,n,s){this._drawShape(t,"square",2,e,i,o,n,s)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(24),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"draw",value:function(t,e,i,o,n,s){this._drawShape(t,"hexagon",4,e,i,o,n,s)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(24),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"draw",value:function(t,e,i,o,n,s){this._drawShape(t,"star",4,e,i,o,n,s)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(23),m=o(f),v=function(t){function e(t,i,o){(0,a.default)(this,e);var n=(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o));return n._setMargins(o),n}return(0,p.default)(e,t),(0,d.default)(e,[{key:"resize",value:function(t,e,i){this.needsRefresh(e,i)&&(this.textSize=this.labelModule.getTextSize(t,e,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,i,o,n,s){this.resize(t,o,n),this.left=e-this.width/2,this.top=i-this.height/2,this.enableShadow(t,s),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,o,n),this.disableShadow(t,s),this.updateBoundingBox(e,i,t,o,n)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(24),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"draw",value:function(t,e,i,o,n,s){this._drawShape(t,"triangle",3,e,i,o,n,s)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(24),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"draw",value:function(t,e,i,o,n,s){this._drawShape(t,"triangleDown",3,e,i,o,n,s)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=i(2),d=i(11),l=i(12),u=i(74).default,c=function(){function t(e,i,o){var n=this;(0,s.default)(this,t),this.body=e,this.images=i,this.groups=o,this.body.functions.createEdge=this.create.bind(this),this.edgesListeners={add:function(t,e){n.add(e.items)},update:function(t,e){n.update(e.items)},remove:function(t,e){n.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,i,o){if(e===t)return.5;var n=1/(e-t);return Math.max(0,(o-t)*n)}},selectionWidth:1.5,selfReferenceSize:20,shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},h.deepExtend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,a.default)(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("_forceDisableDynamicCurves",function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===e&&(e="continuous");var o=!1;for(var n in t.body.edges)if(t.body.edges.hasOwnProperty(n)){var s=t.body.edges[n],r=t.body.data.edges._data[n];if(void 0!==r){var a=r.smooth;void 0!==a&&!0===a.enabled&&"dynamic"===a.type&&(void 0===e?s.setOptions({smooth:!1}):s.setOptions({smooth:{type:e}}),o=!0)}}!0===i&&!0===o&&t.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){t.reconnectEdges()}),this.body.emitter.on("refreshEdges",this.refresh.bind(this)),this.body.emitter.on("refresh",this.refresh.bind(this)),this.body.emitter.on("destroy",function(){h.forEach(t.edgesListeners,function(e,i){t.body.data.edges&&t.body.data.edges.off(i,e)}),delete t.body.functions.createEdge,delete t.edgesListeners.add,delete t.edgesListeners.update,delete t.edgesListeners.remove,delete t.edgesListeners})}},{key:"setOptions",value:function(t){if(void 0!==t){u.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var i in this.body.edges)this.body.edges.hasOwnProperty(i)&&(e=this.body.edges[i].updateEdgeType()||e);if(void 0!==t.font)for(var o in this.body.edges)this.body.edges.hasOwnProperty(o)&&this.body.edges[o].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.body.data.edges;if(t instanceof d||t instanceof l)this.body.data.edges=t;else if(Array.isArray(t))this.body.data.edges=new d,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new d}if(o&&h.forEach(this.edgesListeners,function(t,e){o.off(e,t)}),this.body.edges={},this.body.data.edges){h.forEach(this.edgesListeners,function(t,i){e.body.data.edges.on(i,t)});var n=this.body.data.edges.getIds();this.add(n,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===i&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.edges,o=this.body.data.edges,n=0;n1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var i=this.body.edges;h.forEach(t,function(t){var e=i[t];void 0!==e&&e.remove()}),e&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;h.forEach(this.body.edges,function(e,i){var o=t.body.data.edges._data[i];void 0!==o&&e.setOptions(o)})}},{key:"create",value:function(t){return new u(t,this.body,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,e=this.body.nodes,i=this.body.edges;for(t in e)e.hasOwnProperty(t)&&(e[t].edges=[]);for(t in i)if(i.hasOwnProperty(t)){var o=i[t];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var i=this.body.edges[t];void 0!==i.fromId&&e.push(i.fromId),void 0!==i.toId&&e.push(i.toId)}return e}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,e=[];h.forEach(this.body.edges,function(i,o){var n=t.body.nodes[i.toId],s=t.body.nodes[i.fromId];void 0!==n&&!0===n.isCluster||void 0!==s&&!0===s.isCluster||void 0!==n&&void 0!==s||e.push(o)}),this.remove(e,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.edges,e=this.body.data.edges,i=[];e.forEach(function(e,o){void 0===t[o]&&i.push(o)}),this.add(i,!0)}}]),t}();e.default=c},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(30),s=o(n),r=i(3),a=o(r),h=i(0),d=o(h),l=i(1),u=o(l),c=i(4),p=o(c),f=i(5),m=o(f),v=i(216),g=o(v),y=function(t){function e(t,i,o){return(0,d.default)(this,e),(0,p.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t,i,o))}return(0,m.default)(e,t),(0,u.default)(e,[{key:"_line",value:function(t,e,i){var o=i[0],n=i[1];this._bezierCurve(t,e,o,n)}},{key:"_getViaCoordinates",value:function(){var t=this.from.x-this.to.x,e=this.from.y-this.to.y,i=void 0,o=void 0,n=void 0,s=void 0,r=this.options.smooth.roundness;return(Math.abs(t)>Math.abs(e)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(o=this.from.y,s=this.to.y,i=this.from.x-r*t,n=this.to.x+r*t):(o=this.from.y-r*e,s=this.to.y+r*e,i=this.from.x,n=this.to.x),[{x:i,y:o},{x:n,y:s}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:"_getDistanceToEdge",value:function(t,e,i,o,n,r){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),h=(0,s.default)(a,2),d=h[0],l=h[1];return this._getDistanceToBezierEdge(t,e,i,o,n,r,d,l)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),i=(0,s.default)(e,2),o=i[0],n=i[1],r=t,a=[];return a[0]=Math.pow(1-r,3),a[1]=3*r*Math.pow(1-r,2),a[2]=3*Math.pow(r,2)*(1-r),a[3]=Math.pow(r,3),{x:a[0]*this.fromPoint.x+a[1]*o.x+a[2]*n.x+a[3]*this.toPoint.x,y:a[0]*this.fromPoint.y+a[1]*o.y+a[2]*n.y+a[3]*this.toPoint.y}}}]),e}(g.default);e.default=y},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(75),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"_getDistanceToBezierEdge",value:function(t,e,i,o,n,s,r,a){var h=1e9,d=void 0,l=void 0,u=void 0,c=void 0,p=void 0,f=t,m=e,v=[0,0,0,0];for(l=1;l<10;l++)u=.1*l,v[0]=Math.pow(1-u,3),v[1]=3*u*Math.pow(1-u,2),v[2]=3*Math.pow(u,2)*(1-u),v[3]=Math.pow(u,3),c=v[0]*t+v[1]*r.x+v[2]*a.x+v[3]*i,p=v[0]*e+v[1]*r.y+v[2]*a.y+v[3]*o,l>0&&(d=this._getDistanceToLine(f,m,c,p,n,s),h=d1&&void 0!==arguments[1]?arguments[1]:this.via,i=t,o=void 0,n=void 0;if(this.from===this.to){var r=this._getCircleData(this.from),a=(0,s.default)(r,3),h=a[0],d=a[1],l=a[2],u=2*Math.PI*(1-i);o=h+l*Math.sin(u),n=d+l-l*(1-Math.cos(u))}else o=Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*e.x+Math.pow(i,2)*this.toPoint.x,n=Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*e.y+Math.pow(i,2)*this.toPoint.y;return{x:o,y:n}}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:"_getDistanceToEdge",value:function(t,e,i,o,n,s){return this._getDistanceToBezierEdge(t,e,i,o,n,s,this.via)}}]),e}(g.default);e.default=y},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(75),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"_line",value:function(t,e,i){this._bezierCurve(t,e,i)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t=void 0,e=void 0,i=this.options.smooth.roundness,o=this.options.smooth.type,n=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if("discrete"===o||"diagonalCross"===o){var r=void 0,a=void 0;r=a=n<=s?i*s:i*n,this.from.x>this.to.x&&(r=-r),this.from.y>=this.to.y&&(a=-a),t=this.from.x+r,e=this.from.y+a,"discrete"===o&&(n<=s?t=nthis.to.x&&(_=-_),this.from.y>=this.to.y&&(w=-w),t=this.from.x+_,e=this.from.y+w,n<=s?t=this.from.x<=this.to.x?this.to.xt?this.to.x:t:e=this.from.y>=this.to.y?this.to.y>e?this.to.y:e:this.to.y2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,i.via)}},{key:"_getDistanceToEdge",value:function(t,e,i,o,n,s){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,i,o,n,s,r)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),i=t;return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*e.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*e.y+Math.pow(i,2)*this.toPoint.y}}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(118),m=o(f),v=function(t){function e(t,i,o){return(0,a.default)(this,e),(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o))}return(0,p.default)(e,t),(0,d.default)(e,[{key:"_line",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){var i=this.to,o=this.from;t.id===this.from.id&&(i=this.from,o=this.to);var n=Math.atan2(i.y-o.y,i.x-o.x),s=i.x-o.x,r=i.y-o.y,a=Math.sqrt(s*s+r*r),h=t.distanceToBorder(e,n),d=(a-h)/a,l={};return l.x=(1-d)*o.x+d*i.x,l.y=(1-d)*o.y+d*i.y,l}},{key:"_getDistanceToEdge",value:function(t,e,i,o,n,s){return this._getDistanceToLine(t,e,i,o,n,s)}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(8),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(120).default,u=i(221).default,c=i(222).default,p=i(223).default,f=i(224).default,m=i(121).default,v=i(225).default,g=i(226).default,y=i(2),b=i(119).default,_=function(){function t(e){(0,a.default)(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0},y.extend(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return(0,d.default)(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",function(){t.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){t.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){t.stopSimulation(),t.ready=!1}),this.body.emitter.on("disablePhysics",function(){t.physicsEnabled=!1,t.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()}),this.body.emitter.on("startSimulation",function(){!0===t.ready&&t.startSimulation()}),this.body.emitter.on("stopSimulation",function(){t.stopSimulation()}),this.body.emitter.on("destroy",function(){t.stopSimulation(!1),t.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){t.updatePhysicsData()})}},{key:"setOptions",value:function(t){void 0!==t&&(!1===t?(this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation()):!0===t?(this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation()):(this.physicsEnabled=!0,y.selectiveNotDeepExtend(["stabilization"],this.options,t),y.mergeOptions(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation()),this.timestep=this.options.timestep)),this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new v(this.body,this.physicsBody,t),this.edgesSolver=new p(this.body,this.physicsBody,t),this.gravitySolver=new g(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new u(this.body,this.physicsBody,t),this.edgesSolver=new p(this.body,this.physicsBody,t),this.gravitySolver=new m(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new c(this.body,this.physicsBody,t),this.edgesSolver=new f(this.body,this.physicsBody,t),this.gravitySolver=new m(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new l(this.body,this.physicsBody,t),this.edgesSolver=new p(this.body,this.physicsBody,t),this.gravitySolver=new m(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=this.simulationStep.bind(this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=Date.now();this.physicsTick(),(Date.now()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&setTimeout(function(){t.body.emitter.emit("stabilized",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,i=0,o=0;oo&&(t=t>0?o:-o),t}},{key:"_performStep",value:function(t){var e=this.body.nodes[t],i=this.physicsBody.forces[t],o=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:o.x,vy:o.y},!1===e.options.fixed.x?(o.x=this.calculateComponentVelocity(o.x,i.x,e.options.mass),e.x+=o.x*this.timestep):(i.x=0,o.x=0),!1===e.options.fixed.y?(o.y=this.calculateComponentVelocity(o.y,i.y,e.options.mass),e.y+=o.y*this.timestep):(i.y=0,o.y=0),Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var e in t)if(t.hasOwnProperty(e)&&t[e].x&&t[e].y){var i=t[e].options.fixed;this.freezeCache[e]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var e in t)t.hasOwnProperty(e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;if("number"!=typeof e&&(e=this.options.stabilization.iterations,console.log("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0===this.physicsBody.physicsNodeIndices.length)return void(this.ready=!0);this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,setTimeout(function(){return t._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations0){var s=n.edges.length+1,r=this.options.centralGravity*s*n.options.mass;o[n.id].x=e*r,o[n.id].y=i*r}}}]),e}(m.default);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(8),s=o(n),r=i(6),a=o(r),h=i(0),d=o(h),l=i(1),u=o(l),c=i(2),p=i(76).default,f=i(228).default,m=i(74).default,v=i(47).default,g=function(){function t(e){var i=this;(0,d.default)(this,t),this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},c.extend(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){i.clusteredNodes={},i.clusteredEdges={}})}return(0,u.default)(t,[{key:"clusterByHubsize",value:function(t,e){void 0===t?t=this._getHubSize():"object"===(void 0===t?"undefined":(0,a.default)(t))&&(e=this._checkOptions(t),t=this._getHubSize());for(var i=[],o=0;o=t&&i.push(n.id)}for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);var o={},n={};c.forEach(this.body.nodes,function(i,s){var r=p.cloneOptions(i);!0===e.joinCondition(r)&&(o[s]=i,c.forEach(i.edges,function(e){void 0===t.clusteredEdges[e.id]&&(n[e.id]=e)}))}),this._cluster(o,n,e,i)}},{key:"clusterByEdgeCount",value:function(t,e){var i=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var n=[],r={},a=void 0,h=void 0,d=void 0,l=0;l0&&(0,s.default)(m).length>0&&!0===b)if(c=function(){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:"clusterBridges",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:"clusterByConnection",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var o=this.body.nodes[t];e=this._checkOptions(e,o),void 0===e.clusterNodeProperties.x&&(e.clusterNodeProperties.x=o.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=o.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=o.options.fixed.x,e.clusterNodeProperties.fixed.y=o.options.fixed.y);var n={},r={},a=o.id,h=p.cloneOptions(o);n[a]=o;for(var d=0;d-1&&(r[g.id]=g)}this._cluster(n,r,e,i)}},{key:"_createClusterEdges",value:function(t,e,i,o){for(var n=void 0,r=void 0,a=void 0,h=void 0,d=void 0,l=void 0,u=(0,s.default)(t),c=[],p=0;p0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,e,i){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(0!=(0,s.default)(t).length&&(1!=(0,s.default)(t).length||1==i.clusterNodeProperties.allowSingleNodeCluster)){for(var n in t)if(t.hasOwnProperty(n)&&void 0!==this.clusteredNodes[n])return;var r=c.deepExtend({},i.clusterNodeProperties);if(void 0!==i.processProperties){var a=[];for(var h in t)if(t.hasOwnProperty(h)){var d=p.cloneOptions(t[h]);a.push(d)}var l=[];for(var u in e)if(e.hasOwnProperty(u)&&"clusterEdge:"!==u.substr(0,12)){var m=p.cloneOptions(e[u],"edge");l.push(m)}if(!(r=i.processProperties(r,a,l)))throw new Error("The processProperties function does not return properties!")}void 0===r.id&&(r.id="cluster:"+c.randomUUID());var v=r.id;void 0===r.label&&(r.label="cluster");var g=void 0;void 0===r.x&&(g=this._getClusterPosition(t),r.x=g.x),void 0===r.y&&(void 0===g&&(g=this._getClusterPosition(t)),r.y=g.y),r.id=v;var y=this.body.functions.createNode(r,f);y.containedNodes=t,y.containedEdges=e,y.clusterEdgeProperties=i.clusterEdgeProperties,this.body.nodes[r.id]=y,this._clusterEdges(t,e,r,i.clusterEdgeProperties),r.id=void 0,!0===o&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(t){void 0===this.clusteredEdges[t.id]&&(this.clusteredEdges[t.id]={physics:t.options.physics})}},{key:"_restoreEdge",value:function(t){var e=this.clusteredEdges[t.id];void 0!==e&&(t.setOptions({physics:e.physics}),delete this.clusteredEdges[t.id])}},{key:"isCluster",value:function(t){return void 0!==this.body.nodes[t]?!0===this.body.nodes[t].isCluster:(console.log("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(t){for(var e=(0,s.default)(t),i=t[e[0]].x,o=t[e[0]].x,n=t[e[0]].y,r=t[e[0]].y,a=void 0,h=1;ho?a.x:o,n=a.yr?a.y:r;return{x:.5*(i+o),y:.5*(n+r)}}},{key:"openCluster",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[t];if(void 0===o)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==o.isCluster||void 0===o.containedNodes||void 0===o.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var n=this.findNode(t),s=n.indexOf(t)-1;if(s>=0){var r=n[s];return this.body.nodes[r]._openChildCluster(t),delete this.body.nodes[t],void(!0===i&&this.body.emitter.emit("_dataChanged"))}var a=o.containedNodes,h=o.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&"function"==typeof e.releaseFunction){var d={},l={x:o.x,y:o.y};for(var u in a)if(a.hasOwnProperty(u)){var p=this.body.nodes[u];d[u]={x:p.x,y:p.y}}var f=e.releaseFunction(l,d);for(var m in a)if(a.hasOwnProperty(m)){var v=this.body.nodes[m];void 0!==f[m]&&(v.x=void 0===f[m].x?o.x:f[m].x,v.y=void 0===f[m].y?o.y:f[m].y)}}else c.forEach(a,function(t){!1===t.options.fixed.x&&(t.x=o.x),!1===t.options.fixed.y&&(t.y=o.y)});for(var g in a)if(a.hasOwnProperty(g)){var y=this.body.nodes[g];y.vx=o.vx,y.vy=o.vy,y.setOptions({physics:!0}),delete this.clusteredNodes[g]}for(var b=[],_=0;_0&&n<100;){var s=e.pop();if(void 0!==s){var r=this.body.edges[s];if(void 0!==r){n++;var a=r.clusteringEdgeReplacingIds;if(void 0===a)o.push(s);else for(var h=0;ho&&(o=s.edges.length),t+=s.edges.length,e+=Math.pow(s.edges.length,2),i+=1}t/=i,e/=i;var r=e-Math.pow(t,2),a=Math.sqrt(r),h=Math.floor(t+2*a);return h>o&&(h=o),h}},{key:"_createClusteredEdge",value:function(t,e,i,o,n){var s=p.cloneOptions(i,"edge");c.deepExtend(s,o),s.from=t,s.to=e,s.id="clusterEdge:"+c.randomUUID(),void 0!==n&&c.deepExtend(s,n);var r=this.body.functions.createEdge(s);return r.clusteringEdgeReplacingIds=[i.id],r.connect(),this.body.edges[r.id]=r,r}},{key:"_clusterEdges",value:function(t,e,i,o){if(e instanceof m){var n=e,s={};s[n.id]=n,e=s}if(t instanceof v){var r=t,a={};a[r.id]=r,t=a}if(void 0===i||null===i)throw new Error("_clusterEdges: parameter clusterNode required");void 0===o&&(o=i.clusterEdgeProperties),this._createClusterEdges(t,e,i,o);for(var h in e)if(e.hasOwnProperty(h)&&void 0!==this.body.edges[h]){var d=this.body.edges[h];this._backupEdgeOptions(d),d.setOptions({physics:!1})}for(var l in t)t.hasOwnProperty(l)&&(this.clusteredNodes[l]={clusterId:i.id,node:this.body.nodes[l]},this.body.nodes[l].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var i=e.clusterId;if(void 0!==i)return this.body.nodes[i]}}}},{key:"_filter",value:function(t,e){var i=[];return c.forEach(t,function(t){e(t)&&i.push(t)}),i}},{key:"_updateState",value:function(){var t=this,e=void 0,i=[],o=[],n=function(e){c.forEach(t.body.nodes,function(t){!0===t.isCluster&&e(t)})};for(e in this.clusteredNodes)if(this.clusteredNodes.hasOwnProperty(e)){var r=this.body.nodes[e];void 0===r&&i.push(e)}n(function(t){for(var e=0;e0}e.endPointsValid()&&n||o.push(i)}),n(function(e){c.forEach(o,function(i){delete e.containedEdges[i],c.forEach(e.edges,function(n,s){if(n.id===i)return void(e.edges[s]=null);n.clusteringEdgeReplacingIds=t._filter(n.clusteringEdgeReplacingIds,function(t){return-1===o.indexOf(t)})}),e.edges=t._filter(e.edges,function(t){return null!==t})})}),c.forEach(o,function(e){delete t.clusteredEdges[e]}),c.forEach(o,function(e){delete t.body.edges[e]});var h=(0,s.default)(this.body.edges);c.forEach(h,function(e){var i=t.body.edges[e],o=t._isClusteredNode(i.fromId)||t._isClusteredNode(i.toId);if(o!==t._isClusteredEdge(i.id)){if(!o)throw new Error("remove edge from clustering not implemented!");var n=t._getClusterNodeForNode(i.fromId);void 0!==n&&t._clusterEdges(t.body.nodes[i.fromId],i,n);var s=t._getClusterNodeForNode(i.toId);void 0!==s&&t._clusterEdges(t.body.nodes[i.toId],i,s)}});for(var d=!1,l=!0;l;)!function(){var e=[];n(function(t){var i=(0,s.default)(t.containedNodes).length,o=!0===t.options.allowSingleNodeCluster;(o&&i<1||!o&&i<2)&&e.push(t.id)});for(var i=0;i0,d=d||l}();d&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}();e.default=g},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(4),u=o(l),c=i(5),p=o(c),f=i(2),m=i(47).default,v=function(t){function e(t,i,o,n,r,h){(0,a.default)(this,e);var d=(0,u.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t,i,o,n,r,h));return d.isCluster=!0,d.containedNodes={},d.containedEdges={},d}return(0,p.default)(e,t),(0,d.default)(e,[{key:"_openChildCluster",value:function(t){var e=this,i=this.body.nodes[t];if(void 0===this.containedNodes[t])throw new Error("node with id: "+t+" not in current cluster");if(!i.isCluster)throw new Error("node with id: "+t+" is not a cluster");delete this.containedNodes[t],f.forEach(i.edges,function(t){delete e.containedEdges[t.id]}),f.forEach(i.containedNodes,function(t,i){e.containedNodes[i]=t}),i.containedNodes={},f.forEach(i.containedEdges,function(t,i){e.containedEdges[i]=t}),i.containedEdges={},f.forEach(i.edges,function(t){f.forEach(e.edges,function(i){var o=i.clusteringEdgeReplacingIds.indexOf(t.id);-1!==o&&(f.forEach(t.clusteringEdgeReplacingIds,function(t){i.clusteringEdgeReplacingIds.push(t),e.body.edges[t].edgeReplacedById=i.id}),i.clusteringEdgeReplacingIds.splice(o,1))})}),i.edges=[]}}]),e}(m);e.default=v},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}function n(){var t;void 0!==window&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===t?function(t){t()}:t}Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),r=o(s),a=i(1),h=o(a),d=i(2),l=function(){function t(e,i){(0,r.default)(this,t),n(),this.body=e,this.canvas=i,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideNodesOnDrag:!1},d.extend(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return(0,h.default)(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("dragStart",function(){t.dragging=!0}),this.body.emitter.on("dragEnd",function(){t.dragging=!1}),this.body.emitter.on("_resizeNodes",function(){t._resizeNodes()}),this.body.emitter.on("_redraw",function(){!1===t.renderingActive&&t._redraw()}),this.body.emitter.on("_blockRedraw",function(){t.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){t.allowRedraw=!0,t.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",this._requestRedraw.bind(this)),this.body.emitter.on("_startRendering",function(){t.renderRequests+=1,t.renderingActive=!0,t._startRendering()}),this.body.emitter.on("_stopRendering",function(){t.renderRequests-=1,t.renderingActive=t.renderRequests>0,t.renderTimer=void 0}),this.body.emitter.on("destroy",function(){t.renderRequests=0,t.allowRedraw=!1,t.renderingActive=!1,!0===t.requiresTimeout?clearTimeout(t.renderTimer):window.cancelAnimationFrame(t.renderTimer),t.body.emitter.off()})}},{key:"setOptions",value:function(t){if(void 0!==t){var e=["hideEdgesOnDrag","hideNodesOnDrag"];d.selectiveDeepExtend(e,this.options,t)}}},{key:"_requestNextFrame",value:function(t,e){if("undefined"!=typeof window){var i=void 0,o=window;return!0===this.requiresTimeout?i=o.setTimeout(t,e):o.requestAnimationFrame&&(i=o.requestAnimationFrame(t)),i}}},{key:"_startRendering",value:function(){!0===this.renderingActive&&void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(this._renderStep.bind(this),this.simulationInterval))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame(function(){t._redraw(!1)},0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1,0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var e=this.canvas.getContext(),i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(e.clearRect(0,0,i,o),0===this.canvas.frame.clientWidth)return;e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale),e.beginPath(),this.body.emitter.emit("beforeDrawing",e),e.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&this._drawEdges(e),(!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag)&&this._drawNodes(e,t),e.beginPath(),this.body.emitter.emit("afterDrawing",e),e.closePath(),e.restore(),!0===t&&e.clearRect(0,0,i,o)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e=this.body.nodes,i=void 0;for(var o in e)e.hasOwnProperty(o)&&(i=e[o],i.resize(t),i.updateBoundingBox(t,i.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.nodes,o=this.body.nodeIndices,n=void 0,s=[],r=this.canvas.DOMtoCanvas({x:-20,y:-20}),a=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),h={top:r.y,left:r.x,bottom:a.y,right:a.x},d=0;d0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;1!=t&&1!=e?i=.5*this.cameraState.scale*(t+e):1!=t?i=this.cameraState.scale*t:1!=e&&(i=this.cameraState.scale*e),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),n={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=n.x*this.body.view.scale,this.body.view.translation.y+=n.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==t.indexOf("%")||-1!==t.indexOf("px"))return t;if(-1===t.indexOf("%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=900,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new h(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:h.DIRECTION_ALL}),d.onTouch(this.hammer,function(e){t.body.eventListeners.onTouch(e)}),this.hammer.on("tap",function(e){t.body.eventListeners.onTap(e)}),this.hammer.on("doubletap",function(e){t.body.eventListeners.onDoubleTap(e)}),this.hammer.on("press",function(e){t.body.eventListeners.onHold(e)}),this.hammer.on("panstart",function(e){t.body.eventListeners.onDragStart(e)}),this.hammer.on("panmove",function(e){t.body.eventListeners.onDrag(e)}),this.hammer.on("panend",function(e){t.body.eventListeners.onDragEnd(e)}),this.hammer.on("pinch",function(e){t.body.eventListeners.onPinch(e)}),this.frame.canvas.addEventListener("mousewheel",function(e){t.body.eventListeners.onMouseWheel(e)}),this.frame.canvas.addEventListener("DOMMouseScroll",function(e){t.body.eventListeners.onMouseWheel(e)}),this.frame.canvas.addEventListener("mousemove",function(e){t.body.eventListeners.onMouseMove(e)}),this.frame.canvas.addEventListener("contextmenu",function(e){t.body.eventListeners.onContext(e)}),this.hammerFrame=new h(this.frame),d.onRelease(this.hammerFrame,function(e){t.body.eventListeners.onRelease(e)})}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var i=!1,o=this.frame.canvas.width,n=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(s),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var r=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),a=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===r&&this.frame.canvas.height===a||this._getCameraState(s), -this.frame.canvas.width!==r&&(this.frame.canvas.width=r,i=!0),this.frame.canvas.height!==a&&(this.frame.canvas.height=a,i=!0)}return!0===i&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(o/this.pixelRatio),oldHeight:Math.round(n/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var e=1;return"undefined"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}();e.default=u},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=i(2),d=i(76).default,l=function(){function t(e,i){var o=this;(0,s.default)(this,t),this.body=e,this.canvas=i,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",this.fit.bind(this)),this.body.emitter.on("animationFinished",function(){o.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",this.releaseNode.bind(this))}return(0,a.default)(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{nodes:[]},e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=void 0,o=void 0;if(void 0!==t.nodes&&0!==t.nodes.length||(t.nodes=this.body.nodeIndices),!0===e){var n=0;for(var s in this.body.nodes)if(this.body.nodes.hasOwnProperty(s)){var r=this.body.nodes[s];!0===r.predefinedPosition&&(n+=1)}if(n>.5*this.body.nodeIndices.length)return void this.fit(t,!1);i=d.getRange(this.body.nodes,t.nodes);o=12.662/(this.body.nodeIndices.length+7.4147)+.0964822;o*=Math.min(this.canvas.frame.canvas.clientWidth/600,this.canvas.frame.canvas.clientHeight/600)}else{this.body.emitter.emit("_resizeNodes"),i=d.getRange(this.body.nodes,t.nodes);var a=1.1*Math.abs(i.maxX-i.minX),h=1.1*Math.abs(i.maxY-i.minY),l=this.canvas.frame.canvas.clientWidth/a,u=this.canvas.frame.canvas.clientHeight/h;o=l<=u?l:u}o>1?o=1:0===o&&(o=1);var c=d.findCenter(i),p={position:c,scale:o,animation:t.animation};this.moveTo(p)}},{key:"focus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var i={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=i,e.lockedOnNode=t,this.moveTo(e)}else console.log("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0===t)return void(t={});void 0===t.offset&&(t.offset={x:0,y:0}),void 0===t.offset.x&&(t.offset.x=0),void 0===t.offset.y&&(t.offset.y=0),void 0===t.scale&&(t.scale=this.body.view.scale),void 0===t.position&&(t.position=this.getViewPosition()),void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:e.x-t.position.x,y:e.y-t.position.y};this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+t.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+t.offset.y},0===t.animation.duration?void 0!=this.lockedOnNodeId?(this.viewFunction=this._lockedRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=this._transitionRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}}},{key:"_lockedRedraw",value:function(){var t={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},e=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:e.x-t.x,y:e.y-t.y},o=this.body.view.translation,n={x:o.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=n}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e=h.easingFunctions[this.animationEasingFunction](this.easingTime);this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*e,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*e,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*e},this.easingTime>=1&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,void 0!=this.lockedOnNodeId&&(this.viewFunction=this._lockedRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();e.default=l},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=i(2),d=i(233).default,l=i(104).default,u=function(){function t(e,i,o){(0,s.default)(this,t),this.body=e,this.canvas=i,this.selectionHandler=o,this.navigationHandler=new d(e,i),this.body.eventListeners.onTap=this.onTap.bind(this),this.body.eventListeners.onTouch=this.onTouch.bind(this),this.body.eventListeners.onDoubleTap=this.onDoubleTap.bind(this),this.body.eventListeners.onHold=this.onHold.bind(this),this.body.eventListeners.onDragStart=this.onDragStart.bind(this),this.body.eventListeners.onDrag=this.onDrag.bind(this),this.body.eventListeners.onDragEnd=this.onDragEnd.bind(this),this.body.eventListeners.onMouseWheel=this.onMouseWheel.bind(this),this.body.eventListeners.onPinch=this.onPinch.bind(this),this.body.eventListeners.onMouseMove=this.onMouseMove.bind(this),this.body.eventListeners.onRelease=this.onRelease.bind(this),this.body.eventListeners.onContext=this.onContext.bind(this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=this.getPointer.bind(this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0},h.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,a.default)(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("destroy",function(){clearTimeout(t.popupTimer),delete t.body.functions.getPointer})}},{key:"setOptions",value:function(t){if(void 0!==t){var e=["hideEdgesOnDrag","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"];h.selectiveNotDeepExtend(e,this.options,t),h.mergeOptions(this.options,t,"keyboard"),t.tooltip&&(h.extend(this.options.tooltip,t.tooltip),t.tooltip.color&&(this.options.tooltip.color=h.parseColor(t.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(t){return{x:t.x-h.getAbsoluteLeft(this.canvas.frame.canvas),y:t.y-h.getAbsoluteTop(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(t){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,t,i),this.selectionHandler._generateClickEvent("click",t,e)}},{key:"onDoubleTap",value:function(t){var e=this.getPointer(t.center);this.selectionHandler._generateClickEvent("doubleClick",t,e)}},{key:"onHold",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,t,i),this.selectionHandler._generateClickEvent("click",t,e),this.selectionHandler._generateClickEvent("hold",t,e)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler._generateClickEvent("release",t,e),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler._generateClickEvent("oncontext",t,e)}},{key:"checkSelectionChanges",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.selectionHandler.getSelection(),n=!1;n=!0===i?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t);var s=this.selectionHandler.getSelection(),r=this._determineDifference(o,s),a=this._determineDifference(s,o);r.edges.length>0&&(this.selectionHandler._generateClickEvent("deselectEdge",e,t,o),n=!0),r.nodes.length>0&&(this.selectionHandler._generateClickEvent("deselectNode",e,t,o),n=!0),a.nodes.length>0&&(this.selectionHandler._generateClickEvent("selectNode",e,t),n=!0),a.edges.length>0&&(this.selectionHandler._generateClickEvent("selectEdge",e,t),n=!0),!0===n&&this.selectionHandler._generateClickEvent("select",e,t)}},{key:"_determineDifference",value:function(t,e){var i=function(t,e){for(var i=[],o=0;o10&&(t=10);var o=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var n=this.body.view.translation,s=t/i,r=(1-s)*e.x+n.x*s,a=(1-s)*e.y+n.y*s;if(this.body.view.scale=t,this.body.view.translation={x:r,y:a},void 0!=o){var h=this.canvas.canvasToDOM(o);this.drag.pointer.x=h.x,this.drag.pointer.y=h.y}this.body.emitter.emit("_requestRedraw"),i0&&(this.popupObj=h[u[u.length-1]],s=!0)}if(void 0===this.popupObj&&!1===s){for(var p=this.body.edgeIndices,f=this.body.edges,m=void 0,v=[],g=0;g0&&(this.popupObj=f[v[v.length-1]],r="edge")}void 0!==this.popupObj?this.popupObj.id!==n&&(void 0===this.popup&&(this.popup=new l(this.canvas.frame)),this.popup.popupTargetType=r,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),i=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var o=this.selectionHandler.getNodeAt(t);i=void 0!==o&&o.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===i&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}();e.default=u},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=i(10),d=i(37),l=i(35),u=function(){function t(e,i){var o=this;(0,s.default)(this,t),this.body=e,this.canvas=i,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",function(){o.activated=!0,o.configureKeyboardBindings()}),this.body.emitter.on("deactivate",function(){o.activated=!1,o.configureKeyboardBindings()}),this.body.emitter.on("destroy",function(){void 0!==o.keycharm&&o.keycharm.destroy()}),this.options={}}return(0,a.default)(t,[{key:"setOptions",value:function(t){void 0!==t&&(this.options=t,this.create())}},{key:"create",value:function(){!0===this.options.navigationButtons?!1===this.iconsCreated&&this.loadNavigationElements():!0===this.iconsCreated&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(0!=this.navigationHammers.length){for(var t=0;t700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)this.boundFunctions.hasOwnProperty(t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=e/t,n=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=e,this.body.view.translation={x:n,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=e/t,n=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=e,this.body.view.translation={x:n,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t=this;void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled&&(!0===this.options.keyboard.bindToWindow?this.keycharm=l({container:window,preventDefault:!0}):this.keycharm=l({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(this.keycharm.bind("up",function(){t.bindToRedraw("_moveUp")},"keydown"),this.keycharm.bind("down",function(){t.bindToRedraw("_moveDown")},"keydown"),this.keycharm.bind("left",function(){t.bindToRedraw("_moveLeft")},"keydown"),this.keycharm.bind("right",function(){t.bindToRedraw("_moveRight")},"keydown"),this.keycharm.bind("=",function(){t.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("num+",function(){t.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("num-",function(){t.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("-",function(){t.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("[",function(){t.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("]",function(){t.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("pageup",function(){t.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("pagedown",function(){t.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("up",function(){t.unbindFromRedraw("_moveUp")},"keyup"),this.keycharm.bind("down",function(){t.unbindFromRedraw("_moveDown")},"keyup"),this.keycharm.bind("left",function(){t.unbindFromRedraw("_moveLeft")},"keyup"),this.keycharm.bind("right",function(){t.unbindFromRedraw("_moveRight")},"keyup"),this.keycharm.bind("=",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("num+",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("num-",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("-",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("[",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("]",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("pageup",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("pagedown",function(){t.unbindFromRedraw("_zoomOut")},"keyup")))}}]),t}();e.default=u},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=o(n),r=i(1),a=o(r),h=i(47).default,d=i(74).default,l=i(2),u=function(){function t(e,i){var o=this;(0,s.default)(this,t),this.body=e,this.canvas=i,this.selectionObj={nodes:[],edges:[]},this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},l.extend(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){o.updateSelection()})}return(0,a.default)(t,[{key:"setOptions",value:function(t){if(void 0!==t){var e=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];l.selectiveDeepExtend(e,this.options,t)}}},{key:"selectOnPoint",value:function(t){var e=!1;if(!0===this.options.selectable){var i=this.getNodeAt(t)||this.getEdgeAt(t);this.unselectAll(),void 0!==i&&(e=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return e}},{key:"selectAdditionalOnPoint",value:function(t){var e=!1;if(!0===this.options.selectable){var i=this.getNodeAt(t)||this.getEdgeAt(t);void 0!==i&&(e=!0,!0===i.isSelected()?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return e}},{key:"_initBaseEvent",value:function(t,e){var i={};return i.pointer={DOM:{x:e.x,y:e.y},canvas:this.canvas.DOMtoCanvas(e)},i.event=t,i}},{key:"_generateClickEvent",value:function(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=this._initBaseEvent(e,i);if(!0===n)s.nodes=[],s.edges=[];else{var r=this.getSelection();s.nodes=r.nodes,s.edges=r.edges}void 0!==o&&(s.previousSelection=o),"click"==t&&(s.items=this.getClickedItems(i)),this.body.emitter.emit(t,s)}},{key:"selectObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==t&&(t instanceof h&&!0===e&&this._selectConnectedEdges(t),t.select(),this._addToSelection(t),!0)}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var e=[],i=this.body.nodes,o=0;o1&&void 0!==arguments[1])||arguments[1],i=this._pointerToPositionObject(t),o=this._getAllNodesOverlappingWith(i);return o.length>0?!0===e?this.body.nodes[o[o.length-1]]:o[o.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,e){for(var i=this.body.edges,o=0;o1&&void 0!==arguments[1])||arguments[1],i=this.canvas.DOMtoCanvas(t),o=10,n=null,s=this.body.edges,r=0;r1)return!0;return!1}},{key:"_selectConnectedEdges",value:function(t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},i=void 0,o=void 0;if(!t||!t.nodes&&!t.edges)throw"Selection must be an object with nodes and/or edges properties" -;if((e.unselectAll||void 0===e.unselectAll)&&this.unselectAll(),t.nodes)for(i=0;i1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:e})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(t)&&(this.body.nodes.hasOwnProperty(t)||delete this.selectionObj.nodes[t]);for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&(this.body.edges.hasOwnProperty(e)||delete this.selectionObj.edges[e])}},{key:"getClickedItems",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),i=[],o=this.body.nodeIndices,n=this.body.nodes,s=o.length-1;s>=0;s--){var r=n[o[s]],a=r.getItemsOnPoint(e);i.push.apply(i,a)}for(var h=this.body.edgeIndices,d=this.body.edges,l=h.length-1;l>=0;l--){var u=d[h[l]],c=u.getItemsOnPoint(e);i.push.apply(i,c)}return i}}]),t}();e.default=u},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(30),s=o(n),r=i(6),a=o(r),h=i(8),d=o(h),l=i(0),u=o(l),c=i(1),p=o(c),f=i(2),m=i(76).default,v=i(236),g=v.HorizontalStrategy,y=v.VerticalStrategy,b=function(){function t(){(0,u.default)(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return(0,p.default)(t,[{key:"addRelation",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var e=this,i={};return function t(o){if(void 0!==i[o])return i[o];var n=e.levels[o];if(e.childrenReference[o]){var s=e.childrenReference[o];if(s.length>0)for(var r=0;r0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===o)return this.body.emitter.emit("refresh"),f.deepExtend(e,this.optionsBackup)}return e}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:"hierarchicalRepulsion"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||"barnesHut"):"object"===(0,a.default)(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(e.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:i};else{var o=t.edges.smooth;void 0!==o.type&&"dynamic"!==o.type&&(i=o.type),this.optionsBackup.edges={smooth:void 0===o.enabled||o.enabled,type:void 0===o.type?"dynamic":o.type,roundness:void 0===o.roundness?.5:o.roundness,forceDirection:void 0!==o.forceDirection&&o.forceDirection},t.edges.smooth={enabled:void 0===o.enabled||o.enabled,type:i,roundness:void 0===o.roundness?.5:o.roundness,forceDirection:void 0!==o.forceDirection&&o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return t}},{key:"seededRandom",value:function(){var t=1e4*Math.sin(this.randomSeed++);return t-Math.floor(t)}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this.randomSeed=this.initialRandomSeed;for(var e=t.length+50,i=0;i150){for(var s=t.length;t.length>150&&o<=10;){o+=1;var r=t.length;o%3==0?this.body.modules.clustering.clusterBridges(n):this.body.modules.clustering.clusterOutliers(n);if(r==t.length&&o%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*s)})}o>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var a=0;a0){var t=void 0,e=void 0,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new b;for(e in this.body.nodes)this.body.nodes.hasOwnProperty(e)&&(t=this.body.nodes[e],void 0!==t.options.level?(i=!0,this.hierarchical.levels[e]=t.options.level):o=!0);if(!0===o&&!0===i)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===o){var n=this.options.hierarchical.sortMethod;"hubsize"===n?this._determineLevelsByHubsize():"directed"===n?this._determineLevelsDirected():"custom"===n&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)this.body.nodes.hasOwnProperty(s)&&this.hierarchical.ensureLevel(s);var r=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(r),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,e=!1,i={},o=function(e,i){var o=t.hierarchical.trees;for(var n in o)o.hasOwnProperty(n)&&o[n]===e&&t.direction.shift(n,i)},n=function(){for(var e=[],i=0;i0)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:1e9,o=1e9,n=1e9,r=1e9,a=-1e9;for(var h in e)if(e.hasOwnProperty(h)){var d=t.body.nodes[h],l=t.hierarchical.levels[d.id],u=t.direction.getPosition(d),c=t._getSpaceAroundNode(d,e),p=(0,s.default)(c,2),f=p[0],m=p[1];o=Math.min(f,o),n=Math.min(m,n),l<=i&&(r=Math.min(u,r),a=Math.max(u,a))}return[r,a,o,n]},h=function(e,i){var o=t.hierarchical.getMaxLevel(e.id),n=t.hierarchical.getMaxLevel(i.id);return Math.min(o,n)},d=function(e,i,o){for(var n=t.hierarchical,s=0;s1)for(var h=0;h2&&void 0!==arguments[2]&&arguments[2],s=t.direction.getPosition(i),d=t.direction.getPosition(o),l=Math.abs(d-s),u=t.options.hierarchical.nodeSpacing;if(l>u){var c={},p={};r(i,c),r(o,p);var f=h(i,o),m=a(c,f),v=a(p,f),g=m[1],y=v[0],b=v[2];if(Math.abs(g-y)>u){var _=g-y+u;_<-b+u&&(_=-b+u),_<0&&(t._shiftBlock(o.id,_),e=!0,!0===n&&t._centerParent(o))}}},u=function(o,n){for(var h=n.id,d=n.edges,l=t.hierarchical.levels[n.id],u=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,c={},p=[],f=0;f0?p=Math.min(c,u-t.options.hierarchical.nodeSpacing):c<0&&(p=-Math.min(-c,l-t.options.hierarchical.nodeSpacing)),0!=p&&(t._shiftBlock(n.id,p),e=!0)}(_),_=b(o,d),function(i){var o=t.direction.getPosition(n),r=t._getSpaceAroundNode(n),a=(0,s.default)(r,2),h=a[0],d=a[1],l=i-o,u=o;l>0?u=Math.min(o+(d-t.options.hierarchical.nodeSpacing),i):l<0&&(u=Math.max(o-(h-t.options.hierarchical.nodeSpacing),i)),u!==o&&(t.direction.setPosition(n,u),e=!0)}(_)};!0===this.options.hierarchical.blockShifting&&(function(i){var o=t.hierarchical.getLevels();o=o.reverse();for(var n=0;n0&&Math.abs(p)0&&(a=this.direction.getPosition(i[n-1])+r),this.direction.setPosition(s,a,e),this._validatePositionAndContinue(s,e,a),o++}}}}},{key:"_placeBranchNodes",value:function(t,e){var i=this.hierarchical.childrenReference[t];if(void 0!==i){for(var o=[],n=0;ne&&void 0===this.positionedNodes[r.id]))return;var h=this.options.hierarchical.nodeSpacing,d=void 0;d=0===s?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(o[s-1])+h,this.direction.setPosition(r,d,a),this._validatePositionAndContinue(r,a,d)}var l=this._getCenterPosition(o);this.direction.setPosition(this.body.nodes[t],l,e)}}},{key:"_validatePositionAndContinue",value:function(t,e,i){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(i-ot.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,i.id)};this._crawlNetwork(e),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},i=arguments[1],o={},n=function i(n,s){if(void 0===o[n.id]){t.hierarchical.setTreeIndex(n,s),o[n.id]=!0;for(var r=void 0,a=t._getActiveEdges(n),h=0;h2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,i),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:"shift",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),m=function(t){function e(t){(0,u.default)(this,e);var i=(0,a.default)(this,(e.__proto__||(0,s.default)(e)).call(this));return i.layout=t,i}return(0,d.default)(e,t),(0,p.default)(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.x=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:"sort",value:function(t){t.sort(function(t,e){return void 0===t.x||void 0===e.x?0:t.x-e.x})}},{key:"fix",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),e}(f),v=function(t){function e(t){(0,u.default)(this,e);var i=(0,a.default)(this,(e.__proto__||(0,s.default)(e)).call(this));return i.layout=t,i}return(0,d.default)(e,t),(0,p.default)(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.y=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:"sort",value:function(t){t.sort(function(t,e){return void 0===t.y||void 0===e.y?0:t.y-e.y})}},{key:"fix",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),e}(f);e.HorizontalStrategy=v,e.VerticalStrategy=m},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(8),s=o(n),r=i(19),a=o(r),h=i(6),d=o(h),l=i(0),u=o(l),c=i(1),p=o(c),f=i(2),m=i(10),v=i(37),g=function(){function t(e,i,o){var n=this;(0,u.default)(this,t),this.body=e,this.canvas=i,this.selectionHandler=o,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this.manipulationHammers=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},f.extend(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){n._clean()}),this.body.emitter.on("_dataChanged",this._restore.bind(this)),this.body.emitter.on("_resetData",this._restore.bind(this))}return(0,p.default)(t,[{key:"_restore",value:function(){!1!==this.inMode&&(!0===this.options.initiallyActive?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(t,e,i){void 0!==e&&(void 0!==e.locale?this.options.locale=e.locale:this.options.locale=i.locale,void 0!==e.locales?this.options.locales=e.locales:this.options.locales=i.locales),void 0!==t&&("boolean"==typeof t?this.options.enabled=t:(this.options.enabled=!0,f.deepExtend(this.options,t)),!0===this.options.initiallyActive&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){!0===this.editMode?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},!0===this.guiEnabled){this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var t=this.selectionHandler._getSelectedNodeCount(),e=this.selectionHandler._getSelectedEdgeCount(),i=t+e,o=this.options.locales[this.options.locale],n=!1;!1!==this.options.addNode&&(this._createAddNodeButton(o),n=!0),!1!==this.options.addEdge&&(!0===n?this._createSeperator(1):n=!0,this._createAddEdgeButton(o)),1===t&&"function"==typeof this.options.editNode?(!0===n?this._createSeperator(2):n=!0,this._createEditNodeButton(o)):1===e&&0===t&&!1!==this.options.editEdge&&(!0===n?this._createSeperator(3):n=!0,this._createEditEdgeButton(o)),0!==i&&(t>0&&!1!==this.options.deleteNode?(!0===n&&this._createSeperator(4),this._createDeleteButton(o)):0===t&&!1!==this.options.deleteEdge&&(!0===n&&this._createSeperator(4),this._createDeleteButton(o))),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this)),this._temporaryBindEvent("select",this.showManipulatorToolbar.bind(this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var t=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(t),this._createSeperator(),this._createDescription(t.addDescription||this.options.locales.en.addDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindEvent("click",this._performAddNode.bind(this))}},{key:"editNode",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var e=this.selectionHandler._getSelectedNode();if(void 0!==e){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==e.isCluster){var i=f.deepExtend({},e.options,!1);if(i.x=e.x,i.y=e.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(i,function(e){null!==e&&void 0!==e&&"editNode"===t.inMode&&t.body.data.nodes.getDataSet().update(e),t.showManipulatorToolbar()})}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var t=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(t),this._createSeperator(),this._createDescription(t.edgeDescription||this.options.locales.en.edgeDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindUI("onTouch",this._handleConnect.bind(this)),this._temporaryBindUI("onDragEnd",this._finishConnect.bind(this)),this._temporaryBindUI("onDrag",this._dragControlNode.bind(this)),this._temporaryBindUI("onRelease",this._finishConnect.bind(this)),this._temporaryBindUI("onDragStart",this._dragStartEdge.bind(this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"===(0,d.default)(this.options.editEdge)&&"function"==typeof this.options.editEdge.editWithoutDrag&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId)){var t=this.body.edges[this.edgeBeingEditedId];return void this._performEditEdge(t.from,t.to)}if(!0===this.guiEnabled){var e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId){var i=this.body.edges[this.edgeBeingEditedId],o=this._getNewTargetNode(i.from.x,i.from.y),n=this._getNewTargetNode(i.to.x,i.to.y);this.temporaryIds.nodes.push(o.id),this.temporaryIds.nodes.push(n.id),this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id),this.body.nodes[n.id]=n,this.body.nodeIndices.push(n.id),this._temporaryBindUI("onTouch",this._controlNodeTouch.bind(this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",this._controlNodeDragStart.bind(this)),this._temporaryBindUI("onDrag",this._controlNodeDrag.bind(this)),this._temporaryBindUI("onDragEnd",this._controlNodeDragEnd.bind(this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(t){var e=i.edgeType.findBorderPositions(t);!1===o.selected&&(o.x=e.from.x,o.y=e.from.y),!1===n.selected&&(n.x=e.to.x,n.y=e.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";var e=this.selectionHandler.getSelectedNodes(),i=this.selectionHandler.getSelectedEdges(),o=void 0;if(e.length>0){for(var n=0;n0&&"function"==typeof this.options.deleteEdge&&(o=this.options.deleteEdge);if("function"==typeof o){var s={nodes:e,edges:i} -;if(2!==o.length)throw new Error("The function for delete does not support two arguments (data, callback)");o(s,function(e){null!==e&&void 0!==e&&"delete"===t.inMode?(t.body.data.edges.getDataSet().remove(e.edges),t.body.data.nodes.getDataSet().remove(e.nodes),t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar()):(t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",!0===this.editMode?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",!0===this.editMode?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("div"),this.closeDiv.className="vis-close",this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(t,e){var i=f.deepExtend({},this.options.controlNodeStyle);i.id="targetNode"+f.randomUUID(),i.hidden=!1,i.physics=!1,i.x=t,i.y=e;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:t,right:t,top:e,bottom:e},o}},{key:"_createEditButton",value:function(){this._clean(),this.manipulationDOM={},f.recursiveDOMDelete(this.editModeDiv);var t=this.options.locales[this.options.locale],e=this._createButton("editMode","vis-button vis-edit vis-edit-mode",t.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(e),this._bindHammerToDiv(e,this.toggleEditMode.bind(this))}},{key:"_clean",value:function(){this.inMode=!1,!0===this.guiEnabled&&(f.recursiveDOMDelete(this.editModeDiv),f.recursiveDOMDelete(this.manipulationDiv),this._cleanManipulatorHammers()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanManipulatorHammers",value:function(){if(0!=this.manipulationHammers.length){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+t]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+t].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+t])}},{key:"_createAddNodeButton",value:function(t){var e=this._createButton("addNode","vis-button vis-add",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,this.addNodeMode.bind(this))}},{key:"_createAddEdgeButton",value:function(t){var e=this._createButton("addEdge","vis-button vis-connect",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,this.addEdgeMode.bind(this))}},{key:"_createEditNodeButton",value:function(t){var e=this._createButton("editNode","vis-button vis-edit",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,this.editNode.bind(this))}},{key:"_createEditEdgeButton",value:function(t){var e=this._createButton("editEdge","vis-button vis-edit",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,this.editEdgeMode.bind(this))}},{key:"_createDeleteButton",value:function(t){var e;e=this.options.rtl?"vis-button vis-delete-rtl":"vis-button vis-delete";var i=this._createButton("delete",e,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,this.deleteSelected.bind(this))}},{key:"_createBackButton",value:function(t){var e=this._createButton("back","vis-button vis-back",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,this.showManipulatorToolbar.bind(this))}},{key:"_createButton",value:function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[t+"Div"]=document.createElement("div"),this.manipulationDOM[t+"Div"].className=e,this.manipulationDOM[t+"Label"]=document.createElement("div"),this.manipulationDOM[t+"Label"].className=o,this.manipulationDOM[t+"Label"].innerHTML=i,this.manipulationDOM[t+"Div"].appendChild(this.manipulationDOM[t+"Label"]),this.manipulationDOM[t+"Div"]}},{key:"_createDescription",value:function(t){this.manipulationDiv.appendChild(this._createButton("description","vis-button vis-none",t))}},{key:"_temporaryBindEvent",value:function(t,e){this.temporaryEventFunctions.push({event:t,boundFunction:e}),this.body.emitter.on(t,e)}},{key:"_temporaryBindUI",value:function(t,e){if(void 0===this.body.eventListeners[t])throw new Error("This UI function does not exist. Typo? You tried: "+t+" possible are: "+(0,a.default)((0,s.default)(this.body.eventListeners)));this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=e}},{key:"_unbindTemporaryUIs",value:function(){for(var t in this.temporaryUIFunctions)this.temporaryUIFunctions.hasOwnProperty(t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var t=0;t=0;r--)if(n[r]!==this.selectedControlNode.id){s=this.body.nodes[n[r]];break}if(void 0!==s&&void 0!==this.selectedControlNode)if(!0===s.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var a=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===a.id?this._performEditEdge(s.id,o.to.id):this._performEditEdge(o.from.id,s.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(t){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=f.extend({},this.body.view.translation);var e=this.lastTouch,i=this.selectionHandler.getNodeAt(e);if(void 0!==i)if(!0===i.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var n=this.body.functions.createEdge({id:"connectionEdge"+f.randomUUID(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[n.id]=n,this.body.edgeIndices.push(n.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(n.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(t){var e=this.body.functions.getPointer(t.center);if(void 0!==this.temporaryIds.nodes[0]){var i=this.body.nodes[this.temporaryIds.nodes[0]];i.x=this.canvas._XconvertDOMtoCanvas(e.x),i.y=this.canvas._YconvertDOMtoCanvas(e.y),this.body.emitter.emit("_redraw")}else{var o=e.x-this.lastTouch.x,n=e.y-this.lastTouch.y;this.body.view.translation={x:this.lastTouch.translation.x+o,y:this.lastTouch.translation.y+n}}}},{key:"_finishConnect",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),o=void 0;void 0!==this.temporaryIds.edges[0]&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var n=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,r=n.length-1;r>=0;r--)if(-1===this.temporaryIds.nodes.indexOf(n[r])){s=this.body.nodes[n[r]];break}this._cleanupTemporaryNodesAndEdges(),void 0!==s&&(!0===s.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[o]&&void 0!==this.body.nodes[s.id]&&this._performAddEdge(o,s.id)),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(t){var e=this.lastTouch;this.selectionHandler._generateClickEvent("dragStart",t,e,void 0,!0)}},{key:"_performAddNode",value:function(t){var e=this,i={id:f.randomUUID(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(i,function(t){null!==t&&void 0!==t&&"addNode"===e.inMode&&(e.body.data.nodes.getDataSet().add(t),e.showManipulatorToolbar())})}else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(t,e){var i=this,o={from:t,to:e};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(o,function(t){null!==t&&void 0!==t&&"addEdge"===i.inMode&&(i.body.data.edges.getDataSet().add(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(t,e){var i=this,o={id:this.edgeBeingEditedId,from:t,to:e,label:this.body.data.edges._data[this.edgeBeingEditedId].label},n=this.options.editEdge;if("object"===(void 0===n?"undefined":(0,d.default)(n))&&(n=n.editWithoutDrag),"function"==typeof n){if(2!==n.length)throw new Error("The function for edit does not support two arguments (data, callback)");n(o,function(t){null===t||void 0===t||"editEdge"!==i.inMode?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}();e.default=g},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(30),s=o(n),r=i(0),a=o(r),h=i(1),d=o(h),l=i(239),u=o(l),c=function(){function t(e,i,o){(0,a.default)(this,t),this.body=e,this.springLength=i,this.springConstant=o,this.distanceSolver=new u.default}return(0,d.default)(t,[{key:"setOptions",value:function(t){t&&(t.springLength&&(this.springLength=t.springLength),t.springConstant&&(this.springConstant=t.springConstant))}},{key:"solve",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.distanceSolver.getDistances(this.body,t,e);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var n=0,r=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),a=1e9,h=0,d=0,l=0,u=0,c=0;a>.01&&n1&&c<5;){c+=1,this._moveNode(h,d,l);var m=this._getEnergy(h),v=(0,s.default)(m,3);u=v[0],d=v[1],l=v[2]}}}},{key:"_getHighestEnergyNode",value:function(t){for(var e=this.body.nodeIndices,i=this.body.nodes,o=0,n=e[0],r=0,a=0,h=0;h0&&e-1 in t)}function q(t){return a.call(t,function(t){return null!=t})}function H(t){return t.length>0?r.fn.concat.apply([],t):t}function I(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function V(t){return t in l?l[t]:l[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function _(t,e){return"number"!=typeof e||h[I(t)]?e:e+"px"}function B(t){var e,n;return c[t]||(e=f.createElement(t),f.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),c[t]=n),c[t]}function U(t){return"children"in t?u.call(t.children):r.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function X(t,e){var n,r=t?t.length:0;for(n=0;r>n;n++)this[n]=t[n];this.length=r,this.selector=e||""}function J(t,r,i){for(n in r)i&&(Z(r[n])||L(r[n]))?(Z(r[n])&&!Z(t[n])&&(t[n]={}),L(r[n])&&!L(t[n])&&(t[n]=[]),J(t[n],r[n],i)):r[n]!==e&&(t[n]=r[n])}function W(t,e){return null==e?r(t):r(t).filter(e)}function Y(t,e,n,r){return F(e)?e.call(t,n,r):e}function G(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function K(t,n){var r=t.className||"",i=r&&r.baseVal!==e;return n===e?i?r.baseVal:r:void(i?r.baseVal=n:t.className=n)}function Q(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?r.parseJSON(t):t):t}catch(e){return t}}function tt(t,e){e(t);for(var n=0,r=t.childNodes.length;r>n;n++)tt(t.childNodes[n],e)}var e,n,r,i,O,P,o=[],s=o.concat,a=o.filter,u=o.slice,f=t.document,c={},l={},h={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,g=/^(?:body|html)$/i,v=/([A-Z])/g,y=["val","css","html","text","data","width","height","offset"],x=["after","prepend","before","append"],b=f.createElement("table"),E=f.createElement("tr"),j={tr:f.createElement("tbody"),tbody:b,thead:b,tfoot:b,td:E,th:E,"*":f.createElement("div")},w=/complete|loaded|interactive/,T=/^[\w-]*$/,S={},C=S.toString,N={},A=f.createElement("div"),D={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},L=Array.isArray||function(t){return t instanceof Array};return N.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=A).appendChild(t),r=~N.qsa(i,e).indexOf(t),o&&A.removeChild(t),r},O=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},P=function(t){return a.call(t,function(e,n){return t.indexOf(e)==n})},N.fragment=function(t,n,i){var o,s,a;return d.test(t)&&(o=r(f.createElement(RegExp.$1))),o||(t.replace&&(t=t.replace(m,"<$1>")),n===e&&(n=p.test(t)&&RegExp.$1),n in j||(n="*"),a=j[n],a.innerHTML=""+t,o=r.each(u.call(a.childNodes),function(){a.removeChild(this)})),Z(i)&&(s=r(o),r.each(i,function(t,e){y.indexOf(t)>-1?s[t](e):s.attr(t,e)})),o},N.Z=function(t,e){return new X(t,e)},N.isZ=function(t){return t instanceof N.Z},N.init=function(t,n){var i;if(!t)return N.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&p.test(t))i=N.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}else{if(F(t))return r(f).ready(t);if(N.isZ(t))return t;if(L(t))i=q(t);else if(R(t))i=[t],t=null;else if(p.test(t))i=N.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}}return N.Z(i,t)},r=function(t,e){return N.init(t,e)},r.extend=function(t){var e,n=u.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){J(t,n,e)}),t},N.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,s=T.test(o);return t.getElementById&&s&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:u.call(s&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},r.contains=f.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},r.type=$,r.isFunction=F,r.isWindow=k,r.isArray=L,r.isPlainObject=Z,r.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},r.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},r.inArray=function(t,e,n){return o.indexOf.call(e,t,n)},r.camelCase=O,r.trim=function(t){return null==t?"":String.prototype.trim.call(t)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(t,e){var n,i,o,r=[];if(z(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return o.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return F(t)?this.not(this.not(t)):r(a.call(this,function(e){return N.matches(e,t)}))},add:function(t,e){return r(P(this.concat(r(t,e))))},is:function(t){return this.length>0&&N.matches(this[0],t)},not:function(t){var n=[];if(F(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):z(t)&&F(t.item)?u.call(t):r(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return r(n)},has:function(t){return this.filter(function(){return R(t)?r.contains(this,t):r(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!R(t)?t:r(t)},last:function(){var t=this[this.length-1];return t&&!R(t)?t:r(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?r(t).filter(function(){var t=this;return o.some.call(n,function(e){return r.contains(e,t)})}):1==this.length?r(N.qsa(this[0],t)):this.map(function(){return N.qsa(this,t)}):r()},closest:function(t,e){var n=[],i="object"==typeof t&&r(t);return this.each(function(r,o){for(;o&&!(i?i.indexOf(o)>=0:N.matches(o,t));)o=o!==e&&!M(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)}),r(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=r.map(n,function(t){return(t=t.parentNode)&&!M(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return W(e,t)},parent:function(t){return W(P(this.pluck("parentNode")),t)},children:function(t){return W(this.map(function(){return U(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||u.call(this.childNodes)})},siblings:function(t){return W(this.map(function(t,e){return a.call(U(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return r.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=B(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=F(t);if(this[0]&&!e)var n=r(t).get(0),i=n.parentNode||this.length>1;return this.each(function(o){r(this).wrapAll(e?t.call(this,o):i?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){r(this[0]).before(t=r(t));for(var e;(e=t.children()).length;)t=e.first();r(t).append(this)}return this},wrapInner:function(t){var e=F(t);return this.each(function(n){var i=r(this),o=i.contents(),s=e?t.call(this,n):t;o.length?o.wrapAll(s):i.append(s)})},unwrap:function(){return this.parent().each(function(){r(this).replaceWith(r(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=r(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return r(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return r(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;r(this).empty().append(Y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=Y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,r){var i;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(R(t))for(n in t)G(this,n,t[n]);else G(this,t,Y(this,r,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(i=this[0].getAttribute(t))?i:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){G(this,t)},this)})},prop:function(t,e){return t=D[t]||t,1 in arguments?this.each(function(n){this[t]=Y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=D[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var r="data-"+t.replace(v,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,n):this.attr(r);return null!==i?Q(i):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=Y(this,t,e,this.value)})):this[0]&&(this[0].multiple?r(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=r(this),i=Y(this,e,t,n.offset()),o=n.offsetParent().offset(),s={top:i.top-o.top,left:i.left-o.left};"static"==n.css("position")&&(s.position="relative"),n.css(s)});if(!this.length)return null;if(f.documentElement!==this[0]&&!r.contains(f.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[O(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(L(t)){if(!i)return;var o={},s=getComputedStyle(i,"");return r.each(t,function(t,e){o[e]=i.style[O(e)]||s.getPropertyValue(e)}),o}}var a="";if("string"==$(t))e||0===e?a=I(t)+":"+_(t,e):this.each(function(){this.style.removeProperty(I(t))});else for(n in t)t[n]||0===t[n]?a+=I(n)+":"+_(n,t[n])+";":this.each(function(){this.style.removeProperty(I(n))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(r(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?o.some.call(this,function(t){return this.test(K(t))},V(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){i=[];var n=K(this),o=Y(this,t,e,n);o.split(/\s+/g).forEach(function(t){r(this).hasClass(t)||i.push(t)},this),i.length&&K(this,n+(n?" ":"")+i.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===e)return K(this,"");i=K(this),Y(this,t,n,i).split(/\s+/g).forEach(function(t){i=i.replace(V(t)," ")}),K(this,i.trim())}})},toggleClass:function(t,n){return t?this.each(function(i){var o=r(this),s=Y(this,t,i,K(this));s.split(/\s+/g).forEach(function(t){(n===e?!o.hasClass(t):n)?o.addClass(t):o.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=g.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(r(t).css("margin-top"))||0,n.left-=parseFloat(r(t).css("margin-left"))||0,i.top+=parseFloat(r(e[0]).css("border-top-width"))||0,i.left+=parseFloat(r(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||f.body;t&&!g.test(t.nodeName)&&"static"==r(t).css("position");)t=t.offsetParent;return t})}},r.fn.detach=r.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});r.fn[t]=function(i){var o,s=this[0];return i===e?k(s)?s["inner"+n]:M(s)?s.documentElement["scroll"+n]:(o=this.offset())&&o[t]:this.each(function(e){s=r(this),s.css(t,Y(this,i,e,s[t]()))})}}),x.forEach(function(n,i){var o=i%2;r.fn[n]=function(){var n,a,s=r.map(arguments,function(t){var i=[];return n=$(t),"array"==n?(t.forEach(function(t){return t.nodeType!==e?i.push(t):r.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(N.fragment(t)))}),i):"object"==n||null==t?t:N.fragment(t)}),u=this.length>1;return s.length<1?this:this.each(function(e,n){a=o?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var c=r.contains(f.documentElement,a);s.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!a)return r(e).remove();a.insertBefore(e,n),c&&tt(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},r.fn[o?n+"To":"insert"+(i?"Before":"After")]=function(t){return r(t)[n](this),this}}),N.Z.prototype=X.prototype=r.fn,N.uniq=P,N.deserializeValue=Q,r.zepto=N,r}();return t.Zepto=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,r){if(e=d(e),e.ns)var i=m(e.ns);return(a[h(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!r||t.sel==r)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function m(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function g(t,e){return t.del&&!f&&t.e in c||!!e}function v(t){return l[t]||f&&c[t]||t}function y(t,n,i,o,s,u,f){var c=h(t),p=a[c]||(a[c]=[]);n.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(i);var a=d(n);a.fn=i,a.sel=s,a.e in l&&(i=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?a.fn.apply(this,arguments):void 0}),a.del=u;var c=u||i;a.proxy=function(e){if(e=T(e),!e.isImmediatePropagationStopped()){e.data=o;var n=c.apply(t,e._args==r?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},a.i=p.length,p.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,g(a,f))})}function x(t,e,n,r,i){var o=h(t);(e||"").split(/\s/).forEach(function(e){p(t,e,n,r).forEach(function(e){delete a[o][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,g(e,i))})})}function T(t,n){return(n||!t.isDefaultPrevented)&&(n||(n=t),e.each(w,function(e,r){var i=n[e];t[e]=function(){return this[r]=b,i&&i.apply(n,arguments)},t[r]=E}),t.timeStamp||(t.timeStamp=Date.now()),(n.defaultPrevented!==r?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=b)),t}function S(t){var e,n={originalEvent:t};for(e in t)j.test(e)||t[e]===r||(n[e]=t[e]);return T(n,t)}var r,n=1,i=Array.prototype.slice,o=e.isFunction,s=function(t){return"string"==typeof t},a={},u={},f="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:x},e.proxy=function(t,n){var r=2 in arguments&&i.call(arguments,2);if(o(t)){var a=function(){return t.apply(n,r?r.concat(i.call(arguments)):arguments)};return a._zid=h(t),a}if(s(n))return r?(r.unshift(t[n],t),e.proxy.apply(null,r)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var b=function(){return!0},E=function(){return!1},j=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,a,u,f){var c,l,h=this;return t&&!s(t)?(e.each(t,function(t,e){h.on(t,n,a,e,f)}),h):(s(n)||o(u)||u===!1||(u=a,a=n,n=r),(u===r||a===!1)&&(u=a,a=r),u===!1&&(u=E),h.each(function(r,o){f&&(c=function(t){return x(o,t.type,u),u.apply(this,arguments)}),n&&(l=function(t){var r,s=e(t.target).closest(n,o).get(0);return s&&s!==o?(r=e.extend(S(t),{currentTarget:s,liveFired:o}),(c||u).apply(s,[r].concat(i.call(arguments,1)))):void 0}),y(o,t,u,a,n,l||c)}))},e.fn.off=function(t,n,i){var a=this;return t&&!s(t)?(e.each(t,function(t,e){a.off(t,n,e)}),a):(s(n)||o(i)||i===!1||(i=n,n=r),i===!1&&(i=E),a.each(function(){x(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=s(t)||e.isPlainObject(t)?e.Event(t):T(t),t._args=n,this.each(function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var r,i;return this.each(function(o,a){r=S(s(t)?e.Event(t):t),r._args=n,r.target=a,e.each(p(a,t.type||t),function(t,e){return i=e.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){s(t)||(e=t,t=e.type);var n=document.createEvent(u[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),T(n)}}(e),function(e){function p(t,n,r){var i=e.Event(n);return e(t).trigger(i,r),!i.isDefaultPrevented()}function d(t,e,n,i){return t.global?p(e||r,n,i):void 0}function m(t){t.global&&0===e.active++&&d(t,null,"ajaxStart")}function g(t){t.global&&!--e.active&&d(t,null,"ajaxStop")}function v(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||d(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void d(e,n,"ajaxSend",[t,e])}function y(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolveWith(i,[t,o,e]),d(n,i,"ajaxSuccess",[e,n,t]),b(o,e,n)}function x(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectWith(o,[n,e,t]),d(r,o,"ajaxError",[n,r,t||e]),b(e,n,r)}function b(t,e,n){var r=n.context;n.complete.call(r,e,t),d(n,r,"ajaxComplete",[e,n]),g(n)}function E(t,e,n){if(n.dataFilter==j)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function j(){}function w(t){return t&&(t=t.split(";",2)[0]),t&&(t==c?"html":t==f?"json":a.test(t)?"script":u.test(t)&&"xml")||"text"}function T(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function S(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=T(t.url,t.data),t.data=void 0)}function C(t,n,r,i){return e.isFunction(n)&&(i=r,r=n,n=void 0),e.isFunction(r)||(i=r,r=void 0),{url:t,data:n,success:r,dataType:i}}function O(t,n,r,i){var o,s=e.isArray(n),a=e.isPlainObject(n);e.each(n,function(n,u){o=e.type(u),i&&(n=r?i:i+"["+(a||"object"==o||"array"==o?n:"")+"]"),!i&&s?t.add(u.name,u.value):"array"==o||!r&&"object"==o?O(t,u,r,n):t.add(n,u)})}var i,o,n=+new Date,r=t.document,s=/)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,u=/^(?:text|application)\/xml/i,f="application/json",c="text/html",l=/^\s*$/,h=r.createElement("a");h.href=t.location.href,e.active=0,e.ajaxJSONP=function(i,o){if(!("type"in i))return e.ajax(i);var c,p,s=i.jsonpCallback,a=(e.isFunction(s)?s():s)||"Zepto"+n++,u=r.createElement("script"),f=t[a],l=function(t){e(u).triggerHandler("error",t||"abort")},h={abort:l};return o&&o.promise(h),e(u).on("load error",function(n,r){clearTimeout(p),e(u).off().remove(),"error"!=n.type&&c?y(c[0],h,i,o):x(null,r||"error",h,i,o),t[a]=f,c&&e.isFunction(f)&&f(c[0]),f=c=void 0}),v(h,i)===!1?(l("abort"),h):(t[a]=function(){c=arguments},u.src=i.url.replace(/\?(.+)=\?/,"?$1="+a),r.head.appendChild(u),i.timeout>0&&(p=setTimeout(function(){l("timeout")},i.timeout)),h)},e.ajaxSettings={type:"GET",beforeSend:j,success:j,error:j,complete:j,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:f,xml:"application/xml, text/xml",html:c,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:j},e.ajax=function(n){var u,f,s=e.extend({},n||{}),a=e.Deferred&&e.Deferred();for(i in e.ajaxSettings)void 0===s[i]&&(s[i]=e.ajaxSettings[i]);m(s),s.crossDomain||(u=r.createElement("a"),u.href=s.url,u.href=u.href,s.crossDomain=h.protocol+"//"+h.host!=u.protocol+"//"+u.host),s.url||(s.url=t.location.toString()),(f=s.url.indexOf("#"))>-1&&(s.url=s.url.slice(0,f)),S(s);var c=s.dataType,p=/\?.+=\?/.test(s.url);if(p&&(c="jsonp"),s.cache!==!1&&(n&&n.cache===!0||"script"!=c&&"jsonp"!=c)||(s.url=T(s.url,"_="+Date.now())),"jsonp"==c)return p||(s.url=T(s.url,s.jsonp?s.jsonp+"=?":s.jsonp===!1?"":"callback=?")),e.ajaxJSONP(s,a);var P,d=s.accepts[c],g={},b=function(t,e){g[t.toLowerCase()]=[t,e]},C=/^([\w-]+:)\/\//.test(s.url)?RegExp.$1:t.location.protocol,N=s.xhr(),O=N.setRequestHeader;if(a&&a.promise(N),s.crossDomain||b("X-Requested-With","XMLHttpRequest"),b("Accept",d||"*/*"),(d=s.mimeType||d)&&(d.indexOf(",")>-1&&(d=d.split(",",2)[0]),N.overrideMimeType&&N.overrideMimeType(d)),(s.contentType||s.contentType!==!1&&s.data&&"GET"!=s.type.toUpperCase())&&b("Content-Type",s.contentType||"application/x-www-form-urlencoded"),s.headers)for(o in s.headers)b(o,s.headers[o]);if(N.setRequestHeader=b,N.onreadystatechange=function(){if(4==N.readyState){N.onreadystatechange=j,clearTimeout(P);var t,n=!1;if(N.status>=200&&N.status<300||304==N.status||0==N.status&&"file:"==C){if(c=c||w(s.mimeType||N.getResponseHeader("content-type")),"arraybuffer"==N.responseType||"blob"==N.responseType)t=N.response;else{t=N.responseText;try{t=E(t,c,s),"script"==c?(1,eval)(t):"xml"==c?t=N.responseXML:"json"==c&&(t=l.test(t)?null:e.parseJSON(t))}catch(r){n=r}if(n)return x(n,"parsererror",N,s,a)}y(t,N,s,a)}else x(N.statusText||null,N.status?"error":"abort",N,s,a)}},v(N,s)===!1)return N.abort(),x(null,"abort",N,s,a),N;var A="async"in s?s.async:!0;if(N.open(s.type,s.url,A,s.username,s.password),s.xhrFields)for(o in s.xhrFields)N[o]=s.xhrFields[o];for(o in g)O.apply(N,g[o]);return s.timeout>0&&(P=setTimeout(function(){N.onreadystatechange=j,N.abort(),x(null,"timeout",N,s,a)},s.timeout)),N.send(s.data?s.data:null),N},e.get=function(){return e.ajax(C.apply(null,arguments))},e.post=function(){var t=C.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=C.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,r){if(!this.length)return this;var a,i=this,o=t.split(/\s/),u=C(t,n,r),f=u.success;return o.length>1&&(u.url=o[0],a=o[1]),u.success=function(t){i.html(a?e("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ").html(t.replace(s,"")).find(a):t),f&&f.apply(i,arguments)},e.ajax(u),this};var N=encodeURIComponent;e.param=function(t,n){var r=[];return r.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(N(t)+"="+N(n))},O(r,t,n),r.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],i=function(t){return t.forEach?t.forEach(i):void r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodeName.toLowerCase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&i(t(o).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;t.getComputedStyle=function(t,e){try{return n(t,e)}catch(r){return null}}}}(),e}); \ No newline at end of file diff --git a/docs/js/menu-wc.js b/docs/js/menu-wc.js deleted file mode 100644 index c984c09d9..000000000 --- a/docs/js/menu-wc.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - - - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -customElements.define('compodoc-menu', function (_HTMLElement) { - _inherits(_class, _HTMLElement); - - function _class() { - _classCallCheck(this, _class); - - var _this = _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).call(this)); - - _this.isNormalMode = _this.getAttribute('mode') === 'normal'; - return _this; - } - - _createClass(_class, [{ - key: 'connectedCallback', - value: function connectedCallback() { - this.render(this.isNormalMode); - } - }, { - key: 'render', - value: function render(isNormalMode) { - let tp = lithtml.html( -'' -); - this.innerHTML = tp.strings; - } - }]); - - return _class; -}(HTMLElement)); \ No newline at end of file diff --git a/docs/js/menu.js b/docs/js/menu.js deleted file mode 100644 index 2b94b71e1..000000000 --- a/docs/js/menu.js +++ /dev/null @@ -1,235 +0,0 @@ -document.addEventListener('DOMContentLoaded', function() { - var menuCollapsed = false, - mobileMenu = document.getElementById('mobile-menu'); - - var localContextInUrl = ''; - - if (COMPODOC_CURRENT_PAGE_CONTEXT !== '') { - localContextInUrl = localContextInUrl; - switch (COMPODOC_CURRENT_PAGE_CONTEXT) { - case 'additional-page': - localContextInUrl = 'additional-documentation' - break; - case 'class': - localContextInUrl = 'classes' - break; - case 'miscellaneous-functions': - case 'miscellaneous-variables': - case 'miscellaneous-typealiases': - case 'miscellaneous-enumerations': - localContextInUrl = 'miscellaneous'; - default: - break; - } - } - - function hasClass(el, cls) { - return el.className && new RegExp("(\\s|^)" + cls + "(\\s|$)").test(el.className); - } - - var processLink = function(link, url) { - if (url.charAt(0) !== '.') { - var prefix = ''; - switch(COMPODOC_CURRENT_PAGE_DEPTH) { - case 5: - prefix = '../../../../../'; - break; - case 4: - prefix = '../../../../'; - break; - case 3: - prefix = '../../../'; - break; - case 2: - prefix = '../../'; - break; - case 1: - prefix = '../'; - break; - case 0: - prefix = './'; - break; - } - link.setAttribute('href', prefix + url); - } - } - - var processMenuLinks = function(links, dontAddClass) { - for (var i = 0; i < links.length; i++) { - var link = links[i]; - var linkHref = link.getAttribute('href'); - if (linkHref) { - var linkHrefFile = linkHref.substr(linkHref.lastIndexOf('/') + 1, linkHref.length); - if (linkHrefFile.toLowerCase() === COMPODOC_CURRENT_PAGE_URL.toLowerCase() - && link.innerHTML.indexOf('Getting started') == -1 - && !dontAddClass - && linkHref.toLowerCase().indexOf(localContextInUrl.toLowerCase()) !== -1 ) { - link.classList.add('active'); - } - processLink(link, linkHref); - } - } - } - var chapterLinks = document.querySelectorAll('[data-type="chapter-link"]'); - processMenuLinks(chapterLinks); - var entityLinks = document.querySelectorAll('[data-type="entity-link"]'); - processMenuLinks(entityLinks); - var indexLinks = document.querySelectorAll('[data-type="index-link"]'); - processMenuLinks(indexLinks, true); - var entityLogos = document.querySelectorAll('[data-type="compodoc-logo"]'); - var processLogos = function(entityLogo) { - for (var i = 0; i < entityLogos.length; i++) { - var entityLogo = entityLogos[i]; - if (entityLogo) { - var url = entityLogo.getAttribute('data-src'); - if (url.charAt(0) !== '.') { - var prefix = ''; - switch(COMPODOC_CURRENT_PAGE_DEPTH) { - case 5: - prefix = '../../../../../'; - break; - case 4: - prefix = '../../../../'; - break; - case 3: - prefix = '../../../'; - break; - case 2: - prefix = '../../'; - break; - case 1: - prefix = '../'; - break; - case 0: - prefix = './'; - break - } - entityLogo.src = prefix + url; - } - } - } - } - processLogos(entityLogos); - - setTimeout(function() { - document.getElementById('btn-menu').addEventListener('click', function() { - if (menuCollapsed) { - mobileMenu.style.display = 'none'; - } else { - mobileMenu.style.display = 'block'; - document.getElementsByTagName('body')[0].style['overflow-y'] = 'hidden'; - } - menuCollapsed = !menuCollapsed; - }); - - /** - * Native bootstrap doesn't wait DOMContentLoaded event to start his job, re do it here - */ - var Collapses = document.querySelectorAll('[data-toggle="collapse"]'); - for (var o = 0, cll = Collapses.length; o < cll; o++) { - var collapse = Collapses[o], - options = {}; - options.duration = collapse.getAttribute('data-duration'); - new Collapse(collapse, options); - } - - // collapse menu - var classnameMenuToggler = document.getElementsByClassName('menu-toggler'), - faAngleUpClass = 'ion-ios-arrow-up', - faAngleDownClass = 'ion-ios-arrow-down', - toggleItemMenu = function(e) { - var element = $(e.target), - parent = element[0].parentNode, - parentLink, - elementIconChild; - if (parent) { - if (!$(parent).hasClass('linked')) { - e.preventDefault(); - } else { - parentLink = parent.parentNode; - if (parentLink && element.hasClass('link-name')) { - $(parentLink).trigger('click'); - } - } - elementIconChild = parent.getElementsByClassName(faAngleUpClass)[0]; - if (!elementIconChild) { - elementIconChild = parent.getElementsByClassName(faAngleDownClass)[0]; - } - if (elementIconChild) { - elementIconChild = $(elementIconChild) - if (elementIconChild.hasClass(faAngleUpClass)) { - elementIconChild.addClass(faAngleDownClass); - elementIconChild.removeClass(faAngleUpClass); - } else { - elementIconChild.addClass(faAngleUpClass); - elementIconChild.removeClass(faAngleDownClass); - } - } - } - }; - - for (var i = 0; i < classnameMenuToggler.length; i++) { - classnameMenuToggler[i].addEventListener('click', toggleItemMenu, false); - } - - // Scroll to active link - var menus = document.querySelectorAll('.menu'), - i = 0, - len = menus.length, - activeMenu, - activeMenuClass, - activeLink; - - for (i; i/g, '>').replace(/"/g, '"'); - } - - function foundLazyModuleWithPath(path) { - //path is like app/customers/customers.module#CustomersModule - var split = path.split('#'), - lazyModulePath = split[0], - lazyModuleName = split[1]; - return lazyModuleName; - } - - function getBB(selection) { - selection.each(function(d){d.bbox = this.getBBox();}) - } - - var test_cases, - test_case, - test_case_num, - engine; - - var tree = ROUTES_INDEX; - - function cleanStringChildren(obj) { - for (var property in obj) { - if (obj.hasOwnProperty(property)) { - if (property === 'children' && typeof obj[property] === 'object') { - for (var i = obj[property].length - 1; i >= 0 ; i--) { - if (typeof obj[property][i] === 'string') { - obj[property].splice(i, 1); - } - } - } - if (typeof obj[property] === 'object') { - cleanStringChildren(obj[property]); - } - } - } - } - cleanStringChildren(tree); - - engine = d3.layout.tree().setNodeSizes(true); - - engine.spacing(function(a, b) { - return a.parent == b.parent ? - 0 : engine.rootXSize(); - }) - - engine.nodeSize(function(d) { - return [document.getElementById(d.id).getBBox()["height"] + 70, document.getElementById(d.id).getBBox()["width"] + 30]; - }); - - var nodes = d3.layout.hierarchy()(tree), - - svg = d3.select("#body-routes").append('svg'), - svg_g = svg.append("g"), - svg_p = svg.append("g"), - last_id = 0, - - node = svg_g.selectAll(".node") - .data(nodes, function(d) { - return d.id || (d.id = ++last_id); - }) - .enter().append("g") - .attr("class", "node"); - - svg - .attr('id', 'main') - - svg_g - .attr("transform", "translate(20,0)") - .attr('id', 'main-group') - - svg_p - .attr("transform", "translate(20,0)") - .attr('id', 'paths') - - var infos_group = node.append("g") - .attr({ - "id": function(d) { - return d.id; - }, - dx: 0, - dy: 0, - }) - - //Node icon - infos_group.append("text") - .attr('font-family', 'Ionicons') - .attr("y", 5) - .attr("x", 0) - .attr('class', function(d) { - return d.children || d._children - ? "icon has-children" - : "icon"; - }) - .attr('font-size', function(d) { - return '15px' - }).text(function(d) { - return '\uf183' - }); - - //node infos - infos_group.append("svg:text") - .attr("x", function(d) { - return 0; - }) - .attr("y", function(d) { - return 10; - }) - .attr("dy", ".35em") - .attr('class', 'text') - .attr("text-anchor", function(d) { - return "start"; - }).html(function(d) { - // if kind === module name + module - // if kind === component component + path - var _name = ''; - if (d.kind === 'module') { - if (d.module) { - _name += '' + d.module + ''; - if (d.name) { - _name += '' + d.name + ''; - } - } else { - _name += '' + htmlEntities(d.name) + ''; - } - } else if (d.kind === 'component') { - _name += '' + d.path + '' - _name += '' + d.component + '' - if (d.outlet) { - _name += '<outlet> : ' + d.outlet + '' - } - } else { - _name += '/' + d.path + '' - if (d.component) { - _name += '' + d.component + '' - } - if (d.loadChildren) { - var moduleName = foundLazyModuleWithPath(d.loadChildren); - _name += '' + moduleName + '' - } - if (d.canActivate) { - _name += '✓ canActivate' - } - if (d.canDeactivate) { - _name += '×  canDeactivate' - } - if (d.canActivateChild) { - _name += '✓ canActivateChild' - } - if (d.canLoad) { - _name += '→ canLoad' - } - if (d.redirectTo) { - _name += '→ ' + d.redirectTo + '' - } - if (d.pathMatch) { - _name += '> ' + d.pathMatch + '' - } - if (d.outlet) { - _name += '<outlet> : ' + d.outlet + '' - } - } - return _name; - }) - .call(getBB); - - // - // Node lazy loaded ? - // - infos_group.append('svg:text') - .attr("y", function(d) { - return 45; - }) - .attr("x", function(d) { - return -18; - }) - .attr('font-family', 'Ionicons') - .attr('class', function(d) { - return "icon"; - }) - .attr('font-size', function(d) { - return '15px' - }).text(function(d) { - var _text = ''; - if (d.loadChildren) { - _text = '\uf4c1'; - } - if (d.guarded) { - _text = '\uf1b0'; - } - return _text; - }); - - //Node text background - infos_group.insert("rect","text") - .attr("width", function(d){ - return d.bbox.width; - }) - .attr("height", function(d){ - return d.bbox.height; - }) - .attr("y", function(d) { - return 15; - }) - .style("fill", "white") - .style("fill-opacity", 0.75); - - nodes = engine.nodes(tree); - - function node_extents(n) { - return [n.x - n.x_size / 2, n.y, - n.x + n.x_size / 2, n.y + n.y_size - ]; - } - var root_extents = node_extents(nodes[0]); - var xmin = root_extents[0], - ymin = root_extents[1], - xmax = root_extents[2], - ymax = root_extents[3], - area_sum = (xmax - xmin) * (ymax - ymin), - x_size_min = nodes[0].x_size, - y_size_min = nodes[0].y_size; - - nodes.slice(1).forEach(function(n) { - var ne = node_extents(n); - xmin = Math.min(xmin, ne[0]); - ymin = Math.min(ymin, ne[1]); - xmax = Math.max(xmax, ne[2]); - ymax = Math.max(ymax, ne[3]); - area_sum += (ne[2] - ne[0]) * (ne[3] - ne[1]); - x_size_min = Math.min(x_size_min, n.x_size); - y_size_min = Math.min(y_size_min, n.y_size); - }); - - var area_ave = area_sum / nodes.length; - var scale = 80 / Math.sqrt(area_ave); - - function svg_x(node_y) { - return (node_y - ymin); - } - - function svg_y(node_x) { - return (node_x - xmin) * scale; - } - - - var nodebox_right_margin = Math.min(x_size_min * scale, 10); - var nodebox_vertical_margin = Math.min(y_size_min * scale, 3); - - node.attr("transform", function(d) { - return "translate(" + svg_x(d.y) + "," + svg_y(d.x) + ")"; - }) - - var diagonal = d3.svg.diagonal() - .projection(function(d) { - return [svg_x(d.y), svg_y(d.x)]; - }); - - var links = engine.links(nodes); - var links = svg_p.selectAll(".link") - .data(links) - .enter().append("path") - .attr("class", "link") - .attr("d", diagonal); - - var _svg = document.getElementById('main'), - main_g = _svg.childNodes[0] - - _svg.removeChild(main_g); - _svg.appendChild(main_g); - - svg.attr({ - width: document.getElementById('main-group').getBBox()['width'] + 30, - height: document.getElementById('main-group').getBBox()['height'] + 50, - }); -}); diff --git a/docs/js/search/lunr.min.js b/docs/js/search/lunr.min.js deleted file mode 100644 index f45a81eb8..000000000 --- a/docs/js/search/lunr.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(){var t,l,c,e,r,h,d,f,p,y,m,g,x,v,w,Q,k,S,E,L,b,P,T,O,I,i,n,s,z=function(e){var t=new z.Builder;return t.pipeline.add(z.trimmer,z.stopWordFilter,z.stemmer),t.searchPipeline.add(z.stemmer),e.call(t,t),t.build()};z.version="2.3.5",z.utils={},z.utils.warn=(t=this,function(e){t.console&&console.warn&&console.warn(e)}),z.utils.asString=function(e){return null==e?"":e.toString()},z.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i=this.length)return z.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},z.QueryLexer.prototype.width=function(){return this.pos-this.start},z.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},z.QueryLexer.prototype.backup=function(){this.pos-=1},z.QueryLexer.prototype.acceptDigitRun=function(){for(var e,t;47<(t=(e=this.next()).charCodeAt(0))&&t<58;);e!=z.QueryLexer.EOS&&this.backup()},z.QueryLexer.prototype.more=function(){return this.pos', { - 'class': 'search-results-group' - }); - var finalPropertyLabel = ''; - var propertyLabels = property.split('-'); - - if (propertyLabels.length === 2 && propertyLabels[0] !== 'miscellaneous' && propertyLabels[0] !== 'additional') { - finalPropertyLabel = propertyLabels[0].charAt(0).toUpperCase() + propertyLabels[0].substring(1) + ' - ' + propertyLabels[1].charAt(0).toUpperCase() + propertyLabels[1].substring(1) + ' (' + groups[property].results.length + ')'; - } else if (propertyLabels[0] === 'additional') { - finalPropertyLabel = 'Additional pages' + ' (' + groups[property].results.length + ')' - } else { - finalPropertyLabel = propertyLabels[0].charAt(0).toUpperCase() + propertyLabels[0].substring(1) + ' (' + groups[property].results.length + ')' - } - var $groupTitle = $('

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ', { - 'text': finalPropertyLabel - }); - $groupTitle.appendTo($li); - - var $ulResults = $('

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Not a member? - Register -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Not a member? Register

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - diff --git a/libs/auth/src/lib/oauth.init.ts b/libs/auth/src/lib/oauth.init.ts index 2d50b2b51..23326944c 100644 --- a/libs/auth/src/lib/oauth.init.ts +++ b/libs/auth/src/lib/oauth.init.ts @@ -1,4 +1,4 @@ -import { JwksValidationHandler, OAuthService } from 'angular-oauth2-oidc'; +import { OAuthService } from 'angular-oauth2-oidc'; import { Store } from '@ngxs/store'; import { LoginSuccess } from './auth.actions'; import { AuthorizationErrorResponse } from './oauth.errors'; @@ -16,13 +16,14 @@ export function initializeAuth(oauthService: OAuthService, store: Store) { console.log(`Error Code: ${err.error}, Error Description: ${err.error_description}`); }, }); - // (window).loginTryed = true; if (oauthService.hasValidAccessToken()) { // This is called when using ImplicitFlow or page reload, no effect for ROPC Flow - console.log('hasValidAccessToken'); + console.log('yes ValidAccessToken'); const profile: any = oauthService.getIdentityClaims(); store.dispatch(new LoginSuccess(profile)); + } else { + console.log('no ValidAccessToken'); } return true; // need to return. }; diff --git a/libs/auth/tsconfig.lib.json b/libs/auth/tsconfig.lib.json index f0f9d419b..92fd35c66 100644 --- a/libs/auth/tsconfig.lib.json +++ b/libs/auth/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/auth/tslint.json b/libs/auth/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/auth/tslint.json +++ b/libs/auth/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/breadcrumbs/jest.config.js b/libs/breadcrumbs/jest.config.js index 37e8ee42b..62ab8c7ab 100644 --- a/libs/breadcrumbs/jest.config.js +++ b/libs/breadcrumbs/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'breadcrumbs', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/breadcrumbs' + coverageDirectory: '../../coverage/libs/breadcrumbs', }; diff --git a/libs/breadcrumbs/src/lib/breadcrumbs.component.html b/libs/breadcrumbs/src/lib/breadcrumbs.component.html index 48fb2ee31..f3f661b01 100644 --- a/libs/breadcrumbs/src/lib/breadcrumbs.component.html +++ b/libs/breadcrumbs/src/lib/breadcrumbs.component.html @@ -1,6 +1,12 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ title }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ crumb.name }} chevron_right diff --git a/libs/breadcrumbs/tsconfig.lib.json b/libs/breadcrumbs/tsconfig.lib.json index ee9723209..7a2955255 100644 --- a/libs/breadcrumbs/tsconfig.lib.json +++ b/libs/breadcrumbs/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/breadcrumbs/tslint.json b/libs/breadcrumbs/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/breadcrumbs/tslint.json +++ b/libs/breadcrumbs/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/chat-box/README.md b/libs/chat-box/README.md index 3aa9ec8a1..9f2f8c09a 100644 --- a/libs/chat-box/README.md +++ b/libs/chat-box/README.md @@ -1,13 +1,11 @@ -Chat-Box -======== +# Chat-Box ### Goals -* hybrid conversations with bots, users and groups. -* multiple active conversations -* save and retrieve active conversations - +- hybrid conversations with bots, users and groups. +- multiple active conversations +- save and retrieve active conversations TODO -multiple conversations inspired by +multiple conversations inspired by https://www.weave.works/ diff --git a/libs/chat-box/jest.config.js b/libs/chat-box/jest.config.js index 29f0f140a..7b1e5a1cf 100644 --- a/libs/chat-box/jest.config.js +++ b/libs/chat-box/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'chat-box', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/chat-box' + coverageDirectory: '../../coverage/libs/chat-box', }; diff --git a/libs/chat-box/src/lib/chat-box.component.html b/libs/chat-box/src/lib/chat-box.component.html index ad0d06c92..001308443 100644 --- a/libs/chat-box/src/lib/chat-box.component.html +++ b/libs/chat-box/src/lib/chat-box.component.html @@ -1,23 +1,30 @@ - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - ChatBox - - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + ChatBox + - + @@ -25,32 +32,28 @@ Preferences - - Voice - + Voice - - Other - + Other

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TODO: Other Settings

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ message.render() }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -




                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +



                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -58,11 +61,16 @@ keyboard_voice - + send -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - diff --git a/libs/chat-box/src/lib/chat-box.component1.html b/libs/chat-box/src/lib/chat-box.component1.html index db9a00c49..c378fabb6 100644 --- a/libs/chat-box/src/lib/chat-box.component1.html +++ b/libs/chat-box/src/lib/chat-box.component1.html @@ -1,8 +1,13 @@ - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -11,21 +16,26 @@ CHAT
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - Chat - - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + Chat +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ message.content }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -34,12 +44,17 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            keyboard_voice - + send
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -49,30 +64,29 @@ HELP
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - Help - - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + Help +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - {{ voice.name }} - + + {{ voice.name }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - diff --git a/libs/chat-box/src/lib/components/chat-card/chat-card.component.html b/libs/chat-box/src/lib/components/chat-card/chat-card.component.html index ca8a8cfac..862dfe83d 100644 --- a/libs/chat-box/src/lib/components/chat-card/chat-card.component.html +++ b/libs/chat-box/src/lib/components/chat-card/chat-card.component.html @@ -1,3 +1 @@ -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - chat-card works! -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            chat-card works!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/chat-box/src/lib/components/text-to-speech-preferences/text-to-speech-preferences.component.html b/libs/chat-box/src/lib/components/text-to-speech-preferences/text-to-speech-preferences.component.html index b217d146a..1ba3ac32f 100644 --- a/libs/chat-box/src/lib/components/text-to-speech-preferences/text-to-speech-preferences.component.html +++ b/libs/chat-box/src/lib/components/text-to-speech-preferences/text-to-speech-preferences.component.html @@ -1,31 +1,26 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - {{voice.name}}[{{voice.lang}}] - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Volume - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Rate - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Pitch - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + {{ voice.name }}[{{ voice.lang }}] + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Volume + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Rate + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Pitch + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - diff --git a/libs/chat-box/src/lib/components/typing-indicator/typing-indicator.component.html b/libs/chat-box/src/lib/components/typing-indicator/typing-indicator.component.html index 8bdb4e13d..2a69fe0b5 100644 --- a/libs/chat-box/src/lib/components/typing-indicator/typing-indicator.component.html +++ b/libs/chat-box/src/lib/components/typing-indicator/typing-indicator.component.html @@ -1,6 +1 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/chat-box/src/lib/services/dialogflow.service.ts b/libs/chat-box/src/lib/services/dialogflow.service.ts new file mode 100644 index 000000000..0b9b55386 --- /dev/null +++ b/libs/chat-box/src/lib/services/dialogflow.service.ts @@ -0,0 +1,35 @@ +import {Injectable} from '@angular/core'; +import {HttpClient, HttpHeaders} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import { environment } from '@env/environment'; +import { Dialogflow } from './dialogflow'; + +// TODO: https://github.com/innFactory/react-native-dialogflow/blob/master/js/Dialogflow_V2.js + +@Injectable({ + providedIn: 'root', +}) +export class DialogflowService { + private baseURL = environment.dialogFlow.baseUrl; + private token: string = environment.dialogFlow.apiToken; + private sessionId = + '_' + + Math.random() + .toString(36) + .substr(2, 9); + + constructor(private http: HttpClient) {} + + public getResponse(query: string): Observable { + const data = { + query: query, + lang: 'en', + sessionId: this.sessionId, + }; + return this.http.post(`${this.baseURL}`, data, { + headers: new HttpHeaders({ + Authorization: `Bearer ${this.token}`, + }), + }); + } +} diff --git a/libs/chat-box/src/lib/services/dialogflow.ts b/libs/chat-box/src/lib/services/dialogflow.ts new file mode 100644 index 000000000..4ff78dc2a --- /dev/null +++ b/libs/chat-box/src/lib/services/dialogflow.ts @@ -0,0 +1,47 @@ +export class Parameters {} + +export class Metadata { + intentId: string; + webhookUsed: string; + webhookForSlotFillingUsed: string; + isFallbackIntent: string; + webhookResponseTime: number; + intentName: string; +} + +export class Message { + type: number; + speech: string; +} + +export class Fulfillment { + speech: string; + source: string; + messages: Message[]; +} + +export class Result { + source: string; + resolvedQuery: string; + action: string; + actionIncomplete: boolean; + parameters: Parameters; + contexts: any[]; + metadata: Metadata; + fulfillment: Fulfillment; + score: number; +} + +export class Status { + code: number; + errorType: string; +} + +export class Dialogflow { + id: string; + timestamp: Date; + lang: string; + result: Result; + status: Status; + sessionId: string; +} diff --git a/libs/chat-box/src/lib/services/speech-to-text.service.ts b/libs/chat-box/src/lib/services/speech-to-text.service.ts index db7a3c005..66a1ddc85 100644 --- a/libs/chat-box/src/lib/services/speech-to-text.service.ts +++ b/libs/chat-box/src/lib/services/speech-to-text.service.ts @@ -13,7 +13,7 @@ export class SpeechToTextService { public canUseSpeechRecognition = false; private speechRecognition: any; constructor(private readonly featureService: FeatureService, @Inject(WINDOW) private window: Window) { - this.canUseSpeechRecognition = this.featureService.detectFeature(BrowserFeatureKey.SpeechRecognition).supported; + this.canUseSpeechRecognition = this.featureService.detectFeature(BrowserFeatureKey.SpeechRecognition).supported; if (this.canUseSpeechRecognition) { this.speechRecognition = new SpeechRecognition(); this.speechRecognition.continuous = false; // FIXME: Gecko? diff --git a/libs/chat-box/src/lib/services/text-to-speech.service.ts b/libs/chat-box/src/lib/services/text-to-speech.service.ts index fe0114d8e..cf2824d2c 100644 --- a/libs/chat-box/src/lib/services/text-to-speech.service.ts +++ b/libs/chat-box/src/lib/services/text-to-speech.service.ts @@ -7,7 +7,7 @@ export class TextToSpeechService { public canUseSpeechSynthesis = false; private speechSynthesis: SpeechSynthesis; constructor(private readonly featureService: FeatureService, @Inject(WINDOW) private window: Window) { - this.canUseSpeechSynthesis = this.featureService.detectFeature(BrowserFeatureKey.SpeechSynthesis).supported; + this.canUseSpeechSynthesis = this.featureService.detectFeature(BrowserFeatureKey.SpeechSynthesis).supported; if (this.canUseSpeechSynthesis) { this.speechSynthesis = (window as any).speechSynthesis; } @@ -24,7 +24,6 @@ export class TextToSpeechService { } public async getVoiceList(): Promise { - if ('onvoiceschanged' in speechSynthesis) { await new Promise((resolve, reject) => { this.speechSynthesis.addEventListener('voiceschanged', resolve); diff --git a/libs/chat-box/src/lib/state/chat-box.store.ts b/libs/chat-box/src/lib/state/chat-box.store.ts index 09a74bb32..6fb1ea0e8 100644 --- a/libs/chat-box/src/lib/state/chat-box.store.ts +++ b/libs/chat-box/src/lib/state/chat-box.store.ts @@ -128,9 +128,12 @@ export class ChatBoxState implements NgxsOnInit { @Selector() static getConversationById(id: string) { - return createSelector([ChatBoxState], (state: ChatBoxStateModel) => { - return state.conversations.find(con => con.id === id); - }); + return createSelector( + [ChatBoxState], + (state: ChatBoxStateModel) => { + return state.conversations.find(con => con.id === id); + }, + ); } @Selector() diff --git a/libs/chat-box/tsconfig.lib.json b/libs/chat-box/tsconfig.lib.json index 12f24772b..56a98d469 100644 --- a/libs/chat-box/tsconfig.lib.json +++ b/libs/chat-box/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/chat-box/tslint.json b/libs/chat-box/tslint.json index f30e0930d..b7e253b39 100644 --- a/libs/chat-box/tslint.json +++ b/libs/chat-box/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - ["", "ngx"], - "camelCase" - ], - "component-selector": [ - true, - "element", - ["", "ngx"], - "kebab-case" - ] + "directive-selector": [true, "attribute", ["", "ngx"], "camelCase"], + "component-selector": [true, "element", ["", "ngx"], "kebab-case"] } } diff --git a/libs/clap/README.md b/libs/clap/README.md index 3535359a7..4957e812f 100644 --- a/libs/clap/README.md +++ b/libs/clap/README.md @@ -1,10 +1,13 @@ -Clap -==== -Clap micro-interaction +# Clap +Clap micro-interaction ### TODO + 1. How I Implemented the Medium Clap from Scratch! - * https://medium.com/@yonatandoron/how-i-implemented-the-medium-clap-from-scratch-4a16ac90ad3b + +- https://medium.com/@yonatandoron/how-i-implemented-the-medium-clap-from-scratch-4a16ac90ad3b + 2. Creating Reusable Animations in Angular - * https://netbasal.com/creating-reusable-animations-in-angular-6a2350d6191a + +- https://netbasal.com/creating-reusable-animations-in-angular-6a2350d6191a diff --git a/libs/clap/jest.config.js b/libs/clap/jest.config.js index 335f0c59e..80c5175c5 100644 --- a/libs/clap/jest.config.js +++ b/libs/clap/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'clap', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/clap' + coverageDirectory: '../../coverage/libs/clap', }; diff --git a/libs/clap/src/lib/clap.component.ts b/libs/clap/src/lib/clap.component.ts index c37440d02..951726a3a 100644 --- a/libs/clap/src/lib/clap.component.ts +++ b/libs/clap/src/lib/clap.component.ts @@ -5,18 +5,9 @@ import { debounceTime, mapTo } from 'rxjs/operators'; @Component({ selector: 'ngx-clap', template: ` - - - - - - + + + `, styles: [ ` diff --git a/libs/clap/src/lib/components/counter-bubble.component.ts b/libs/clap/src/lib/components/counter-bubble.component.ts index 2e68ca4d8..3f05b1519 100644 --- a/libs/clap/src/lib/components/counter-bubble.component.ts +++ b/libs/clap/src/lib/components/counter-bubble.component.ts @@ -4,7 +4,9 @@ import { pulseAnimation, slideInAnimation, slideOutAnimation } from '../animatio @Component({ selector: 'ngx-counter-bubble', - template: `+{{counter}}`, + template: ` + +{{ counter }} + `, styles: [ ` :host { diff --git a/libs/clap/tsconfig.lib.json b/libs/clap/tsconfig.lib.json index d8e684b98..0ff5acc23 100644 --- a/libs/clap/tsconfig.lib.json +++ b/libs/clap/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/clap/tslint.json b/libs/clap/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/clap/tslint.json +++ b/libs/clap/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/context-menu/README.md b/libs/context-menu/README.md index f35d7c091..a00f7c9e5 100644 --- a/libs/context-menu/README.md +++ b/libs/context-menu/README.md @@ -9,11 +9,8 @@ ```html - - - - - + + @@ -22,7 +19,5 @@ 3. Apply `[contextMenu]` directive ```html -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Right click me to see the menu -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Right click me to see the menu
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ``` diff --git a/libs/context-menu/jest.config.js b/libs/context-menu/jest.config.js index d06a029d7..df7ec3be3 100644 --- a/libs/context-menu/jest.config.js +++ b/libs/context-menu/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'context-menu', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/context-menu' + coverageDirectory: '../../coverage/libs/context-menu', }; diff --git a/libs/context-menu/tsconfig.lib.json b/libs/context-menu/tsconfig.lib.json index 69ec8abff..bde55db8e 100644 --- a/libs/context-menu/tsconfig.lib.json +++ b/libs/context-menu/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/context-menu/tslint.json b/libs/context-menu/tslint.json index f30e0930d..b7e253b39 100644 --- a/libs/context-menu/tslint.json +++ b/libs/context-menu/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - ["", "ngx"], - "camelCase" - ], - "component-selector": [ - true, - "element", - ["", "ngx"], - "kebab-case" - ] + "directive-selector": [true, "attribute", ["", "ngx"], "camelCase"], + "component-selector": [true, "element", ["", "ngx"], "kebab-case"] } } diff --git a/libs/core/jest.config.js b/libs/core/jest.config.js index e3b2da39e..ffea07231 100644 --- a/libs/core/jest.config.js +++ b/libs/core/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'core', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/core' + coverageDirectory: '../../coverage/libs/core', }; diff --git a/libs/core/src/index.ts b/libs/core/src/index.ts index 5192ee63a..b2fefe3a4 100644 --- a/libs/core/src/index.ts +++ b/libs/core/src/index.ts @@ -1,9 +1,12 @@ export * from './lib/core.module'; +export * from './lib/state/preference.state'; +export * from './lib/state/app.state'; export { PageTitleService } from './lib/services/page-title.service'; export { ServiceWorkerService } from './lib/services/service-worker.service'; export { MediaQueryService } from './lib/services/media-query.service'; export { DeepLinkService } from './lib/services/deep-link.service'; -export { RouterStateData} from './lib/state/custom-router-state.serializer'; +export { RouterStateData } from './lib/state/custom-router-state.serializer'; export { FeatureService, BrowserFeatureKey, BrowserFeature } from './lib/services/feature.service'; export { GoogleAnalyticsService } from './lib/services/google-analytics.service'; +export { PushNotificationService } from './lib/services/push-notification.service'; export { WINDOW } from './lib/services/window.token'; diff --git a/libs/core/src/lib/core.module.ts b/libs/core/src/lib/core.module.ts index 9fa0fdf4f..976802307 100644 --- a/libs/core/src/lib/core.module.ts +++ b/libs/core/src/lib/core.module.ts @@ -3,27 +3,38 @@ import { CommonModule } from '@angular/common'; import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; import { FormlyModule } from '@ngx-formly/core'; import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'; +import { MatSnackBarModule } from '@angular/material/snack-bar'; +import { NgxPageScrollModule } from 'ngx-page-scroll'; import { NgxsModule } from '@ngxs/store'; import { NgxsFormPluginModule } from '@ngxs/form-plugin'; -import { NgxPageScrollModule } from 'ngx-page-scroll'; +import { NgxsStoragePluginModule } from '@ngxs/storage-plugin'; import { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin'; import { NgxsRouterPluginModule, RouterStateSerializer } from '@ngxs/router-plugin'; + import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { library } from '@fortawesome/fontawesome-svg-core'; -import { faTwitter, faGithub, faGoogle } from '@fortawesome/free-brands-svg-icons'; +import { faGithub, faGoogle, faTwitter } from '@fortawesome/free-brands-svg-icons'; import { AuthModule, AuthState } from '@ngx-starter-kit/auth'; -import { NavigatorModule, MenuState } from '@ngx-starter-kit/navigator'; +import { MenuState, NavigatorModule } from '@ngx-starter-kit/navigator'; import { NgxsWebsocketPluginModule } from '@ngx-starter-kit/socketio-plugin'; import { environment } from '@env/environment'; -import { EventBus } from './state/eventbus'; -import { defaultMenu, demoMenu, adminMenu } from './menu-data'; -import { PreferenceState } from './state/preference.state'; + import { InMemoryDataService } from './services/in-memory-data.service'; import { ErrorInterceptor } from './interceptors/error.interceptor'; import { CustomRouterStateSerializer } from './state/custom-router-state.serializer'; -import { WINDOW, _window } from './services/window.token'; -import {MatSnackBarModule} from '@angular/material/snack-bar'; +import { _window, WINDOW } from './services/window.token'; + +import { defaultMenu } from './menu-data'; + +import { AppState } from './state/app.state'; +import { PreferenceState } from './state/preference.state'; + +import { AppHandler } from './state/app.handler'; +import { RouteHandler } from './state/route.handler'; +import { EventBusHandler } from './state/eventbus.handler'; +import { AuthHandler } from './state/auth.handler'; +import { GoogleAnalyticsService } from './services/google-analytics.service'; // Noop handler for factory function export function noop() { @@ -45,7 +56,10 @@ library.add(faTwitter, faGithub, faGoogle); MatSnackBarModule, NgxPageScrollModule, NavigatorModule.forRoot(defaultMenu), - NgxsModule.forRoot([AuthState, MenuState, PreferenceState]), + NgxsModule.forRoot([AuthState, MenuState, PreferenceState, AppState]), + NgxsStoragePluginModule.forRoot({ + key: ['preference', 'app.installed'], + }), NgxsReduxDevtoolsPluginModule.forRoot({ disabled: environment.production, // Set to true for prod mode maxAge: 10, @@ -60,12 +74,13 @@ library.add(faTwitter, faGithub, faGoogle); environment.envName === 'mock' ? HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, { passThruUnknownUrl: true, - // delay: 500, + delay: 1000, // apiBase: 'api' }) : [], ], providers: [ + GoogleAnalyticsService, { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, @@ -74,7 +89,7 @@ library.add(faTwitter, faGithub, faGoogle); { provide: APP_INITIALIZER, useFactory: noop, - deps: [EventBus], + deps: [EventBusHandler, RouteHandler, AppHandler, AuthHandler], multi: true, }, { diff --git a/libs/core/src/lib/services/google-analytics.service.ts b/libs/core/src/lib/services/google-analytics.service.ts index dad364b61..faf76b749 100644 --- a/libs/core/src/lib/services/google-analytics.service.ts +++ b/libs/core/src/lib/services/google-analytics.service.ts @@ -6,6 +6,7 @@ export enum EventCategory { SideNav = 'sideNav', Outbound = 'outboundLink', Login = 'login', + Install = 'install', } export enum EventAction { @@ -13,12 +14,11 @@ export enum EventAction { Click = 'click', } -/** - * EventBus will use this service - */ -@Injectable({ - providedIn: 'root', -}) +// FIXME: to keep GoogleAnalyticsService injected before AuthHandler +@Injectable() +// @Injectable({ +// providedIn: 'root', +// }) export class GoogleAnalyticsService { constructor(public router: Router) {} @@ -37,7 +37,6 @@ export class GoogleAnalyticsService { /** * set user after login success. - * @param userId */ public setUsername(userId: string) { if (typeof ga === 'function') { @@ -47,7 +46,6 @@ export class GoogleAnalyticsService { /** * set page after navigation success - * @param path */ public setPage(path: string) { if (typeof ga === 'function') { diff --git a/libs/core/src/lib/services/page-title.service.spec.ts b/libs/core/src/lib/services/page-title.service.spec.ts index ed657fbaf..f143a07fc 100644 --- a/libs/core/src/lib/services/page-title.service.spec.ts +++ b/libs/core/src/lib/services/page-title.service.spec.ts @@ -14,7 +14,5 @@ describe('PageTitleService', () => { it('should initialize title to empty string', inject([PageTitleService], (service: PageTitleService) => { expect(service).toBeTruthy(); - expect(service._title).toEqual(''); - expect(service.title).toEqual(''); })); }); diff --git a/libs/core/src/lib/services/page-title.service.ts b/libs/core/src/lib/services/page-title.service.ts index c15f913eb..124a822d5 100644 --- a/libs/core/src/lib/services/page-title.service.ts +++ b/libs/core/src/lib/services/page-title.service.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; import { Title } from '@angular/platform-browser'; -import { Store } from '@ngxs/store'; /** * EventBus will use this service @@ -11,7 +10,7 @@ import { Store } from '@ngxs/store'; export class PageTitleService { private readonly defaultTitle; - constructor(private store: Store, private bodyTitle: Title) { + constructor(private bodyTitle: Title) { this.defaultTitle = bodyTitle.getTitle() || 'WebApp'; } diff --git a/libs/notifications/src/lib/push-notification.service.spec.ts b/libs/core/src/lib/services/push-notification.service.spec.ts similarity index 100% rename from libs/notifications/src/lib/push-notification.service.spec.ts rename to libs/core/src/lib/services/push-notification.service.spec.ts diff --git a/libs/core/src/lib/services/push-notification.service.ts b/libs/core/src/lib/services/push-notification.service.ts new file mode 100644 index 000000000..dd8f460b8 --- /dev/null +++ b/libs/core/src/lib/services/push-notification.service.ts @@ -0,0 +1,79 @@ +import { Injectable } from '@angular/core'; +import { SwPush } from '@angular/service-worker'; +import { throwError } from 'rxjs'; +import { environment } from '@env/environment'; +import { catchError, take } from 'rxjs/operators'; +import { HttpClient, HttpErrorResponse } from '@angular/common/http'; + +@Injectable({ + providedIn: 'root', +}) +export class PushNotificationService { + public baseUrl = environment.API_BASE_URL; + private readonly entityPath = 'push'; + private readonly existingSubscription: PushSubscription; + + constructor(private readonly swPush: SwPush, private httpClient: HttpClient) {} + + async register() { + if (!this.swPush.isEnabled) { + return; + } + const existingSubscription = await this.swPush.subscription.pipe(take(1)).toPromise(); + if (existingSubscription) { + return; + } + + const subscription = await this.swPush.requestSubscription({ serverPublicKey: environment.webPush.publicKey }); + const { + endpoint, + keys: { p256dh, auth }, + } = subscription.toJSON(); + console.log('push subscription created', { endpoint, auth, p256dh }); + await this.httpClient + .post(`${this.baseUrl}/${this.entityPath}`, { endpoint, auth, p256dh, topics: ['sumo1', 'sumo2'] }) + .pipe(catchError(this.handleError)) + .toPromise(); + } + + async unregister() { + if (!this.swPush.isEnabled) { + return; + } + + const subscription = await this.swPush.subscription.pipe(take(1)).toPromise(); + + if (subscription) { + console.log('deleting subscription', subscription.endpoint); + await this.httpClient + .delete(`${this.baseUrl}/${this.entityPath}/${encodeURIComponent(subscription.endpoint)}`) + .pipe(catchError(this.handleError)) + .toPromise(); + await subscription.unsubscribe(); + } + } + + async notify(id: string) { + await this.httpClient + .post(`${this.baseUrl}/${this.entityPath}/notify`, { + id: encodeURIComponent(id), + title: 'NGX WebApp Notification', + body: 'test body 321', + }) + .pipe(catchError(this.handleError)) + .toPromise(); + } + + private handleError(error: HttpErrorResponse) { + if (error.error instanceof ErrorEvent) { + // A client-side or network error occurred. Handle it accordingly. + console.error('An error occurred:', error.error.message); + } else { + // The backend returned an unsuccessful response code. + // The response body may contain clues as to what went wrong, + console.error(`Backend returned code ${error.status}, ` + `body was: ${error.error}`); + } + // return an ErrorObservable with a user-facing error message + return throwError('Something bad happened; please try again later.'); + } +} diff --git a/libs/core/src/lib/services/service-worker.service.ts b/libs/core/src/lib/services/service-worker.service.ts index e5c5a02aa..8a2a0ec7c 100644 --- a/libs/core/src/lib/services/service-worker.service.ts +++ b/libs/core/src/lib/services/service-worker.service.ts @@ -10,13 +10,13 @@ import { MatSnackBar } from '@angular/material'; export class ServiceWorkerService { constructor(private swUpdate: SwUpdate, @Inject(WINDOW) private window: Window, private snackBar: MatSnackBar) {} + // TODO: move to appState/eventBus? checkSWUpdate(): void { if (environment.production) { // Subscribe new worker is available this.swUpdate.available.subscribe(event => { // update available: ask the user to reload - const snackBarRef = this.snackBar - .open('Newer version of the app is available', 'Refresh'); + const snackBarRef = this.snackBar.open('Newer version of the app is available', 'Refresh'); snackBarRef.onAction().subscribe(() => { window.location.reload(true); diff --git a/libs/core/src/lib/services/window.token.ts b/libs/core/src/lib/services/window.token.ts index 748c8ebd5..3f0a4da1d 100644 --- a/libs/core/src/lib/services/window.token.ts +++ b/libs/core/src/lib/services/window.token.ts @@ -1,4 +1,4 @@ -import {InjectionToken} from '@angular/core'; +import { InjectionToken } from '@angular/core'; export const WINDOW = new InjectionToken('WindowToken'); diff --git a/libs/core/src/lib/state/app.handler.ts b/libs/core/src/lib/state/app.handler.ts new file mode 100644 index 000000000..73cfe9c78 --- /dev/null +++ b/libs/core/src/lib/state/app.handler.ts @@ -0,0 +1,65 @@ +import { Actions, ofActionSuccessful, Store } from '@ngxs/store'; +import { Inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core'; +import { SwPush } from '@angular/service-worker'; +import { EventCategory, GoogleAnalyticsService } from '../services/google-analytics.service'; +import { AppState, ChangeInstallStatus, ChangeOnlineStatus, IsOffline, IsOnline, SetInstallPrompt } from './app.state'; +import { WINDOW } from '../services/window.token'; + +@Injectable({ + providedIn: 'root', +}) +export class AppHandler { + private renderer: Renderer2; + constructor( + private actions$: Actions, + private store: Store, + private readonly swPush: SwPush, + private analytics: GoogleAnalyticsService, + private rendererFactory: RendererFactory2, + @Inject(WINDOW) private readonly window: Window, + ) { + this.renderer = rendererFactory.createRenderer(this.window, null); + this.renderer.listen(this.window, 'online', () => { + this.store.dispatch([new ChangeOnlineStatus(), new IsOnline()]); + }); + this.renderer.listen(this.window, 'offline', () => { + this.store.dispatch([new ChangeOnlineStatus(), new IsOffline()]); + }); + + const installed = this.store.selectSnapshot(AppState.installed); + if (!installed) { + this.renderer.listen(this.window, 'beforeinstallprompt', event => { + event.preventDefault(); // Prevent default for older Chrome versions to prevent double install prompt + this.analytics.emitEvent(EventCategory.Install, 'available'); + // this.snackBar.open('You can add this PWA to your homescreen', '', {duration: 3000}); + this.store.dispatch(new SetInstallPrompt(event)); + }); + this.renderer.listen(this.window, 'appinstalled', event => { + event.preventDefault(); // Prevent default for older Chrome versions to prevent double install prompt + this.analytics.emitEvent(EventCategory.Install, 'installed'); + this.store.dispatch(new ChangeInstallStatus(true)); + }); + + this.actions$.pipe(ofActionSuccessful(SetInstallPrompt)).subscribe(async (action: SetInstallPrompt) => { + try { + console.log('platforms', action.payload.platforms); + // TODO: const sb = this.snackBar.open('Do you want to install this app?', 'Install', {duration: 5000}) + // sb.onAction().subscribe(() => { //prompt here } + action.payload.prompt(); + const choiceResult = await action.payload.userChoice; + console.log('choiceResult', choiceResult); + this.analytics.emitEvent(EventCategory.Install, choiceResult); + } catch (installError) { + this.analytics.emitEvent(EventCategory.Install, 'errored'); + } + }); + } + + if (this.swPush.isEnabled) { + // subscribe for new messages for testing + this.swPush.messages.subscribe(message => { + console.log('received push notification', message); + }); + } + } +} diff --git a/libs/core/src/lib/state/app.state.ts b/libs/core/src/lib/state/app.state.ts new file mode 100644 index 000000000..d39ee3271 --- /dev/null +++ b/libs/core/src/lib/state/app.state.ts @@ -0,0 +1,85 @@ +import { Action, NgxsOnInit, Selector, State, StateContext } from '@ngxs/store'; +import { Inject } from '@angular/core'; +import { WINDOW } from '../services/window.token'; + +export interface BeforeInstallPromptEvent extends Event { + readonly platforms: string[]; // ["web", "android", "windows"] + readonly userChoice: Promise<'accepted' | 'dismissed'>; + prompt(): void; +} + +export class ChangeOnlineStatus { + static readonly type = '[App] Change Online Status'; +} + +export class ChangeInstallStatus { + static readonly type = '[App] Change Install Status'; + constructor(public payload: boolean) {} +} + +export class SetInstallPrompt { + static readonly type = '[App] Set Install Prompt'; + constructor(public payload: BeforeInstallPromptEvent) {} +} + +export class IsOnline { + static readonly type = '[App] Network Online'; +} + +export class IsOffline { + static readonly type = '[App] Network Offline'; +} + +export interface AppStateModel { + online: boolean; + installPrompt: BeforeInstallPromptEvent; + installed: boolean; +} + +@State({ + name: 'app', + defaults: { + online: window.navigator.onLine, + installPrompt: null, + installed: false, + }, +}) +export class AppState { + constructor(/*@Inject(WINDOW) private readonly window: Window*/) {} + + @Selector() + static isOnline(state: AppStateModel) { + return state.online; + } + + @Selector() + static installPrompt(state: AppStateModel) { + return state.installPrompt; + } + + @Selector() + static installed(state: AppStateModel) { + return state.installed; + } + + @Action(SetInstallPrompt) + setInstallPrompt({ patchState }: StateContext, { payload }: SetInstallPrompt) { + patchState({ + installPrompt: payload, + }); + } + + @Action(ChangeInstallStatus) + changeInstallStatus({ patchState }: StateContext, { payload }: ChangeInstallStatus) { + patchState({ + installed: payload, + }); + } + + @Action(ChangeOnlineStatus) + changeOnlineStatus({ patchState }: StateContext) { + patchState({ + online: window.navigator.onLine, + }); + } +} diff --git a/libs/core/src/lib/state/auth.handler.ts b/libs/core/src/lib/state/auth.handler.ts new file mode 100644 index 000000000..5b7d06d0f --- /dev/null +++ b/libs/core/src/lib/state/auth.handler.ts @@ -0,0 +1,17 @@ +import { Actions, ofActionErrored, ofActionSuccessful } from '@ngxs/store'; +import { Injectable } from '@angular/core'; +import { Login, LoginSuccess } from '@ngx-starter-kit/auth'; +import { GoogleAnalyticsService } from '../services/google-analytics.service'; + +@Injectable({ + providedIn: 'root', +}) +export class AuthHandler { + constructor(private actions$: Actions, private analytics: GoogleAnalyticsService) { + this.actions$.pipe(ofActionSuccessful(Login)).subscribe(action => console.log('Login........Action Successful')); + this.actions$.pipe(ofActionErrored(Login)).subscribe(action => console.log('Login........Action Errored')); + this.actions$.pipe(ofActionSuccessful(LoginSuccess)).subscribe((action: LoginSuccess) => { + this.analytics.setUsername(action.payload.preferred_username); + }); + } +} diff --git a/libs/core/src/lib/state/custom-router-state.serializer.ts b/libs/core/src/lib/state/custom-router-state.serializer.ts index b0a05bf19..1f969370a 100644 --- a/libs/core/src/lib/state/custom-router-state.serializer.ts +++ b/libs/core/src/lib/state/custom-router-state.serializer.ts @@ -22,7 +22,7 @@ export class CustomRouterStateSerializer implements RouterStateSerializer segment.url).join('/')); + breadcrumbs.set(route.data['title'], route.pathFromRoot.flatMap(segment => segment.url).join('/')); } } const { params } = route; diff --git a/libs/core/src/lib/state/eventbus.handler.ts b/libs/core/src/lib/state/eventbus.handler.ts new file mode 100644 index 000000000..bcde46a07 --- /dev/null +++ b/libs/core/src/lib/state/eventbus.handler.ts @@ -0,0 +1,30 @@ +import { Actions, ofActionSuccessful, Store } from '@ngxs/store'; +import { Injectable } from '@angular/core'; +import { + AuthenticateWebSocket, + ConnectWebSocket, + DisconnectWebSocket, + WebSocketConnected, + WebSocketDisconnected, +} from '@ngx-starter-kit/socketio-plugin'; + +@Injectable({ + providedIn: 'root', +}) +export class EventBusHandler { + constructor(private actions$: Actions, private store: Store) { + this.actions$ + .pipe(ofActionSuccessful(ConnectWebSocket)) + .subscribe(action => console.log('ConnectWebSocket........Action Successful')); + this.actions$ + .pipe(ofActionSuccessful(DisconnectWebSocket)) + .subscribe(action => console.log('DisconnectWebSocket........Action Successful')); + this.actions$.pipe(ofActionSuccessful(WebSocketConnected)).subscribe(action => { + console.log('WebSocketConnected........Action Successful'); + this.store.dispatch(new AuthenticateWebSocket()); + }); + this.actions$ + .pipe(ofActionSuccessful(WebSocketDisconnected)) + .subscribe(action => console.log('WebSocketDisconnected........Action Successful')); + } +} diff --git a/libs/core/src/lib/state/eventbus.ts b/libs/core/src/lib/state/eventbus.ts deleted file mode 100644 index 51668d98f..000000000 --- a/libs/core/src/lib/state/eventbus.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { Actions, ofActionErrored, ofActionSuccessful, Store } from '@ngxs/store'; -import { Injectable } from '@angular/core'; -import { Login, LoginSuccess } from '@ngx-starter-kit/auth'; -import { - AuthenticateWebSocket, - ConnectWebSocket, - DisconnectWebSocket, - WebSocketConnected, - WebSocketDisconnected, -} from '@ngx-starter-kit/socketio-plugin'; -import { RouterNavigation } from '@ngxs/router-plugin'; -import { RouterStateData } from '@ngx-starter-kit/core'; -import { distinctUntilChanged, map } from 'rxjs/operators'; -import { PageTitleService } from '../services/page-title.service'; -import { GoogleAnalyticsService } from '../services/google-analytics.service'; - -@Injectable({ - providedIn: 'root', -}) -export class EventBus { - constructor( - private actions$: Actions, - private store: Store, - private analytics: GoogleAnalyticsService, - private pageTitle: PageTitleService, - ) { - this.actions$.pipe(ofActionSuccessful(Login)).subscribe(action => console.log('Login........Action Successful')); - this.actions$.pipe(ofActionErrored(Login)).subscribe(action => console.log('Login........Action Errored')); - this.actions$ - .pipe(ofActionSuccessful(LoginSuccess)) - .subscribe((action: LoginSuccess) => { - this.analytics.setUsername(action.payload.preferred_username); - }); - - this.actions$ - .pipe(ofActionSuccessful(ConnectWebSocket)) - .subscribe(action => console.log('ConnectWebSocket........Action Successful')); - this.actions$ - .pipe(ofActionSuccessful(DisconnectWebSocket)) - .subscribe(action => console.log('DisconnectWebSocket........Action Successful')); - this.actions$.pipe(ofActionSuccessful(WebSocketConnected)).subscribe(action => { - console.log('WebSocketConnected........Action Successful'); - this.store.dispatch(new AuthenticateWebSocket()); - }); - this.actions$ - .pipe(ofActionSuccessful(WebSocketDisconnected)) - .subscribe(action => console.log('WebSocketDisconnected........Action Successful')); - - // FIXME : https://github.com/ngxs/store/issues/542 - this.actions$ - .pipe( - ofActionSuccessful(RouterNavigation), - map((action: RouterNavigation) => action.routerState as any), - distinctUntilChanged((previous: RouterStateData, current: RouterStateData) => { - return previous.url === current.url; - }), - ) - .subscribe(data => { - this.pageTitle.setTitle(data.breadcrumbs); - this.analytics.setPage(data.url); - }); - } -} diff --git a/libs/core/src/lib/state/preference.state.ts b/libs/core/src/lib/state/preference.state.ts index d7702b232..2918b510a 100644 --- a/libs/core/src/lib/state/preference.state.ts +++ b/libs/core/src/lib/state/preference.state.ts @@ -1,17 +1,124 @@ -import { State, Store } from '@ngxs/store'; +import { Action, Selector, State, StateContext, Store } from '@ngxs/store'; + +export type Language = 'en' | 'es' | 'de' | 'fr' | 'cn'; + +export enum ThemeName { + DEEPPURPLE_AMBER = 'DEEPPURPLE_AMBER', + INDIGO_PINK = 'INDIGO_PINK', + PINK_BLUEGREY = 'PINK_BLUEGREY', + PURPLE_GREEN = 'PURPLE_GREEN', +} + +export interface Theme { + readonly primary: string; + readonly accent: string; + readonly href: string; + readonly isDark: boolean; + readonly isDefault?: boolean; +} + +export const themes: Readonly> = new Map([ + [ + ThemeName.DEEPPURPLE_AMBER, + { + primary: '#673AB7', + accent: '#FFC107', + href: 'deeppurple-amber.css', + isDark: false, + }, + ], + [ + ThemeName.INDIGO_PINK, + { + primary: '#3F51B5', + accent: '#E91E63', + href: 'indigo-pink.css', + isDark: false, + isDefault: true, + }, + ], + [ + ThemeName.PINK_BLUEGREY, + { + primary: '#E91E63', + accent: '#607D8B', + href: 'pink-bluegrey.css', + isDark: true, + }, + ], + [ + ThemeName.PURPLE_GREEN, + { + primary: '#9C27B0', + accent: '#4CAF50', + href: 'purple-green.css', + isDark: true, + }, + ], +]); + +export class ChangeLanguage { + static readonly type = '[Preference] Change Language'; + constructor(public payload: Language) {} +} +export class ChangeTheme { + static readonly type = '[Preference] Change Theme'; + constructor(public payload: ThemeName) {} +} +export class EnableNotifications { + static readonly type = '[Preference] Enable Notifications'; +} +export class DisableNotifications { + static readonly type = '[Preference] Disable Notifications'; +} export interface PreferenceStateModel { - language?: string; - theme?: string; + language: Language; + activeThemeName: ThemeName; + enableNotifications: boolean; } @State({ name: 'preference', defaults: { language: 'en', - theme: 'deeppurple-amber', + activeThemeName: ThemeName.INDIGO_PINK, + enableNotifications: false, }, }) export class PreferenceState { constructor(private store: Store) {} + + @Selector() + static activeThemeName(state: PreferenceStateModel) { + return state.activeThemeName; + } + + @Action(ChangeLanguage) + changeLanguage({ patchState }: StateContext, { payload }: ChangeLanguage) { + patchState({ + language: payload, + }); + } + + @Action(ChangeTheme) + changeTheme({ patchState }: StateContext, { payload }: ChangeTheme) { + patchState({ + activeThemeName: payload, + }); + } + + @Action(EnableNotifications) + enableNotifications({ patchState }: StateContext) { + patchState({ + enableNotifications: true, + }); + } + + @Action(DisableNotifications) + disableNotifications({ patchState }: StateContext) { + patchState({ + enableNotifications: false, + }); + } } diff --git a/libs/core/src/lib/state/route.handler.ts b/libs/core/src/lib/state/route.handler.ts new file mode 100644 index 000000000..6d9e9781f --- /dev/null +++ b/libs/core/src/lib/state/route.handler.ts @@ -0,0 +1,48 @@ +import { Actions, Store } from '@ngxs/store'; +import { Injectable } from '@angular/core'; +import { distinctUntilChanged, filter } from 'rxjs/operators'; +import { NavigationEnd, Router, RouterEvent } from '@angular/router'; +import { RouterState } from '@ngxs/router-plugin'; +import { PageTitleService } from '../services/page-title.service'; +import { GoogleAnalyticsService } from '../services/google-analytics.service'; + +@Injectable({ + providedIn: 'root', +}) +export class RouteHandler { + constructor( + private router: Router, + private actions$: Actions, + private store: Store, + private analytics: GoogleAnalyticsService, + private pageTitle: PageTitleService, + ) { + // FIXME : https://github.com/ngxs/store/issues/542 + // this.actions$ + // .pipe( + // ofActionSuccessful(RouterNavigation), + // map((action: RouterNavigation) => action.routerState as any), + // distinctUntilChanged((previous: RouterStateData, current: RouterStateData) => { + // return previous.url === current.url; + // }), + // ) + // .subscribe(data => { + // this.pageTitle.setTitle(data.breadcrumbs); + // this.analytics.setPage(data.url); + // }); + + // WORKAROUND + this.router.events + .pipe( + filter(event => event instanceof NavigationEnd), + distinctUntilChanged((previous: any, current: RouterEvent) => { + return previous.url === current.url; + }), + ) + .subscribe((event: NavigationEnd) => { + const data = this.store.selectSnapshot(RouterState.state); + this.pageTitle.setTitle(data.breadcrumbs); + this.analytics.setPage(data.url); + }); + } +} diff --git a/libs/core/tsconfig.lib.json b/libs/core/tsconfig.lib.json index 8aca71ebe..65e99619c 100644 --- a/libs/core/tsconfig.lib.json +++ b/libs/core/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/core/tslint.json b/libs/core/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/core/tslint.json +++ b/libs/core/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/dashboard/jest.config.js b/libs/dashboard/jest.config.js index 86fabe93d..3139b88f0 100644 --- a/libs/dashboard/jest.config.js +++ b/libs/dashboard/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'dashboard', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/dashboard' + coverageDirectory: '../../coverage/libs/dashboard', }; diff --git a/libs/dashboard/src/lib/components/rainbow/rainbow.component.html b/libs/dashboard/src/lib/components/rainbow/rainbow.component.html index b8bd8b1f0..685d82204 100644 --- a/libs/dashboard/src/lib/components/rainbow/rainbow.component.html +++ b/libs/dashboard/src/lib/components/rainbow/rainbow.component.html @@ -8,9 +8,7 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.html b/libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.html index 46e948bef..aca0f34bb 100644 --- a/libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.html +++ b/libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.html @@ -1,11 +1,18 @@ - + - - + @@ -13,13 +20,11 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - diff --git a/libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.ts b/libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.ts index 02a44e06c..f766732ec 100644 --- a/libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.ts +++ b/libs/dashboard/src/lib/containers/dashboard-layout/dashboard-layout.component.ts @@ -15,8 +15,8 @@ import { WINDOW } from '@ngx-starter-kit/core'; selector: 'ngx-dashboard-layout', templateUrl: './dashboard-layout.component.html', styleUrls: ['./dashboard-layout.component.scss'], - animations: [routeAnimation], - // animations: [hierarchicalRouteAnimation], + // animations: [routeAnimation], + animations: [hierarchicalRouteAnimation], // encapsulation: ViewEncapsulation.None }) export class DashboardLayoutComponent implements OnInit, OnDestroy { diff --git a/libs/dashboard/src/lib/containers/overview/overview.component.html b/libs/dashboard/src/lib/containers/overview/overview.component.html index 85e35854b..422207a86 100644 --- a/libs/dashboard/src/lib/containers/overview/overview.component.html +++ b/libs/dashboard/src/lib/containers/overview/overview.component.html @@ -1,19 +1,22 @@ - - - - - - - - - - - - - - - - - - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Grid List +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Layout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Widgets +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Settings +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/dashboard/src/lib/containers/profile/profile.component.html b/libs/dashboard/src/lib/containers/profile/profile.component.html new file mode 100644 index 000000000..cf7a2a4e9 --- /dev/null +++ b/libs/dashboard/src/lib/containers/profile/profile.component.html @@ -0,0 +1,18 @@ + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + Account Profile + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + {{ entry.key }}:{{ entry.value | json }} +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/dashboard/src/lib/containers/profile/profile.component.scss b/libs/dashboard/src/lib/containers/profile/profile.component.scss new file mode 100644 index 000000000..77f2e0917 --- /dev/null +++ b/libs/dashboard/src/lib/containers/profile/profile.component.scss @@ -0,0 +1,5 @@ +:host { + display: block; + padding: 1.5%; + position: relative; +} diff --git a/libs/dashboard/src/lib/containers/profile/profile.component.spec.ts b/libs/dashboard/src/lib/containers/profile/profile.component.spec.ts new file mode 100644 index 000000000..e9381c2d6 --- /dev/null +++ b/libs/dashboard/src/lib/containers/profile/profile.component.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ProfileComponent } from './profile.component'; + +describe('ProfileComponent', () => { + let component: ProfileComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ProfileComponent], + }).compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ProfileComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/libs/dashboard/src/lib/containers/profile/profile.component.ts b/libs/dashboard/src/lib/containers/profile/profile.component.ts new file mode 100644 index 000000000..9c2561122 --- /dev/null +++ b/libs/dashboard/src/lib/containers/profile/profile.component.ts @@ -0,0 +1,19 @@ +import { Component, OnInit } from '@angular/core'; +import { Crumb } from '@ngx-starter-kit/breadcrumbs'; +import { Store } from '@ngxs/store'; +import { AuthState } from '@ngx-starter-kit/auth'; + +@Component({ + selector: 'ngx-profile', + templateUrl: './profile.component.html', + styleUrls: ['./profile.component.scss'], +}) +export class ProfileComponent implements OnInit { + crumbs: ReadonlyArray = [{ name: 'Dashboard', link: '/dashboard' }, { name: 'Profile' }]; + profile: any; + constructor(private store: Store) {} + + ngOnInit() { + this.profile = this.store.selectSnapshot(AuthState.profile); + } +} diff --git a/libs/dashboard/src/lib/containers/settings/settings.component.html b/libs/dashboard/src/lib/containers/settings/settings.component.html new file mode 100644 index 000000000..5105975e3 --- /dev/null +++ b/libs/dashboard/src/lib/containers/settings/settings.component.html @@ -0,0 +1,49 @@ + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + Preferences + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Setting
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Options
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Language
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + {{ language }} + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Theme
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + {{ theme }} + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Push Notifications
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/dashboard/src/lib/containers/settings/settings.component.scss b/libs/dashboard/src/lib/containers/settings/settings.component.scss new file mode 100644 index 000000000..8620151a2 --- /dev/null +++ b/libs/dashboard/src/lib/containers/settings/settings.component.scss @@ -0,0 +1,23 @@ +:host { + display: block; + padding: 1.5%; + position: relative; +} + +.mat-table { + display: block; +} + +.mat-row, +.mat-header-row { + display: flex; + border-bottom-width: 1px; + border-bottom-style: solid; + align-items: center; + min-height: 60px; + padding: 0 24px; +} + +.add-padding-right { + padding-right: 8px; +} diff --git a/libs/dashboard/src/lib/containers/settings/settings.component.spec.ts b/libs/dashboard/src/lib/containers/settings/settings.component.spec.ts new file mode 100644 index 000000000..007e15644 --- /dev/null +++ b/libs/dashboard/src/lib/containers/settings/settings.component.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SettingsComponent } from './settings.component'; + +describe('SettingsComponent', () => { + let component: SettingsComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [SettingsComponent], + }).compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(SettingsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/libs/dashboard/src/lib/containers/settings/settings.component.ts b/libs/dashboard/src/lib/containers/settings/settings.component.ts new file mode 100644 index 000000000..fa3132ca5 --- /dev/null +++ b/libs/dashboard/src/lib/containers/settings/settings.component.ts @@ -0,0 +1,74 @@ +import { Component, OnDestroy, OnInit } from '@angular/core'; +import { Crumb } from '@ngx-starter-kit/breadcrumbs'; +import { FormBuilder, FormGroup, Validators } from '@angular/forms'; +import { Store } from '@ngxs/store'; +import { + ChangeLanguage, + ChangeTheme, + DisableNotifications, + EnableNotifications, + Language, + PreferenceState, + PreferenceStateModel, + PushNotificationService, + ThemeName, +} from '@ngx-starter-kit/core'; +import { untilDestroy } from '@ngx-starter-kit/ngx-utils'; + +@Component({ + selector: 'ngx-settings', + templateUrl: './settings.component.html', + styleUrls: ['./settings.component.scss'], +}) +export class SettingsComponent implements OnInit, OnDestroy { + crumbs: ReadonlyArray = [{ name: 'Dashboard', link: '/dashboard' }, { name: 'Settings' }]; + preferences: PreferenceStateModel; + settingsForm: FormGroup; + languages: Language[] = ['en', 'es', 'de', 'fr', 'cn']; + themes: ThemeName[] = [ + ThemeName.DEEPPURPLE_AMBER, + ThemeName.INDIGO_PINK, + ThemeName.PINK_BLUEGREY, + ThemeName.PURPLE_GREEN, + ]; + + constructor(private fb: FormBuilder, private store: Store, private pnServ: PushNotificationService) {} + + ngOnInit() { + this.preferences = this.store.selectSnapshot(PreferenceState); + this.buildForm(); + + this.settingsForm + .get('selectedLanguage') + .valueChanges.pipe(untilDestroy(this)) + .subscribe(selectedLanguage => this.store.dispatch(new ChangeLanguage(selectedLanguage))); + + this.settingsForm + .get('selectedTheme') + .valueChanges.pipe(untilDestroy(this)) + .subscribe(selectedTheme => this.store.dispatch(new ChangeTheme(selectedTheme))); + + this.settingsForm + .get('enableNotifications') + .valueChanges.pipe(untilDestroy(this)) + .subscribe(async enableNotifications => { + if (enableNotifications) { + await this.pnServ.register(); + this.store.dispatch(new EnableNotifications()); + } else { + await this.pnServ.unregister(); + this.store.dispatch(new DisableNotifications()); + } + }); + } + + ngOnDestroy() {} + + buildForm() { + this.settingsForm = this.fb.group({ + selectedLanguage: [this.preferences.language], + selectedTheme: [this.preferences.activeThemeName], + enableNotifications: this.preferences.enableNotifications, + }); + } +} diff --git a/libs/dashboard/src/lib/dashboard.module.ts b/libs/dashboard/src/lib/dashboard.module.ts index dbe02d352..109af09ff 100644 --- a/libs/dashboard/src/lib/dashboard.module.ts +++ b/libs/dashboard/src/lib/dashboard.module.ts @@ -7,11 +7,13 @@ import { ChatBoxModule } from '@ngx-starter-kit/chat-box'; import { DashboardLayoutComponent } from './containers/dashboard-layout/dashboard-layout.component'; import { OverviewComponent } from './containers/overview/overview.component'; +import { SettingsComponent } from './containers/settings/settings.component'; import { RainbowComponent } from './components/rainbow/rainbow.component'; import { QuickpanelModule } from '@ngx-starter-kit/quickpanel'; import { ToolbarModule } from '@ngx-starter-kit/toolbar'; import { SidenavModule } from '@ngx-starter-kit/sidenav'; import { environment } from '@env/environment'; +import { ProfileComponent } from './containers/profile/profile.component'; @NgModule({ imports: [ @@ -32,14 +34,24 @@ import { environment } from '@env/environment'; data: { title: 'Dashboard', depth: 1 }, children: [ { - path: 'overview', + path: '', component: OverviewComponent, - data: { animation: 'overview' }, + data: { title: 'Overview' }, }, { - path: '', + path: 'profile', + component: ProfileComponent, + data: { title: 'Settings', depth: '2' }, + }, + { + path: 'settings', + component: SettingsComponent, + data: { title: 'Settings', depth: '2' }, + }, + { + path: 'widgets', loadChildren: '@ngx-starter-kit/widgets#WidgetsModule', - data: { title: 'Widgets', preload: true }, + data: { title: 'Widgets', depth: '2', preload: false }, }, { path: 'grid', @@ -49,12 +61,12 @@ import { environment } from '@env/environment'; { path: 'experiments', loadChildren: '@ngx-starter-kit/experiments#ExperimentsModule', - data: { title: 'Experiments', depth: 2, preload: false }, + data: { title: 'Experiments', depth: 2, preload: false }, }, ], }, ]), ], - declarations: [DashboardLayoutComponent, OverviewComponent, RainbowComponent], + declarations: [DashboardLayoutComponent, OverviewComponent, RainbowComponent, ProfileComponent, SettingsComponent], }) export class DashboardModule {} diff --git a/libs/dashboard/tsconfig.lib.json b/libs/dashboard/tsconfig.lib.json index 5ee07922f..5a3011510 100644 --- a/libs/dashboard/tsconfig.lib.json +++ b/libs/dashboard/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/dashboard/tslint.json b/libs/dashboard/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/dashboard/tslint.json +++ b/libs/dashboard/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/draggable/jest.config.js b/libs/draggable/jest.config.js index c0e98787c..78fbbb34d 100644 --- a/libs/draggable/jest.config.js +++ b/libs/draggable/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'draggable', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/draggable' + coverageDirectory: '../../coverage/libs/draggable', }; diff --git a/libs/draggable/src/lib/directives/resizable/resizable.component.ts b/libs/draggable/src/lib/directives/resizable/resizable.component.ts index e630b745a..77d24ee68 100755 --- a/libs/draggable/src/lib/directives/resizable/resizable.component.ts +++ b/libs/draggable/src/lib/directives/resizable/resizable.component.ts @@ -31,11 +31,13 @@ import { ResizableState } from './resizable.state'; providers: [Store], template: ` -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + (touchstart)="onMouseDown($event, dir)" + >
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            `, styleUrls: ['resizable.component.css'], // tslint:disable-next-line diff --git a/libs/draggable/tsconfig.lib.json b/libs/draggable/tsconfig.lib.json index 822096000..9f27b00eb 100644 --- a/libs/draggable/tsconfig.lib.json +++ b/libs/draggable/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/draggable/tslint.json b/libs/draggable/tslint.json index f30e0930d..b7e253b39 100644 --- a/libs/draggable/tslint.json +++ b/libs/draggable/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - ["", "ngx"], - "camelCase" - ], - "component-selector": [ - true, - "element", - ["", "ngx"], - "kebab-case" - ] + "directive-selector": [true, "attribute", ["", "ngx"], "camelCase"], + "component-selector": [true, "element", ["", "ngx"], "kebab-case"] } } diff --git a/libs/experiments/jest.config.js b/libs/experiments/jest.config.js index 35703add6..e2e5e8c0b 100644 --- a/libs/experiments/jest.config.js +++ b/libs/experiments/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'experiments', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/experiments' + coverageDirectory: '../../coverage/libs/experiments', }; diff --git a/libs/experiments/src/lib/components/card/card.component.html b/libs/experiments/src/lib/components/card/card.component.html index 8ac478868..818c386ed 100644 --- a/libs/experiments/src/lib/components/card/card.component.html +++ b/libs/experiments/src/lib/components/card/card.component.html @@ -5,20 +5,11 @@ gdAreas.lt-md="header | side | content | footer" gdRows.lt-md="auto auto auto auto" > +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Header -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Side
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Side -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Content
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Content -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/experiments/src/lib/containers/animations/animations.component.html b/libs/experiments/src/lib/containers/animations/animations.component.html index 2808880eb..362155a25 100644 --- a/libs/experiments/src/lib/containers/animations/animations.component.html +++ b/libs/experiments/src/lib/containers/animations/animations.component.html @@ -1,17 +1,19 @@ - - + - +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Learn one way to build applications with Angular and reuse your code and abilities to build apps for any deployment target. For web, mobile web, native mobile and native desktop. + Learn one way to build applications with Angular and reuse your code and abilities to build apps for any + deployment target. For web, mobile web, native mobile and native desktop.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -19,6 +21,6 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Custom Events
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/experiments/src/lib/containers/context-menu/context-menu.component.html b/libs/experiments/src/lib/containers/context-menu/context-menu.component.html index ac8d208eb..473ef4bd9 100644 --- a/libs/experiments/src/lib/containers/context-menu/context-menu.component.html +++ b/libs/experiments/src/lib/containers/context-menu/context-menu.component.html @@ -8,11 +8,8 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - + + diff --git a/libs/experiments/src/lib/containers/file-upload/file-upload.component.html b/libs/experiments/src/lib/containers/file-upload/file-upload.component.html index 5048a78c9..cd7941f20 100644 --- a/libs/experiments/src/lib/containers/file-upload/file-upload.component.html +++ b/libs/experiments/src/lib/containers/file-upload/file-upload.component.html @@ -1,9 +1,11 @@ - + diff --git a/libs/experiments/src/lib/containers/image-comp/image-comp.component.html b/libs/experiments/src/lib/containers/image-comp/image-comp.component.html index 9af39ed9b..f681fc992 100644 --- a/libs/experiments/src/lib/containers/image-comp/image-comp.component.html +++ b/libs/experiments/src/lib/containers/image-comp/image-comp.component.html @@ -1,16 +1,15 @@ - first image - second image + first image + second image -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - + + -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - + diff --git a/libs/experiments/src/lib/containers/knob-demo/knob-demo.component.html b/libs/experiments/src/lib/containers/knob-demo/knob-demo.component.html index 788a0d59b..4f53887de 100644 --- a/libs/experiments/src/lib/containers/knob-demo/knob-demo.component.html +++ b/libs/experiments/src/lib/containers/knob-demo/knob-demo.component.html @@ -1,51 +1,52 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Skin Tron + scale {{value1}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Skin Tron + scale {{ value1 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            With subtext, unit and read only {{value2}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + With subtext, unit and read only {{ value2 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Bar cap and display previous value {{value3}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Bar cap and display previous value {{ value3 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Default Knob {{value4}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Default Knob {{ value4 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Skin Tron {{value5}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Skin Tron {{ value5 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Lines scale and step {{value6}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Lines scale and step {{ value6 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Min, max value {{value7}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Min, max value {{ value7 }} +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -53,41 +54,37 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Angles {{value8}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Angles {{ value8 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Dots scale + Dynamic options {{value9}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Dots scale + Dynamic options {{ value9 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Animate and disabled input {{value10}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Animate and disabled input {{ value10 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Background color {{value11}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Background color {{ value11 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Angles + Tron + Scale {{value12}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Angles + Tron + Scale {{ value12 }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - diff --git a/libs/experiments/src/lib/containers/layout/layout.component.html b/libs/experiments/src/lib/containers/layout/layout.component.html index 87cb50ea2..18ee9e341 100644 --- a/libs/experiments/src/lib/containers/layout/layout.component.html +++ b/libs/experiments/src/lib/containers/layout/layout.component.html @@ -1,24 +1,13 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - +


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/experiments/src/lib/containers/led-demo/led-demo.component.html b/libs/experiments/src/lib/containers/led-demo/led-demo.component.html index e71d20c2f..4df111d77 100644 --- a/libs/experiments/src/lib/containers/led-demo/led-demo.component.html +++ b/libs/experiments/src/lib/containers/led-demo/led-demo.component.html @@ -1,19 +1,19 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - - + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/experiments/src/lib/containers/sticky-table/sticky-table.component.html b/libs/experiments/src/lib/containers/sticky-table/sticky-table.component.html index 6e1cae68c..7c4394618 100644 --- a/libs/experiments/src/lib/containers/sticky-table/sticky-table.component.html +++ b/libs/experiments/src/lib/containers/sticky-table/sticky-table.component.html @@ -2,79 +2,75 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - + No. - {{element.position}} + {{ element.position }} Name - {{element.name}} + {{ element.name }} Weight - {{element.weight}} + {{ element.weight }} Symbol - {{element.symbol}} + {{ element.symbol }} test - {{element.test}} + {{ element.test }} test1 - {{element.test1}} + {{ element.test1 }} test2 - {{element.test2}} + {{ element.test2 }} test3 - {{element.test3}} + {{ element.test3 }} test4 - {{element.test4}} + {{ element.test4 }} test5 - {{element.test5}} + {{ element.test5 }} test6 - {{element.test6}} + {{ element.test6 }} test7 - {{element.test7}} + {{ element.test7 }} test8 - {{element.test8}} + {{ element.test8 }} - - + + - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - diff --git a/libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.html b/libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.html index f9c60f8f6..ce1cdceff 100644 --- a/libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.html +++ b/libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.html @@ -3,9 +3,8 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{state.name}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{state.capital}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ state.name }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ state.capital }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.ts b/libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.ts index 3c72750f8..0af901bea 100644 --- a/libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.ts +++ b/libs/experiments/src/lib/containers/virtual-scroll/virtual-scroll.component.ts @@ -88,16 +88,18 @@ export class VirtualScrollComponent implements OnInit { sortBy(prop: 'name' | 'capital') { this.statesObservable.next( - this.states.map(s => ({ ...s })).sort((a, b) => { - const aProp = a[prop], - bProp = b[prop]; - if (aProp < bProp) { - return -1; - } else if (aProp > bProp) { - return 1; - } - return 0; - }), + this.states + .map(s => ({ ...s })) + .sort((a, b) => { + const aProp = a[prop], + bProp = b[prop]; + if (aProp < bProp) { + return -1; + } else if (aProp > bProp) { + return 1; + } + return 0; + }), ); } } diff --git a/libs/experiments/tsconfig.lib.json b/libs/experiments/tsconfig.lib.json index 640628100..9c43f2c0c 100644 --- a/libs/experiments/tsconfig.lib.json +++ b/libs/experiments/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/experiments/tslint.json b/libs/experiments/tslint.json index f30e0930d..b7e253b39 100644 --- a/libs/experiments/tslint.json +++ b/libs/experiments/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - ["", "ngx"], - "camelCase" - ], - "component-selector": [ - true, - "element", - ["", "ngx"], - "kebab-case" - ] + "directive-selector": [true, "attribute", ["", "ngx"], "camelCase"], + "component-selector": [true, "element", ["", "ngx"], "kebab-case"] } } diff --git a/libs/grid/jest.config.js b/libs/grid/jest.config.js index cee091105..ac7ca42b6 100644 --- a/libs/grid/jest.config.js +++ b/libs/grid/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'grid', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/grid' + coverageDirectory: '../../coverage/libs/grid', }; diff --git a/libs/grid/src/lib/components/account-detail/account-detail.component.html b/libs/grid/src/lib/components/account-detail/account-detail.component.html index 853ee19cf..de172f134 100644 --- a/libs/grid/src/lib/components/account-detail/account-detail.component.html +++ b/libs/grid/src/lib/components/account-detail/account-detail.component.html @@ -5,12 +5,11 @@ - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - {{entry.key}}:{{ entry.value | json }} + {{ entry.key }}:{{ entry.value | json }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - diff --git a/libs/grid/src/lib/components/account-edit/account-edit.component.html b/libs/grid/src/lib/components/account-edit/account-edit.component.html index d331058d0..6e58a1813 100644 --- a/libs/grid/src/lib/components/account-edit/account-edit.component.html +++ b/libs/grid/src/lib/components/account-edit/account-edit.component.html @@ -1,41 +1,21 @@ -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{title}}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ title }}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - + - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - + - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -46,70 +26,47 @@

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + [min]="minDate" + [max]="maxDate" + required + /> - - - {{ gender}} - + + {{ gender }} - +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - + - + - - {{ state }} - + {{ state }} - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/grid/src/lib/containers/accounts-grid-list/accounts-grid-list.component.html b/libs/grid/src/lib/containers/accounts-grid-list/accounts-grid-list.component.html index ea37948c5..941073bcd 100644 --- a/libs/grid/src/lib/containers/accounts-grid-list/accounts-grid-list.component.html +++ b/libs/grid/src/lib/containers/accounts-grid-list/accounts-grid-list.component.html @@ -2,86 +2,84 @@ - + - + search Filter - - view_list - - - view_comfy - + view_list + view_comfy - - + - + - - - - - - - - - - - - - + + + + + + + + + + + + - - + + {{ account.name.title }} {{ account.name.first }} {{ account.name.last }} {{ account.email }} - + - Address: {{account.location.street}}, {{account.location.city}}, {{account.location.state}} - {{account.location.zip}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Date of Birth: {{account.dob | amCalendar}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - email: {{account.email}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - phone: {{account.phone}}, cell: {{account.cell}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Address: {{ account.location.street }}, {{ account.location.city }}, {{ account.location.state }} + {{ account.location.zip }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Date of Birth: {{ account.dob | amCalendar }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + email: {{ account.email }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + phone: {{ account.phone }}, cell: {{ account.cell }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{accounts.key}}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - {{ account.gender == 'male' ? 'person' : 'face'}} - - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{account.name.first}} {{account.name.last}}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{account.email}} -- {{account.phone}}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ accounts.key }}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + {{ account.gender == 'male' ? 'person' : 'face' }} + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ account.name.first }} {{ account.name.last }}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + {{ account.email }} -- {{ account.phone }} +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - diff --git a/libs/grid/src/lib/grid.module.ts b/libs/grid/src/lib/grid.module.ts index 9a5f63f07..3dba27ffb 100644 --- a/libs/grid/src/lib/grid.module.ts +++ b/libs/grid/src/lib/grid.module.ts @@ -24,12 +24,12 @@ import { AccountEditComponent } from './components/account-edit/account-edit.com { path: 'crud-table', component: AccountsTableComponent, - data: { title: 'Accounts', depth: 2 }, + data: { title: 'Accounts', depth: 2 }, children: [ { path: ':id', component: AccountDetailComponent, - data: { title: 'Account Detail'}, + data: { title: 'Account Detail' }, }, ], }, diff --git a/libs/grid/src/lib/services/account.service.spec.ts b/libs/grid/src/lib/services/account.service.spec.ts index 992796a85..ee99ff4c8 100644 --- a/libs/grid/src/lib/services/account.service.spec.ts +++ b/libs/grid/src/lib/services/account.service.spec.ts @@ -5,7 +5,7 @@ import { AccountService } from './account.service'; describe('AccountService', () => { beforeEach(() => { TestBed.configureTestingModule({ - providers: [Account1Service], + providers: [AccountService], }); }); diff --git a/libs/grid/tsconfig.lib.json b/libs/grid/tsconfig.lib.json index 0a8484781..07aa9db58 100644 --- a/libs/grid/tsconfig.lib.json +++ b/libs/grid/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/grid/tslint.json b/libs/grid/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/grid/tslint.json +++ b/libs/grid/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/home/jest.config.js b/libs/home/jest.config.js index 57826b3f6..69a7aa963 100644 --- a/libs/home/jest.config.js +++ b/libs/home/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'home', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/home' + coverageDirectory: '../../coverage/libs/home', }; diff --git a/libs/home/src/lib/components/footer/footer.component.html b/libs/home/src/lib/components/footer/footer.component.html index 0f8c05d34..4796c2f21 100644 --- a/libs/home/src/lib/components/footer/footer.component.html +++ b/libs/home/src/lib/components/footer/footer.component.html @@ -2,20 +2,21 @@ diff --git a/libs/home/src/lib/components/header/header.component.html b/libs/home/src/lib/components/header/header.component.html index 3ee3e1cd1..3619fd43c 100644 --- a/libs/home/src/lib/components/header/header.component.html +++ b/libs/home/src/lib/components/header/header.component.html @@ -1,22 +1,33 @@ - + SUMO - - - {{item.label}} + + {{ item.label }} @@ -28,29 +39,25 @@ - - - + + + - - {{item.label}} + + {{ item.label }} - - - diff --git a/libs/home/src/lib/components/header/sticky-header.directive.ts b/libs/home/src/lib/components/header/sticky-header.directive.ts index d94c0917e..b3802ef98 100644 --- a/libs/home/src/lib/components/header/sticky-header.directive.ts +++ b/libs/home/src/lib/components/header/sticky-header.directive.ts @@ -15,7 +15,6 @@ enum Direction { selector: '[stickyHeader]', }) export class StickyHeaderDirective implements AfterViewInit, OnDestroy { - player: AnimationPlayer; set show(show: boolean) { diff --git a/libs/home/src/lib/containers/about/about.component.html b/libs/home/src/lib/containers/about/about.component.html index 0e5308555..fd09a3c14 100644 --- a/libs/home/src/lib/containers/about/about.component.html +++ b/libs/home/src/lib/containers/about/about.component.html @@ -1,42 +1,51 @@ - - - - + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Angular Nx Material Starter Kit

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Getting started

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - git clone - https://github.com/xmlking/ngx-starter-kit.git - my-project
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - cd my-project
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - npm install
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + git clone https://github.com/xmlking/ngx-starter-kit.git my-project
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + cd my-project
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + npm install
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            npm start
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - diff --git a/libs/home/src/lib/containers/blog/blog.component.html b/libs/home/src/lib/containers/blog/blog.component.html index 2841dd93f..b1d00f093 100644 --- a/libs/home/src/lib/containers/blog/blog.component.html +++ b/libs/home/src/lib/containers/blog/blog.component.html @@ -1,6 +1,4 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Blog

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Blog

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -15,29 +13,26 @@

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Bright vixens jump; dozy fowl quack.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Lucas ipsum dolor sit amet coruscant fisto hutt dantooine darth binks amidala kessel grievous - mara. Ackbar mandalore skywalker calamari. Calrissian binks tusken raider kit. Darth binks - chewbacca skywalker. Moff baba padmé antilles darth ponda twi'lek darth. Dagobah naboo mara - jawa dagobah ackbar ackbar darth. Mara mace r2-d2 mon naboo darth dantooine leia. Droid - chewbacca mace han. Wampa hutt qui-gon solo jango secura tusken raider yoda. Droid boba mon - mandalore jinn han binks. Maul darth kit wedge mace utapau darth darth fett. + Lucas ipsum dolor sit amet coruscant fisto hutt dantooine darth binks amidala kessel grievous mara. Ackbar + mandalore skywalker calamari. Calrissian binks tusken raider kit. Darth binks chewbacca skywalker. Moff baba padmé + antilles darth ponda twi'lek darth. Dagobah naboo mara jawa dagobah ackbar ackbar darth. Mara mace r2-d2 mon naboo + darth dantooine leia. Droid chewbacca mace han. Wampa hutt qui-gon solo jango secura tusken raider yoda. Droid + boba mon mandalore jinn han binks. Maul darth kit wedge mace utapau darth darth fett.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Antilles antilles secura yavin. Leia luke owen hutt baba yoda hoth obi-wan. Moff thrawn solo - jango mon. Antilles lobot hutt tusken raider moff jade kessel binks. Moff ewok sidious naboo - darth ventress tusken raider. Bothan yavin moff fett organa binks jade binks. Mara moff darth - jade sidious. Darth binks obi-wan padmé dagobah hutt ponda antilles ackbar. Fett gamorrean - obi-wan sidious hutt maul. Organa darth k-3po kessel aayla. Hoth c-3po amidala biggs kenobi - twi'lek twi'lek ahsoka. Obi-wan ackbar windu wicket kit c-3po. + Antilles antilles secura yavin. Leia luke owen hutt baba yoda hoth obi-wan. Moff thrawn solo jango mon. Antilles + lobot hutt tusken raider moff jade kessel binks. Moff ewok sidious naboo darth ventress tusken raider. Bothan + yavin moff fett organa binks jade binks. Mara moff darth jade sidious. Darth binks obi-wan padmé dagobah hutt + ponda antilles ackbar. Fett gamorrean obi-wan sidious hutt maul. Organa darth k-3po kessel aayla. Hoth c-3po + amidala biggs kenobi twi'lek twi'lek ahsoka. Obi-wan ackbar windu wicket kit c-3po.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - Hutt naboo greedo skywalker hutt luuke ben. Hutt chewbacca jabba solo calrissian jade yoda - amidala zabrak. Solo luke antilles c-3p0. Sith darth skywalker fett solo hutt skywalker c-3p0 - skywalker. Skywalker skywalker solo kessel darth fett. Skywalker skywalker c-3po jango. - Alderaan darth boba calamari. Wicket alderaan darth darth chewbacca jango. Darth darth - chewbacca ponda solo grievous hutt calrissian lando. Darth mon watto vader chewbacca. + Hutt naboo greedo skywalker hutt luuke ben. Hutt chewbacca jabba solo calrissian jade yoda amidala zabrak. Solo + luke antilles c-3p0. Sith darth skywalker fett solo hutt skywalker c-3p0 skywalker. Skywalker skywalker solo + kessel darth fett. Skywalker skywalker c-3po jango. Alderaan darth boba calamari. Wicket alderaan darth darth + chewbacca jango. Darth darth chewbacca ponda solo grievous hutt calrissian lando. Darth mon watto vader chewbacca. Lando mace luke yavin darth wookiee c-3po. Moff kessel skywalker yoda c-3po yavin.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/home/src/lib/containers/features/features.component.html b/libs/home/src/lib/containers/features/features.component.html index 9fc78f0ec..c72a10c24 100644 --- a/libs/home/src/lib/containers/features/features.component.html +++ b/libs/home/src/lib/containers/features/features.component.html @@ -1,15 +1,18 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Features

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Features

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - {{versions.angular}}Angular - - Modern powerful framework - + {{ versions.angular }}Angular + Modern powerful framework library_books @@ -22,12 +25,18 @@

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Features

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Lazy loading Faster startup time with lazy loaded feature modules - + library_books Docs diff --git a/libs/home/src/lib/containers/landing/landing.component.html b/libs/home/src/lib/containers/landing/landing.component.html index 7384e0112..bbcad809f 100644 --- a/libs/home/src/lib/containers/landing/landing.component.html +++ b/libs/home/src/lib/containers/landing/landing.component.html @@ -13,45 +13,39 @@

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            360 view of Sumo App

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sprint from Zero to App

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Hit the ground running with comprehensive, modern UI components that work across - the web, mobile and desktop.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Hit the ground running with comprehensive, modern UI components that work across the web, mobile and desktop. +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Fast and Consistent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Finely tuned performance, because every millisecond counts. Fully tested across - modern browsers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Finely tuned performance, because every millisecond counts. Fully tested across modern browsers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Versatile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Themable, for when you need to stay on brand or just have a favorite color. - Accessible and internationalized so that all users are welcome.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Themable, for when you need to stay on brand or just have a favorite color. Accessible and internationalized so + that all users are welcome. +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Optimized for Angular

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/home/tsconfig.lib.json b/libs/home/tsconfig.lib.json index a750deb0b..797912431 100644 --- a/libs/home/tsconfig.lib.json +++ b/libs/home/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/home/tslint.json b/libs/home/tslint.json index 4b352c4ec..1543ecd43 100644 --- a/libs/home/tslint.json +++ b/libs/home/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", "", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/image-comparison/README.md b/libs/image-comparison/README.md index de42026bd..135b08d5d 100644 --- a/libs/image-comparison/README.md +++ b/libs/image-comparison/README.md @@ -1,14 +1,14 @@ -Image Comparison -================ +# Image Comparison ### Usage ```html - first image - second image + first image + second image ``` ### Credit -* [ImageComparison](https://github.com/M-Ulyanov/ImageComparison) + +- [ImageComparison](https://github.com/M-Ulyanov/ImageComparison) diff --git a/libs/image-comparison/jest.config.js b/libs/image-comparison/jest.config.js index e8bfe02ad..15566dde7 100644 --- a/libs/image-comparison/jest.config.js +++ b/libs/image-comparison/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'image-comparison', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/image-comparison' + coverageDirectory: '../../coverage/libs/image-comparison', }; diff --git a/libs/image-comparison/tsconfig.lib.json b/libs/image-comparison/tsconfig.lib.json index 86c550338..cc295e499 100644 --- a/libs/image-comparison/tsconfig.lib.json +++ b/libs/image-comparison/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/image-comparison/tslint.json b/libs/image-comparison/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/image-comparison/tslint.json +++ b/libs/image-comparison/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/json-diff/jest.config.js b/libs/json-diff/jest.config.js index 7349edf8f..5756ea71f 100644 --- a/libs/json-diff/jest.config.js +++ b/libs/json-diff/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'json-diff', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/json-diff' + coverageDirectory: '../../coverage/libs/json-diff', }; diff --git a/libs/json-diff/src/lib/json-diff-tree.component.html b/libs/json-diff/src/lib/json-diff-tree.component.html index a5829c4a0..eaeac3ab9 100755 --- a/libs/json-diff/src/lib/json-diff-tree.component.html +++ b/libs/json-diff/src/lib/json-diff-tree.component.html @@ -1,5 +1,6 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - + [class.value-changed]="child.status === 4" + > +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + - + [innerHTML]="child.value ? child.value : ' '" + >
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - diff --git a/libs/json-diff/src/lib/json-diff.component.html b/libs/json-diff/src/lib/json-diff.component.html index 76ce96d54..8785ea5ea 100755 --- a/libs/json-diff/src/lib/json-diff.component.html +++ b/libs/json-diff/src/lib/json-diff.component.html @@ -1,13 +1,14 @@ + class="root" + level="0" + side="left-side" + (onhover)="onhover($event)" + [children]="leftSide" +> - + class="root" + level="0" + side="right-side" + (onhover)="onhover($event)" + [children]="rightSide" +> diff --git a/libs/json-diff/tsconfig.lib.json b/libs/json-diff/tsconfig.lib.json index 8ff926184..353b3d052 100644 --- a/libs/json-diff/tsconfig.lib.json +++ b/libs/json-diff/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/json-diff/tslint.json b/libs/json-diff/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/json-diff/tslint.json +++ b/libs/json-diff/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/led/jest.config.js b/libs/led/jest.config.js index b7bb268d0..627398599 100644 --- a/libs/led/jest.config.js +++ b/libs/led/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'led', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/led' + coverageDirectory: '../../coverage/libs/led', }; diff --git a/libs/led/src/lib/led.component.html b/libs/led/src/lib/led.component.html index 2f8eaa79b..8f8af0873 100644 --- a/libs/led/src/lib/led.component.html +++ b/libs/led/src/lib/led.component.html @@ -1,3 +1,7 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/led/tsconfig.lib.json b/libs/led/tsconfig.lib.json index 84b54dc60..dde0cde9d 100644 --- a/libs/led/tsconfig.lib.json +++ b/libs/led/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/led/tslint.json b/libs/led/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/led/tslint.json +++ b/libs/led/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/loading-overlay/jest.config.js b/libs/loading-overlay/jest.config.js index f34f83a17..e118264b6 100644 --- a/libs/loading-overlay/jest.config.js +++ b/libs/loading-overlay/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'loading-overlay', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/loading-overlay' + coverageDirectory: '../../coverage/libs/loading-overlay', }; diff --git a/libs/loading-overlay/src/lib/loading-overlay.component.html b/libs/loading-overlay/src/lib/loading-overlay.component.html index 66852924f..b034aff76 100644 --- a/libs/loading-overlay/src/lib/loading-overlay.component.html +++ b/libs/loading-overlay/src/lib/loading-overlay.component.html @@ -1,3 +1 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/loading-overlay/tsconfig.lib.json b/libs/loading-overlay/tsconfig.lib.json index 71891428b..7978bedef 100644 --- a/libs/loading-overlay/tsconfig.lib.json +++ b/libs/loading-overlay/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/loading-overlay/tslint.json b/libs/loading-overlay/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/loading-overlay/tslint.json +++ b/libs/loading-overlay/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/material/jest.config.js b/libs/material/jest.config.js index f8cef870d..bee4d9d9a 100644 --- a/libs/material/jest.config.js +++ b/libs/material/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'material', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/material' + coverageDirectory: '../../coverage/libs/material', }; diff --git a/libs/material/src/lib/material-date.module.ts b/libs/material/src/lib/material-date.module.ts index 35b2ba3c2..e77b174bf 100644 --- a/libs/material/src/lib/material-date.module.ts +++ b/libs/material/src/lib/material-date.module.ts @@ -1,9 +1,8 @@ import { NgModule } from '@angular/core'; -import { MatMomentDateModule } from '@angular/material-moment-adapter'; import { MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatDateFormats, MatDatepickerModule } from '@angular/material'; -const MODULE_EXPORTS = [MatMomentDateModule, MatDatepickerModule]; +const MODULE_EXPORTS = [MatDatepickerModule]; const DATE_FORMATS: MatDateFormats = { parse: { diff --git a/libs/material/tsconfig.lib.json b/libs/material/tsconfig.lib.json index f7b153974..3ea7fd699 100644 --- a/libs/material/tsconfig.lib.json +++ b/libs/material/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/material/tslint.json b/libs/material/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/material/tslint.json +++ b/libs/material/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/models/README.md b/libs/models/README.md index 5bde5755b..c9957298c 100644 --- a/libs/models/README.md +++ b/libs/models/README.md @@ -1,5 +1,4 @@ -Models -======= +# Models Keep all system wide used models here, that are used in lazy loaded modules. You might be able to share these models between frontend and backend. diff --git a/libs/models/jest.config.js b/libs/models/jest.config.js index 4dd3f455b..14cca7a26 100644 --- a/libs/models/jest.config.js +++ b/libs/models/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'models', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/models' + coverageDirectory: '../../coverage/libs/models', }; diff --git a/libs/models/tsconfig.lib.json b/libs/models/tsconfig.lib.json index a9ff00407..e684e8b3a 100644 --- a/libs/models/tsconfig.lib.json +++ b/libs/models/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -25,8 +22,5 @@ "strictInjectionParameters": true, "enableResourceInlining": true }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/models/tslint.json b/libs/models/tslint.json index f3d338df3..099ac51dd 100644 --- a/libs/models/tslint.json +++ b/libs/models/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx-starter-kit", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx-starter-kit", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx-starter-kit", "camelCase"], + "component-selector": [true, "element", "ngx-starter-kit", "kebab-case"] } } diff --git a/libs/navigator/jest.config.js b/libs/navigator/jest.config.js index f2abd6d98..eff369b0d 100644 --- a/libs/navigator/jest.config.js +++ b/libs/navigator/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'navigator', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/navigator' + coverageDirectory: '../../coverage/libs/navigator', }; diff --git a/libs/navigator/tsconfig.lib.json b/libs/navigator/tsconfig.lib.json index 40bafa070..1b4ddae70 100644 --- a/libs/navigator/tsconfig.lib.json +++ b/libs/navigator/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/navigator/tslint.json b/libs/navigator/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/navigator/tslint.json +++ b/libs/navigator/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/ngx-utils/README.md b/libs/ngx-utils/README.md index a73cdd2e2..0e2bfcfd1 100644 --- a/libs/ngx-utils/README.md +++ b/libs/ngx-utils/README.md @@ -1,5 +1,4 @@ -ngx-utils -========= +# ngx-utils same as [@ngrx-utils/store](https://github.com/ngrx-utils/ngrx-utils) without dependency on `@ngrx/store` diff --git a/libs/ngx-utils/jest.config.js b/libs/ngx-utils/jest.config.js index 239c58ff2..a44acdb0f 100644 --- a/libs/ngx-utils/jest.config.js +++ b/libs/ngx-utils/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'ngx-utils', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/ngx-utils' + coverageDirectory: '../../coverage/libs/ngx-utils', }; diff --git a/libs/ngx-utils/src/lib/directives/ng-let/ng-let.module.ts b/libs/ngx-utils/src/lib/directives/ng-let/ng-let.module.ts index 6e7323434..4a269c22c 100644 --- a/libs/ngx-utils/src/lib/directives/ng-let/ng-let.module.ts +++ b/libs/ngx-utils/src/lib/directives/ng-let/ng-let.module.ts @@ -3,10 +3,8 @@ import { CommonModule } from '@angular/common'; import { NgLetDirective } from './ng-let.directive'; @NgModule({ - imports: [ - CommonModule - ], + imports: [CommonModule], declarations: [NgLetDirective], - exports: [NgLetDirective] + exports: [NgLetDirective], }) -export class NgLetModule { } +export class NgLetModule {} diff --git a/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.spec.ts b/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.spec.ts index e22c527bb..6b75ffc13 100644 --- a/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.spec.ts +++ b/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.spec.ts @@ -8,9 +8,12 @@ import { RouterLinkMatchModule } from './router-link-match.module'; @Component({ template: ` - Test1 + Test1 `, selector: 'test-1', }) @@ -18,19 +21,29 @@ class Test1Component {} @Component({ template: ` - Test2 + }" + class="origin-class" + >Test2 `, selector: 'test-2', }) class Test2Component {} @Component({ - template: `Test3`, + template: ` + Test3 + `, selector: 'test-3', }) class Test3Component {} @@ -54,7 +67,9 @@ class Test4Component { @Component({ selector: 'root-cmp', - template: ``, + template: ` + + `, }) class RootComponent {} diff --git a/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.module.ts b/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.module.ts index 355d41fa9..cad637938 100644 --- a/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.module.ts +++ b/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.module.ts @@ -3,10 +3,8 @@ import { CommonModule } from '@angular/common'; import { RouterLinkMatchDirective } from './router-link-match.directive'; @NgModule({ - imports: [ - CommonModule - ], + imports: [CommonModule], declarations: [RouterLinkMatchDirective], - exports: [RouterLinkMatchDirective] + exports: [RouterLinkMatchDirective], }) -export class RouterLinkMatchModule { } +export class RouterLinkMatchModule {} diff --git a/libs/ngx-utils/src/lib/operators/pluck.spec.ts b/libs/ngx-utils/src/lib/operators/pluck.spec.ts index 19f978c96..a4dc2542e 100644 --- a/libs/ngx-utils/src/lib/operators/pluck.spec.ts +++ b/libs/ngx-utils/src/lib/operators/pluck.spec.ts @@ -48,7 +48,11 @@ describe('pluck', () => { it('should work with multi pluck', () => { of(obj) - .pipe(pluck('a'), pluck('c'), pluck('d')) + .pipe( + pluck('a'), + pluck('c'), + pluck('d'), + ) .subscribe(d => { expect(d).toBe(false); }); diff --git a/libs/ngx-utils/src/lib/operators/pluck.ts b/libs/ngx-utils/src/lib/operators/pluck.ts index 2f43eba91..bd4907a92 100644 --- a/libs/ngx-utils/src/lib/operators/pluck.ts +++ b/libs/ngx-utils/src/lib/operators/pluck.ts @@ -8,22 +8,18 @@ import { pluck as plucker } from 'rxjs/operators'; * Accept max 4 properties name */ export function pluck(s1: B): OperatorFunction; -export function pluck( - s1: B, - s2: C -): OperatorFunction; +export function pluck(s1: B, s2: C): OperatorFunction; export function pluck( s1: B, s2: C, - s3: D + s3: D, ): OperatorFunction; -export function pluck< - A, - B extends keyof A, - C extends keyof A[B], - D extends keyof A[B][C], - E extends keyof A[B][C][D] - >(s1: B, s2: C, s3: D, s4: E): OperatorFunction; +export function pluck( + s1: B, + s2: C, + s3: D, + s4: E, +): OperatorFunction; export function pluck< A, B extends keyof A, @@ -31,7 +27,7 @@ export function pluck< D extends keyof A[B][C], E extends keyof A[B][C][D], F extends keyof A[B][C][D][E] - >(s1: B, s2: C, s3: D, s4: E, s5: F): OperatorFunction; +>(s1: B, s2: C, s3: D, s4: E, s5: F): OperatorFunction; export function pluck< A, B extends keyof A, @@ -40,7 +36,7 @@ export function pluck< E extends keyof A[B][C][D], F extends keyof A[B][C][D][E], G extends keyof A[B][C][D][E][F] - >(s1: B, s2: C, s3: D, s4: E, s5: F, s6: G): OperatorFunction; +>(s1: B, s2: C, s3: D, s4: E, s5: F, s6: G): OperatorFunction; export function pluck(...props: string[]): OperatorFunction; export function pluck(...props: string[]): OperatorFunction { return plucker(...props); diff --git a/libs/ngx-utils/src/lib/operators/untilDestroy.spec.ts b/libs/ngx-utils/src/lib/operators/untilDestroy.spec.ts index eff27a733..111213f34 100644 --- a/libs/ngx-utils/src/lib/operators/untilDestroy.spec.ts +++ b/libs/ngx-utils/src/lib/operators/untilDestroy.spec.ts @@ -6,7 +6,7 @@ import { NgLetModule } from '../directives/ng-let/ng-let.module'; @Component({ template: '', - selector: 'sand-test' + selector: 'sand-test', }) class TestComponent implements OnDestroy { test$ = new Subject(); @@ -22,7 +22,7 @@ class TestComponent implements OnDestroy { @NgModule({ declarations: [TestComponent], - imports: [NgLetModule] + imports: [NgLetModule], }) class TestModule {} @@ -32,7 +32,7 @@ describe('untilDestroy', () => { beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent] + declarations: [TestComponent], }); }); @@ -53,7 +53,7 @@ describe('untilDestroy', () => { expect(instance.sub.closed).toBe(true); }); - it('should throw error when component does not implement OnDestroy', () => { + xit('should throw error when component does not implement OnDestroy', () => { class ErrorComponent { test$ = new Subject(); test = 10; @@ -64,7 +64,7 @@ describe('untilDestroy', () => { } } expect(() => new ErrorComponent()).toThrowError( - 'untilDestroy operator needs the component to have an ngOnDestroy method' + 'untilDestroy operator needs the component to have an ngOnDestroy method', ); }); diff --git a/libs/ngx-utils/src/lib/pipes/date-fns/date-fns.module.ts b/libs/ngx-utils/src/lib/pipes/date-fns/date-fns.module.ts new file mode 100644 index 000000000..d39dcf6dd --- /dev/null +++ b/libs/ngx-utils/src/lib/pipes/date-fns/date-fns.module.ts @@ -0,0 +1,12 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormatTimeInWordsPipe } from './format-time-in-words.pipe'; + +const PIPES = [FormatTimeInWordsPipe]; + +@NgModule({ + declarations: [PIPES], + imports: [CommonModule], + exports: [PIPES], +}) +export class DateFnsModule {} diff --git a/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.spec.ts b/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.spec.ts new file mode 100644 index 000000000..cafbddd92 --- /dev/null +++ b/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.spec.ts @@ -0,0 +1,65 @@ +import { inject, TestBed } from '@angular/core/testing'; +import { FormatTimeInWordsPipe } from './format-time-in-words.pipe'; +import { DateFnsModule } from './date-fns.module'; +import { ChangeDetectorRef } from '@angular/core'; + +class MockChangeDetector { + markForCheck(): void {} +} + +function drinkFlavor(flavor) { + if (flavor === 'octopus') { + throw new Error('yuck, octopus flavor'); + } +} + +describe('FormatTimeInWordsPipe', () => { + const fakeChangeDetectorRef = { + markForCheck: () => {}, + }; + + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [FormatTimeInWordsPipe, { provide: ChangeDetectorRef, useValue: fakeChangeDetectorRef }], + imports: [DateFnsModule], + }); + }); + + it('should transform current date to words', inject([FormatTimeInWordsPipe], (pipe: FormatTimeInWordsPipe) => { + expect(pipe.transform(new Date(), { addSuffix: true })).toBe('less than a minute ago'); + })); + + it('should transform current date to words without ago', inject( + [FormatTimeInWordsPipe], + (pipe: FormatTimeInWordsPipe) => { + expect(pipe.transform(new Date(), { addSuffix: false })).toBe('less than a minute'); + }, + )); + + it('should transform future date to words', inject([FormatTimeInWordsPipe], (pipe: FormatTimeInWordsPipe) => { + const today = new Date(); + const tomorrow = new Date(); + tomorrow.setDate(today.getDate() + 1); + + expect(pipe.transform(tomorrow)).toBe('in 1 day'); + })); + + it('should transform past date to words', inject([FormatTimeInWordsPipe], (pipe: FormatTimeInWordsPipe) => { + const today = new Date(); + const yesterday = new Date(); + yesterday.setDate(today.getDate() - 1); + + expect(pipe.transform(yesterday)).toBe('1 day ago'); + })); + + it('should return `Invalid Date` when date is invalid', inject( + [FormatTimeInWordsPipe], + (pipe: FormatTimeInWordsPipe) => { + expect(pipe.transform('err')).toBe('Invalid Date'); + }, + )); + + it('should throw error when date is null', inject([FormatTimeInWordsPipe], (pipe: FormatTimeInWordsPipe) => { + expect(() => pipe.transform(null)).toThrowError(FormatTimeInWordsPipe.NO_ARGS_ERROR); + })); +}); diff --git a/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.ts b/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.ts new file mode 100644 index 000000000..0f4ee551c --- /dev/null +++ b/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.ts @@ -0,0 +1,74 @@ +import { OnDestroy, ChangeDetectorRef, Pipe, PipeTransform } from '@angular/core'; +import { AsyncPipe } from '@angular/common'; +import { of, Observable } from 'rxjs'; +import { repeatWhen, takeWhile, map, tap, delay } from 'rxjs/operators'; + +import { Options } from 'date-fns'; +// import { formatDistance, differenceInMinutes } from 'date-fns/esm'; +import { formatDistance, differenceInMinutes } from 'date-fns'; + +const defaultConfig: Options = { addSuffix: true }; +/** + * impure pipe, which in general can lead to bad performance + * but the backoff function limits the frequency the pipe checks for updates + * so the performance is close to that of a pure pipe + * the downside of this is that if you change the value of the input, the pipe might not notice for a while + * so this pipe is intended for static data + * + * expected input is a time (number, string or Date) + * output is a string expressing distance from that time to now, plus the suffix 'ago' + * output refreshes at dynamic intervals, with refresh rate slowing down as the input time gets further away from now + */ +@Pipe({ name: 'formatTimeInWords', pure: false }) +export class FormatTimeInWordsPipe implements PipeTransform, OnDestroy { + static readonly NO_ARGS_ERROR = 'formatTimeInWords: missing required arguments'; + private readonly async: AsyncPipe; + + private isDestroyed = false; + private agoExpression: Observable; + + constructor(private cdr: ChangeDetectorRef) { + this.async = new AsyncPipe(this.cdr); + } + + ngOnDestroy() { + this.isDestroyed = true; // pipe will stop executing after next iteration + } + + transform(date: string | number | Date, options?: Options): string { + if (date == null) { + throw new Error(FormatTimeInWordsPipe.NO_ARGS_ERROR); + } + + // set the pipe to the Observable if not yet done, and return an async pipe + if (!this.agoExpression) { + this.agoExpression = this.timeAgo(date, { ...defaultConfig, ...options }); + } + return this.async.transform(this.agoExpression); + } + + private timeAgo(date: string | number | Date, options?: Options): Observable { + let nextBackoff = this.backoff(date); + return of(true).pipe( + repeatWhen(emitTrue => emitTrue.pipe(delay(nextBackoff))), // will not recheck input until delay completes + takeWhile(_ => !this.isDestroyed), + map(_ => formatDistance(date, new Date(), options)), + tap(_ => (nextBackoff = this.backoff(date))), + ); + } + + private backoff(date: string | number | Date): number { + const minutesElapsed = Math.abs(differenceInMinutes(new Date(), date)); // this will always be positive + let backoffAmountInSeconds: number; + if (minutesElapsed < 2) { + backoffAmountInSeconds = 5; + } else if (minutesElapsed >= 2 && minutesElapsed < 5) { + backoffAmountInSeconds = 15; + } else if (minutesElapsed >= 5 && minutesElapsed < 60) { + backoffAmountInSeconds = 30; + } else if (minutesElapsed >= 60) { + backoffAmountInSeconds = 300; // 5 minutes + } + return backoffAmountInSeconds * 1000; // return an amount of milliseconds + } +} diff --git a/libs/ngx-utils/src/lib/pipes/helper/helper.module.ts b/libs/ngx-utils/src/lib/pipes/helper/helper.module.ts index 96fb98405..6c3e81ca9 100644 --- a/libs/ngx-utils/src/lib/pipes/helper/helper.module.ts +++ b/libs/ngx-utils/src/lib/pipes/helper/helper.module.ts @@ -5,10 +5,8 @@ import { GroupByPipe } from './group-by.pipe'; import { SafeHtmlPipe } from './safe-html.pipe'; @NgModule({ - imports: [ - CommonModule - ], + imports: [CommonModule], declarations: [FilterPipe, GroupByPipe, SafeHtmlPipe], - exports: [FilterPipe, GroupByPipe, SafeHtmlPipe] + exports: [FilterPipe, GroupByPipe, SafeHtmlPipe], }) -export class HelperModule { } +export class HelperModule {} diff --git a/libs/ngx-utils/src/lib/pipes/helper/safe-html.pipe.spec.ts b/libs/ngx-utils/src/lib/pipes/helper/safe-html.pipe.spec.ts index 891ab5ef2..cec75737c 100644 --- a/libs/ngx-utils/src/lib/pipes/helper/safe-html.pipe.spec.ts +++ b/libs/ngx-utils/src/lib/pipes/helper/safe-html.pipe.spec.ts @@ -2,26 +2,23 @@ import { TestBed, inject } from '@angular/core/testing'; import { BrowserModule, DomSanitizer } from '@angular/platform-browser'; import { SafeHtmlPipe } from './safe-html.pipe'; - describe('SafeHtmlPipe', () => { - beforeEach(() => { - TestBed - .configureTestingModule({ - imports: [ - BrowserModule - ] - }); +describe('SafeHtmlPipe', () => { + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [BrowserModule], }); + }); - it('create an instance', inject([DomSanitizer], (domSanitizer: DomSanitizer) => { - const pipe = new SafeHtmlPipe(domSanitizer); - expect(pipe).toBeTruthy(); - })); + it('create an instance', inject([DomSanitizer], (domSanitizer: DomSanitizer) => { + const pipe = new SafeHtmlPipe(domSanitizer); + expect(pipe).toBeTruthy(); + })); - it('should create a safehtml construct', inject([DomSanitizer], (domSanitizer: DomSanitizer) => { - const pipe = new SafeHtmlPipe(domSanitizer); - const html = ''; - const output = pipe.transform(html); - expect(output).toBeDefined(); - expect(output.constructor.name).toEqual('SafeHtmlImpl'); - })); + it('should create a safehtml construct', inject([DomSanitizer], (domSanitizer: DomSanitizer) => { + const pipe = new SafeHtmlPipe(domSanitizer); + const html = ''; + const output = pipe.transform(html); + expect(output).toBeDefined(); + expect(output.constructor.name).toEqual('SafeHtmlImpl'); + })); }); diff --git a/libs/ngx-utils/src/lib/pipes/index.ts b/libs/ngx-utils/src/lib/pipes/index.ts index b229db0b3..ba4929680 100644 --- a/libs/ngx-utils/src/lib/pipes/index.ts +++ b/libs/ngx-utils/src/lib/pipes/index.ts @@ -1,2 +1,3 @@ export * from './helper/helper.module'; export * from './truncate/truncate.module'; +export * from './date-fns/date-fns.module'; diff --git a/libs/ngx-utils/src/lib/pipes/truncate/truncate.module.ts b/libs/ngx-utils/src/lib/pipes/truncate/truncate.module.ts index 0c94508dc..c6174fefd 100644 --- a/libs/ngx-utils/src/lib/pipes/truncate/truncate.module.ts +++ b/libs/ngx-utils/src/lib/pipes/truncate/truncate.module.ts @@ -4,10 +4,8 @@ import { CharactersPipe } from './characters.pipe'; import { WordsPipe } from './words.pipe'; @NgModule({ - imports: [ - CommonModule - ], + imports: [CommonModule], declarations: [CharactersPipe, WordsPipe], - exports: [CharactersPipe, WordsPipe] + exports: [CharactersPipe, WordsPipe], }) -export class TruncateModule { } +export class TruncateModule {} diff --git a/libs/ngx-utils/tsconfig.lib.json b/libs/ngx-utils/tsconfig.lib.json index 551b04405..daa80a6a5 100644 --- a/libs/ngx-utils/tsconfig.lib.json +++ b/libs/ngx-utils/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2018" - ] + "lib": ["dom", "es2018"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -25,8 +22,5 @@ "strictInjectionParameters": true, "enableResourceInlining": true }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/ngx-utils/tslint.json b/libs/ngx-utils/tslint.json index f30e0930d..b7e253b39 100644 --- a/libs/ngx-utils/tslint.json +++ b/libs/ngx-utils/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - ["", "ngx"], - "camelCase" - ], - "component-selector": [ - true, - "element", - ["", "ngx"], - "kebab-case" - ] + "directive-selector": [true, "attribute", ["", "ngx"], "camelCase"], + "component-selector": [true, "element", ["", "ngx"], "kebab-case"] } } diff --git a/libs/not-found/jest.config.js b/libs/not-found/jest.config.js index 9f14bd347..2f9e387de 100644 --- a/libs/not-found/jest.config.js +++ b/libs/not-found/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'not-found', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/not-found' + coverageDirectory: '../../coverage/libs/not-found', }; diff --git a/libs/not-found/src/lib/containers/not-found/not-found.component.html b/libs/not-found/src/lib/containers/not-found/not-found.component.html index 0805f4718..eed99bc74 100644 --- a/libs/not-found/src/lib/containers/not-found/not-found.component.html +++ b/libs/not-found/src/lib/containers/not-found/not-found.component.html @@ -9,14 +9,8 @@

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            404

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/not-found/tsconfig.lib.json b/libs/not-found/tsconfig.lib.json index 526b10ebd..ec6a5e2b7 100644 --- a/libs/not-found/tsconfig.lib.json +++ b/libs/not-found/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/not-found/tslint.json b/libs/not-found/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/not-found/tslint.json +++ b/libs/not-found/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/notifications/jest.config.js b/libs/notifications/jest.config.js index 651264147..7af0acb0d 100644 --- a/libs/notifications/jest.config.js +++ b/libs/notifications/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'notifications', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/notifications' + coverageDirectory: '../../coverage/libs/notifications', }; diff --git a/libs/notifications/src/index.ts b/libs/notifications/src/index.ts index c1012e149..8bcd21020 100644 --- a/libs/notifications/src/index.ts +++ b/libs/notifications/src/index.ts @@ -1,3 +1,5 @@ export * from './lib/notifications.module'; export * from './lib/notifications.actions'; export * from './lib/notifications.service'; +export * from './lib/app-notification.model'; +export * from './lib/notifications.state'; diff --git a/libs/notifications/src/lib/notification.model.ts b/libs/notifications/src/lib/app-notification.model.ts similarity index 67% rename from libs/notifications/src/lib/notification.model.ts rename to libs/notifications/src/lib/app-notification.model.ts index 152aae1ad..30ce35c72 100644 --- a/libs/notifications/src/lib/notification.model.ts +++ b/libs/notifications/src/lib/app-notification.model.ts @@ -1,11 +1,11 @@ -import { Moment } from 'moment'; import { Entity } from '@ngx-starter-kit/shared'; -export class Notification extends Entity { - public id: string; +export class AppNotification extends Entity { + public id: number; public icon: 'notifications' | 'notifications_active' | 'shopping_basket' | 'eject' | 'cached' | 'code'; public message: string; - public createdAt: Moment; + public createdAt: Date; public read: boolean; public color: 'warn' | 'accent' | 'primary'; + public native: boolean; } diff --git a/libs/notifications/src/lib/notifications.actions.ts b/libs/notifications/src/lib/notifications.actions.ts index f216b19e4..97dc72abb 100644 --- a/libs/notifications/src/lib/notifications.actions.ts +++ b/libs/notifications/src/lib/notifications.actions.ts @@ -1,24 +1,24 @@ -import { Notification } from './notification.model'; +import { AppNotification } from './app-notification.model'; // Actions export class FetchNotifications { static readonly type = '[Notifications] Fetch'; } - +// new AddNotification({ id: 6, icon: 'notifications', message: 'sumo',createdAt: new Date(Date.now() - 864e5), read: false, native: true}), export class AddNotification { static readonly type = '[Notifications] Add'; - constructor(public readonly payload: Notification) {} + constructor(public readonly payload: AppNotification) {} } export class DeleteNotification { static readonly type = '[Notifications] Delete'; - constructor(public readonly payload: Notification) {} + constructor(public readonly payload: AppNotification) {} } export class MarkAsRead { static readonly type = '[Notifications] MarkAsRead'; - constructor(public readonly payload: Notification) {} + constructor(public readonly payload: AppNotification) {} } export class MarkAllAsRead { diff --git a/libs/notifications/src/lib/notifications.component.html b/libs/notifications/src/lib/notifications.component.html index 06badbb88..a19688727 100644 --- a/libs/notifications/src/lib/notifications.component.html +++ b/libs/notifications/src/lib/notifications.component.html @@ -1,10 +1,16 @@ -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @@ -16,44 +22,47 @@
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Notifications
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            You have {{ unReadCount$ | async }} new notifications.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - {{ notification.icon }} -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ notification.message }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ notification.createdAt | amTimeAgo }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + {{ notification.icon }} +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ notification.message }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            {{ notification.createdAt | formatTimeInWords }}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - - - - -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - All fine! No notifications right now. -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + All fine! No notifications right now. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            diff --git a/libs/notifications/src/lib/notifications.component.ts b/libs/notifications/src/lib/notifications.component.ts index 21342749b..0c19c1450 100644 --- a/libs/notifications/src/lib/notifications.component.ts +++ b/libs/notifications/src/lib/notifications.component.ts @@ -2,11 +2,11 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { Select, Store } from '@ngxs/store'; import { listFadeAnimation } from '@ngx-starter-kit/animations'; -import { Observable } from 'rxjs'; -import { Notification } from './notification.model'; -import { NotificationsState } from './notifications.state'; import { DeleteNotification, FetchNotifications, MarkAllAsRead, MarkAsRead } from './notifications.actions'; import { SendWebSocketAction } from '@ngx-starter-kit/socketio-plugin'; +import { Observable } from 'rxjs'; +import { NotificationsState } from './notifications.state'; +import { AppNotification } from './app-notification.model'; @Component({ selector: 'ngx-notifications', @@ -16,10 +16,8 @@ import { SendWebSocketAction } from '@ngx-starter-kit/socketio-plugin'; changeDetection: ChangeDetectionStrategy.OnPush, }) export class NotificationsComponent implements OnInit { - @Select(NotificationsState) - notifications$: Observable; - @Select(NotificationsState.unReadCount) - unReadCount$: Observable; + @Select(NotificationsState) notifications$: Observable; + @Select(NotificationsState.unReadCount) unReadCount$: Observable; isOpen: boolean; constructor(private store: Store) {} @@ -50,4 +48,8 @@ export class NotificationsComponent implements OnInit { markAllAsRead() { this.store.dispatch(new MarkAllAsRead()); } + + trackById(index: number, item: AppNotification) { + return item.id; + } } diff --git a/libs/notifications/src/lib/notifications.module.ts b/libs/notifications/src/lib/notifications.module.ts index f2a6d65ce..aef3c07d2 100644 --- a/libs/notifications/src/lib/notifications.module.ts +++ b/libs/notifications/src/lib/notifications.module.ts @@ -4,7 +4,7 @@ import { NgxsModule } from '@ngxs/store'; import { SharedModule } from '@ngx-starter-kit/shared'; import { NotificationsState } from './notifications.state'; -import { NotificationsService } from './notifications.service'; + @NgModule({ imports: [SharedModule, NgxsModule.forFeature([NotificationsState])], declarations: [NotificationsComponent], diff --git a/libs/notifications/src/lib/notifications.service.ts b/libs/notifications/src/lib/notifications.service.ts index 8d778084a..ee32b5c55 100644 --- a/libs/notifications/src/lib/notifications.service.ts +++ b/libs/notifications/src/lib/notifications.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { environment } from '@env/environment'; -import { Notification as AppNotification } from './notification.model'; +import { AppNotification } from './app-notification.model'; import { EntityService } from '@ngx-starter-kit/shared'; import { Observable } from 'rxjs'; import { catchError, finalize, map, retry } from 'rxjs/operators'; @@ -18,28 +18,6 @@ export class NotificationsService extends EntityService { super(httpClient); } - // TODO: Move to state - // this.showNotification('PWA Workshop', 'Hello audience! Nice to meet you!', null, true); - - async showNotification(title: string, message: string, button?: string, showNative = false) { - if (showNative && this.featureService.detectFeature(BrowserFeatureKey.NotificationsAPI).supported - && !this.featureService.isMobileAndroid()) { - const permission = await Notification.requestPermission(); - if (permission === 'granted') { - const notification = new Notification(title, { - body: message - }); - notification.onclick = () => { - console.log('clicked todo: mark as read'); - }; - } - // this.showInAppNotification(title, message, button); - } - } - // private showInAppNotification(title: string, message: string, button: string) { - // this.notifications.next(new AppNotification(title, message, button, id)); - // } - getAll(): Observable { this.loadingSubject.next(true); return this.httpClient.get<[AppNotification[], number]>(`${this.baseUrl}/${this.entityPath}`).pipe( @@ -50,4 +28,32 @@ export class NotificationsService extends EntityService { map(data => data[0]), ); } + + /** + * Util for showing native Notifications + * @param noti: { + * title: 'NGX WebApp Notification', + * options: { + * body: payload.message, + * icon: 'assets/icons/icon-72x72.png', + * data: { + * click_url: '/index.html', + * }, + * }, + * } + */ + async showNativeNotification(noti: { title: string; options?: Partial }) { + if ( + this.featureService.detectFeature(BrowserFeatureKey.NotificationsAPI).supported && + !this.featureService.isMobileAndroid() + ) { + const permission = await Notification.requestPermission(); + if (permission === 'granted') { + const notification = new Notification(noti.title, noti.options); + notification.onclick = () => { + console.log('clicked todo: mark as read'); + }; + } + } + } } diff --git a/libs/notifications/src/lib/notifications.state.ts b/libs/notifications/src/lib/notifications.state.ts index 19edc5eaf..0f99fc48c 100644 --- a/libs/notifications/src/lib/notifications.state.ts +++ b/libs/notifications/src/lib/notifications.state.ts @@ -1,5 +1,5 @@ import { Action, NgxsOnInit, Selector, State, StateContext } from '@ngxs/store'; -import { Notification } from './notification.model'; +import { AppNotification } from './app-notification.model'; import { tap } from 'rxjs/operators'; import { NotificationsService } from './notifications.service'; import { @@ -10,7 +10,7 @@ import { MarkAllAsRead, } from './notifications.actions'; -@State({ +@State({ name: 'notifications', defaults: [], }) @@ -18,33 +18,45 @@ export class NotificationsState implements NgxsOnInit { constructor(private notificationsService: NotificationsService) {} @Selector() - static unReadCount(state: Notification[]) { + static unReadCount(state: AppNotification[]) { return state.filter(note => !note.read).length; } - ngxsOnInit(ctx: StateContext) { + ngxsOnInit(ctx: StateContext) { console.log('State initialized, now getting Notifications.'); - // well, this way be call be called before dashboard is routed due to preloadingStrategy. so lets use ngOnInit on component + /** + * well, this way, it will be called before dashboard is routed due to preloadingStrategy. + * we will loose lazy loading benefits. so lets use ngOnInit on component to load initial data. + */ // ctx.dispatch(new FetchNotifications()) } @Action(AddNotification) - add({ getState, setState, patchState }: StateContext, { payload }: AddNotification) { + add({ getState, setState, patchState }: StateContext, { payload }: AddNotification) { setState([...getState(), payload]); + if (payload.native) { + return this.notificationsService.showNativeNotification({ + title: 'NGX WebApp Notification', + options: { + body: payload.message, + icon: 'assets/icons/icon-72x72.png', + }, + }); + } } @Action(FetchNotifications, { cancelUncompleted: true }) - fetchNotifications({ getState, patchState, setState }: StateContext) { + fetchNotifications({ getState, patchState, setState }: StateContext) { return this.notificationsService.getAll().pipe(tap(res => setState(res))); } @Action(DeleteNotification) - delete({ getState, setState, patchState }: StateContext, { payload }: AddNotification) { + delete({ getState, setState, patchState }: StateContext, { payload }: AddNotification) { setState(getState().filter(note => note !== payload)); } @Action(MarkAsRead) - markAsRead({ getState, setState, patchState }: StateContext, { payload }: MarkAsRead) { + markAsRead({ getState, setState, patchState }: StateContext, { payload }: MarkAsRead) { setState( getState().map(notification => { if (notification === payload) { @@ -56,7 +68,7 @@ export class NotificationsState implements NgxsOnInit { } @Action(MarkAllAsRead) - markAllAsRead({ getState, setState, patchState }: StateContext) { + markAllAsRead({ getState, setState, patchState }: StateContext) { setState( getState().map(notification => { notification.read = true; diff --git a/libs/notifications/src/lib/push-notification.service.ts b/libs/notifications/src/lib/push-notification.service.ts deleted file mode 100644 index 49e0f2511..000000000 --- a/libs/notifications/src/lib/push-notification.service.ts +++ /dev/null @@ -1,39 +0,0 @@ -import {Injectable} from '@angular/core'; -import {SwPush} from '@angular/service-worker'; -import {from as fromPromise, Observable, of} from 'rxjs'; -import { environment } from '@env/environment'; -// import {ApiService} from './api.service'; - -@Injectable({ - providedIn: 'root' -}) -export class PushNotificationService { - private pushSubscription: PushSubscription; - - get available(): boolean { - return this.swPush.isEnabled; - } - - constructor(private readonly swPush: SwPush, /*private readonly apiService: ApiService*/) { - } - - async register() { - if (!this.swPush.isEnabled) { - return; - } - - // Key generation: https://web-push-codelab.glitch.me - const subscription = await this.swPush.requestSubscription({ serverPublicKey: environment.serverPublicKey }); - console.log('Push subscription endpoint: ', subscription.endpoint); - this.pushSubscription = subscription; - // this.apiService.post('push/register', subscription).subscribe(); - } - - unregister(): Observable { - if (this.pushSubscription) { - return fromPromise(this.pushSubscription.unsubscribe()); - } - - return of(true); - } -} diff --git a/libs/notifications/tsconfig.lib.json b/libs/notifications/tsconfig.lib.json index 70254b3ed..ccf40fced 100644 --- a/libs/notifications/tsconfig.lib.json +++ b/libs/notifications/tsconfig.lib.json @@ -12,10 +12,7 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2015" - ] + "lib": ["dom", "es2015"] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, @@ -26,8 +23,5 @@ "flatModuleId": "AUTOGENERATED", "flatModuleOutFile": "AUTOGENERATED" }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/libs/notifications/tslint.json b/libs/notifications/tslint.json index 239f078cf..efe6efd98 100644 --- a/libs/notifications/tslint.json +++ b/libs/notifications/tslint.json @@ -1,17 +1,7 @@ { "extends": "../../tslint.json", "rules": { - "directive-selector": [ - true, - "attribute", - "ngx", - "camelCase" - ], - "component-selector": [ - true, - "element", - "ngx", - "kebab-case" - ] + "directive-selector": [true, "attribute", "ngx", "camelCase"], + "component-selector": [true, "element", "ngx", "kebab-case"] } } diff --git a/libs/quickpanel/jest.config.js b/libs/quickpanel/jest.config.js index 4b96f40f7..bd62597f8 100644 --- a/libs/quickpanel/jest.config.js +++ b/libs/quickpanel/jest.config.js @@ -1,5 +1,5 @@ module.exports = { name: 'quickpanel', preset: '../../jest.config.js', - coverageDirectory: '../../coverage/libs/quickpanel' + coverageDirectory: '../../coverage/libs/quickpanel', }; diff --git a/libs/quickpanel/src/lib/quickpanel.component.html b/libs/quickpanel/src/lib/quickpanel.component.html index d22929f79..77b37d701 100644 --- a/libs/quickpanel/src/lib/quickpanel.component.html +++ b/libs/quickpanel/src/lib/quickpanel.component.html @@ -1,25 +1,27 @@ -